Skip to content

Commit

Permalink
fix: removed test css borders
Browse files Browse the repository at this point in the history
  • Loading branch information
emilfa committed Mar 24, 2026
1 parent 4cecbe4 commit e0ef534
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/main/java/edu/group5/app/view/homepage/HomePageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ private VBox createIntroductionSection() {
h2.setId("h2");

Button donateToACauseBtn = new Button("Donate to a cause");
donateToACauseBtn.setId("donate-to-cause-btn");
donateToACauseBtn.setOnAction(e -> nav.showCausesPage());

Button aboutUsBtn = new Button("About us");
aboutUsBtn.setId("about-us-btn");
aboutUsBtn.setOnAction(e -> nav.showAboutUsPage());

introductionSection.getChildren().addAll(h1, h2, donateToACauseBtn, aboutUsBtn);
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@
}

#logo-section {
-fx-border-color: black;
-fx-border-width: 2px;
}

#navbar {
-fx-border-color: black;
-fx-border-width: 2px;
}

#profile-section {
-fx-border-color: black;
-fx-border-width: 2px;
}
11 changes: 8 additions & 3 deletions src/main/resources/homepage/homepage.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#introduction-section {
-fx-border-color: black;
-fx-border-width: 2px;
-fx-padding: 20px 0;
}

Expand All @@ -16,12 +14,19 @@
}

#charity-image-section {
-fx-border-color: black;
}

#charity-image {
-fx-background-image: url("/homepage/images/charityimage.jpg");
-fx-background-position: center 55%;
-fx-background-size: 100% auto;
-fx-background-repeat: no-repeat;
}

#donate-to-cause-btn {
-fx-cursor: hand;
}

#about-us-btn {
-fx-cursor: hand;
}

0 comments on commit e0ef534

Please sign in to comment.