Skip to content

Commit

Permalink
Feat: Footer controller and fxml components fully implemented?
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianBalunan committed Apr 16, 2026
1 parent 89e3382 commit ed545b8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
package ntnu.systemutvikling.team6.controller.components;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import ntnu.systemutvikling.team6.service.AuthenticationService;

public class FooterController extends BaseController {
@FXML private Button HelpMeHelp;
@FXML private Label aboutUsLink;



public void switchToAboutPage(ActionEvent event) {
System.out.println("Click!");
LoaderScene.LoadScene("aboutPage", event, null, null);
LoaderScene.LoadScene("aboutPage", event, null, null, authToken);
}
public void switchToFrontPage(ActionEvent event) {
System.out.println("Click!");
LoaderScene.LoadScene("FrontPage", event, null, null);
LoaderScene.LoadScene("FrontPage", event, null, null, authToken);
}

@Override
protected void authTokenisSet() {


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.image.Image?>

<HBox alignment="BOTTOM_CENTER" prefHeight="12.0" prefWidth="800.0" style="-fx-background-color: #2f8f8b;" xmlns="http://javafx.com/javafx/21"
<?import javafx.scene.control.Button?>
<?import javafx.scene.text.TextFlow?>
<?import javafx.scene.text.Text?>
<HBox alignment="BOTTOM_CENTER" prefHeight="180.0" prefWidth="800.0" style="-fx-background-color: #2f8f8b;" xmlns="http://javafx.com/javafx/21"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="ntnu.systemutvikling.team6.controller.components.FooterController" GridPane.rowIndex="2">
<children>
Expand All @@ -27,21 +30,34 @@
<StackPane prefHeight="150.0" prefWidth="200.0">
<children>
<Rectangle fill="#2f8f8b" height="130.0" stroke="TRANSPARENT" strokeType="INSIDE" translateY="1.0" width="800.0" />
<Label text="Help" textFill="WHITE" translateX="80.0" StackPane.alignment="CENTER_LEFT">
<font>
<Font name="System Bold" size="26.0" />
</font>
</Label>
<Label text="Me" textFill="#c8e6c9" translateX="145.0" StackPane.alignment="CENTER_LEFT">
<font>
<Font name="System Bold" size="26.0" />
</font>
</Label>
<Label text="Help" textFill="WHITE" translateX="192.0" StackPane.alignment="CENTER_LEFT">
<font>
<Font name="System Bold" size="26.0" />
</font>
</Label>
<Button fx:id="HelpMeHelp"
onAction="#switchToFrontPage"
style="-fx-background-color: transparent;"
StackPane.alignment="CENTER_LEFT"
translateX="80.0">
<graphic>
<TextFlow>
<Text text="Help" fill="WHITE">
<font>
<Font name="System Bold" size="26.0"/>
</font>
</Text>

<Text text="Me" fill="#c8e6c9">
<font>
<Font name="System Bold" size="26.0"/>
</font>
</Text>

<Text text="Help" fill="WHITE">
<font>
<Font name="System Bold" size="26.0"/>
</font>
</Text>
</TextFlow>
</graphic>

</Button>
<Rectangle fill="WHITE" height="90.0" stroke="TRANSPARENT" strokeType="INSIDE" translateX="-120.0" width="2.0" />
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0" translateX="-40.0" StackPane.alignment="CENTER_LEFT">
<children>
Expand Down

0 comments on commit ed545b8

Please sign in to comment.