ahhhhhhhhhhhh
This commit is contained in:
parent
7836821c51
commit
7663a81750
50 changed files with 860 additions and 341 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -13,7 +13,7 @@
|
|||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
|
||||
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.cartController">
|
||||
<fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1200.0" type="BorderPane" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.cartController">
|
||||
<top>
|
||||
<HBox id="header" alignment="CENTER" prefHeight="60.0" prefWidth="631.0" spacing="20.0" styleClass="header" BorderPane.alignment="CENTER">
|
||||
<children>
|
||||
|
@ -48,13 +48,13 @@
|
|||
<children>
|
||||
<Button id="btnCheckOut" mnemonicParsing="false" styleClass="btnCheckOut" text="Check out" GridPane.rowIndex="2" />
|
||||
<Label id="cartTitle" styleClass="cartTitle" text="Your cart" />
|
||||
<TableView prefHeight="0.0" prefWidth="364.0" GridPane.rowIndex="1">
|
||||
<columns>
|
||||
<TableColumn prefWidth="243.0" text="Name" />
|
||||
<TableColumn prefWidth="615.0" text="Description" />
|
||||
<TableColumn minWidth="0.0" prefWidth="154.0" text="Quantaty" />
|
||||
<TableColumn minWidth="0.0" prefWidth="147.0" text="Price" />
|
||||
</columns>
|
||||
<TableView id="cartContent" prefHeight="0.0" prefWidth="364.0" GridPane.rowIndex="1">
|
||||
<columns>
|
||||
<TableColumn id="nameColumn" prefWidth="243.0" text="Name" />
|
||||
<TableColumn id="descriptionColumn" prefWidth="615.0" text="Description" />
|
||||
<TableColumn id="quantityColumn" minWidth="0.0" prefWidth="154.0" text="Quantity" />
|
||||
<TableColumn id="priceColumn" minWidth="0.0" prefWidth="147.0" text="Price" />
|
||||
</columns>
|
||||
</TableView>
|
||||
</children>
|
||||
</GridPane>
|
||||
|
@ -97,4 +97,4 @@
|
|||
</children>
|
||||
</VBox>
|
||||
</bottom>
|
||||
</BorderPane>
|
||||
</fx:root>
|
||||
|
|
Binary file not shown.
|
@ -18,13 +18,8 @@
|
|||
<top>
|
||||
<HBox id="header" alignment="CENTER" prefHeight="60.0" prefWidth="631.0" spacing="20.0" styleClass="header" BorderPane.alignment="CENTER">
|
||||
<children>
|
||||
<!-- Main Title -->
|
||||
<Label id="mainTitle" styleClass="mainTitle" text="Bookshop - Fantasy Brigade" />
|
||||
|
||||
<!-- Spacer for alignment -->
|
||||
<Pane HBox.hgrow="ALWAYS" />
|
||||
|
||||
<!-- Buttons -->
|
||||
<Pane id="headerSpacer" HBox.hgrow="ALWAYS" />
|
||||
<Button id="cartBtn" mnemonicParsing="false" styleClass="cartBtn" text="Cart" />
|
||||
<Button id="loginBtn" mnemonicParsing="false" styleClass="loginBtn" text="Login" />
|
||||
</children>
|
||||
|
@ -72,72 +67,52 @@
|
|||
</VBox>
|
||||
</bottom>
|
||||
<center>
|
||||
<GridPane id="main" styleClass="main" BorderPane.alignment="CENTER">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
</columnConstraints>
|
||||
<rowConstraints>
|
||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||
</rowConstraints>
|
||||
<GridPane id="main" alignment="TOP_CENTER" styleClass="main" BorderPane.alignment="CENTER">
|
||||
<children>
|
||||
<GridPane fx:id="billingForm" alignment="TOP_CENTER" hgap="10" prefHeight="600.0" prefWidth="800.0" style="-fx-background-color: rgba(238, 130, 238, 0.8);" vgap="20">
|
||||
<GridPane id="billingForm" alignment="TOP_CENTER" hgap="10" prefHeight="600.0" prefWidth="800.0" style="-fx-background-color: rgba(238, 130, 238, 0.8);" vgap="20">
|
||||
<children>
|
||||
<!-- Check Out Header -->
|
||||
<Label id="checkoutHeader" style="-fx-font-size: 24px; -fx-font-weight: bold;" text="Check out" textFill="WHITE" GridPane.columnSpan="2" GridPane.rowIndex="0" />
|
||||
|
||||
<!-- Payment Title -->
|
||||
<Label id="paymentTitle" style="-fx-font-size: 30px; -fx-font-weight: bold;" text="Payment" textFill="WHITE" GridPane.columnSpan="2" GridPane.rowIndex="1" />
|
||||
<Label id="paymentSubtitle" style="-fx-font-size: 14px;" text="Choose payment method below" textFill="WHITE" GridPane.columnSpan="2" GridPane.rowIndex="2" />
|
||||
|
||||
<!-- Payment Icons -->
|
||||
<HBox id="paymentMethods" alignment="CENTER" spacing="20" GridPane.columnSpan="2" GridPane.rowIndex="3">
|
||||
<Button id="creditCard" mnemonicParsing="false" styleClass="creditCard" />
|
||||
<Button id="bill" mnemonicParsing="false" styleClass="bill" />
|
||||
<Button id="paypal" mnemonicParsing="false" styleClass="paypal" />
|
||||
</HBox>
|
||||
|
||||
<!-- Billing Info Section -->
|
||||
<Label id="billingInfoTitle" style="-fx-font-size: 18px; -fx-font-weight: bold;" text="Billing Info" textFill="WHITE" GridPane.columnIndex="0" GridPane.rowIndex="4" />
|
||||
<HBox id="billingName" spacing="10" GridPane.columnIndex="0" GridPane.rowIndex="5">
|
||||
<Label id="fullNameLabel" text="Full Name:" textFill="WHITE" />
|
||||
<TextField fx:id="addressField1" prefWidth="200" promptText="Jon Doe" />
|
||||
<Label id="fullNameLabel" text="Full Name:" textFill="WHITE" />
|
||||
<TextField id="fullNameField" fx:id="addressField1" prefWidth="200" promptText="Jon Doe" />
|
||||
</HBox>
|
||||
|
||||
<HBox id="billingAddress" spacing="10" GridPane.columnIndex="0" GridPane.rowIndex="6">
|
||||
<Label id="addressLabel" text="Address:" textFill="WHITE" />
|
||||
<TextField fx:id="addressField" prefWidth="200" promptText="497 Evergreen Rd." />
|
||||
<HBox id="billingAddress" spacing="10" GridPane.columnIndex="0" GridPane.rowIndex="6">
|
||||
<Label id="addressLabel" text="Address:" textFill="WHITE" />
|
||||
<TextField id="addressField" fx:id="addressField" prefWidth="200" promptText="497 Evergreen Rd." />
|
||||
</HBox>
|
||||
|
||||
<HBox id="billingCityZip" spacing="10" GridPane.columnIndex="0" GridPane.rowIndex="7">
|
||||
<Label id="cityLabel" text="City:" textFill="WHITE" />
|
||||
<TextField fx:id="cityField" prefWidth="100" promptText="Roseville" />
|
||||
<Label id="zipLabel" text="ZIP Code:" textFill="WHITE" />
|
||||
<TextField fx:id="zipField" prefWidth="80" promptText="95673" />
|
||||
<HBox id="billingCityZip" spacing="10" GridPane.columnIndex="0" GridPane.rowIndex="7">
|
||||
<Label id="cityLabel" text="City:" textFill="WHITE" />
|
||||
<TextField id="cityField" fx:id="cityField" prefWidth="100" promptText="Roseville" />
|
||||
<Label id="zipLabel" text="ZIP Code:" textFill="WHITE" />
|
||||
<TextField id="zipField" fx:id="zipField" prefWidth="80" promptText="95673" />
|
||||
</HBox>
|
||||
|
||||
<HBox id="billingCountry" spacing="10" GridPane.columnIndex="0" GridPane.rowIndex="8">
|
||||
<Label id="countryLabel" text="Country:" textFill="WHITE" />
|
||||
<ComboBox fx:id="countryComboBox" prefWidth="150.0" />
|
||||
<HBox id="billingCountry" spacing="10" GridPane.columnIndex="0" GridPane.rowIndex="8">
|
||||
<Label id="countryLabel" text="Country:" textFill="WHITE" />
|
||||
<ComboBox id="countryComboBox" fx:id="countryComboBox" prefWidth="150.0" />
|
||||
</HBox>
|
||||
|
||||
<!-- Credit Card Info Section -->
|
||||
<Label id="creditCardInfoTitle" style="-fx-font-size: 18px; -fx-font-weight: bold;" text="Credit Card Info" textFill="WHITE" GridPane.columnIndex="1" GridPane.rowIndex="4" />
|
||||
<HBox id="creditCardNumber" spacing="10" GridPane.columnIndex="1" GridPane.rowIndex="5">
|
||||
<Label id="cardNumberLabel" text="Card Number:" textFill="WHITE" />
|
||||
<TextField fx:id="cardNumberField" prefWidth="200" promptText="1234 5678 3456 2456" />
|
||||
<Label id="cardNumberLabel" text="Card Number:" textFill="WHITE" />
|
||||
<TextField id="cardNumberField" fx:id="cardNumberField" prefWidth="200" promptText="1234 5678 3456 2456" />
|
||||
</HBox>
|
||||
<HBox id="creditCardHolder" spacing="10" GridPane.columnIndex="1" GridPane.rowIndex="6">
|
||||
<Label id="cardHolderNameLabel" text="Cardholder Name:" textFill="WHITE" />
|
||||
<TextField fx:id="cardHolderNameField" prefWidth="200" promptText="John Doe" />
|
||||
<Label id="cardHolderNameLabel" text="Cardholder Name:" textFill="WHITE" />
|
||||
<TextField id="cardHolderNameField" fx:id="cardHolderNameField" prefWidth="200" promptText="John Doe" />
|
||||
</HBox>
|
||||
<HBox id="creditCardExpiry" spacing="10" GridPane.columnIndex="1" GridPane.rowIndex="7">
|
||||
<Label id="expiryDateLabel" text="Expire Date:" textFill="WHITE" />
|
||||
<TextField fx:id="expiryDateField" prefWidth="80" promptText="MM / YY" />
|
||||
<Label id="cvvLabel" text="CVV:" textFill="WHITE" />
|
||||
<PasswordField fx:id="cvvField" />
|
||||
<Label id="expiryDateLabel" text="Expire Date:" textFill="WHITE" />
|
||||
<TextField id="expiryDateField" fx:id="expiryDateField" prefWidth="80" promptText="MM / YY" />
|
||||
<Label id="cvvLabel" text="CVV:" textFill="WHITE" />
|
||||
<PasswordField id="cvvField" fx:id="cvvField" />
|
||||
</HBox>
|
||||
|
||||
<!-- Submit Button -->
|
||||
<Button id="submitBtn" fx:id="submitButton" alignment="CENTER" contentDisplay="CENTER" prefWidth="150" style="-fx-alignment: #4CAF50; -fx-text-fill: white; -fx-font-size: 16px; -fx-font-weight: bold;" styleClass="cartBtn" text="Submit" GridPane.columnSpan="2" GridPane.rowIndex="9" />
|
||||
</children>
|
||||
<columnConstraints>
|
||||
|
@ -156,17 +131,14 @@
|
|||
<RowConstraints />
|
||||
<RowConstraints />
|
||||
</rowConstraints>
|
||||
<opaqueInsets>
|
||||
<Insets />
|
||||
</opaqueInsets>
|
||||
<GridPane.margin>
|
||||
<Insets />
|
||||
</GridPane.margin>
|
||||
<padding>
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
|
||||
</padding>
|
||||
</GridPane>
|
||||
</children>
|
||||
<columnConstraints>
|
||||
<ColumnConstraints />
|
||||
</columnConstraints>
|
||||
<rowConstraints>
|
||||
<RowConstraints />
|
||||
</rowConstraints>
|
||||
</GridPane>
|
||||
</center>
|
||||
</BorderPane>
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,8 @@
|
|||
com/example/CheckOutController.class
|
||||
com/example/App.class
|
||||
com/example/CartController.class
|
||||
module-info.class
|
||||
com/example/ShopController.class
|
||||
com/example/RegisterController.class
|
||||
com/example/LoginController.class
|
||||
com/example/CartController$Item.class
|
|
@ -0,0 +1,7 @@
|
|||
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/RegisterController.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CheckOutController.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/CartController.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/LoginController.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/ShopController.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/module-info.java
|
Loading…
Add table
Add a link
Reference in a new issue