develop #1

Merged
MehrdadShirvani merged 2 commits from develop into main 2026-07-10 17:10:46 +00:00
2 changed files with 9 additions and 7 deletions
Showing only changes of commit 4376fe6d10 - Show all commits
+7 -5
View File
@@ -17,21 +17,23 @@ public class Controller {
@FXML @FXML
private void initialize(){ private void initialize(){
basicPriceLabel.setText("$12.99 / month"); basicPriceLabel.setText("$12.99 / month");
ProPriceLabel.setText("$20.66 / month");
enterPrisePrice.setText("Join us");
} }
@FXML @FXML
private void buyBasic() { private void buyBasic() {
showAlert(Alert.AlertType.INFORMATION); showAlert("Bacis plan Selected",Alert.AlertType.INFORMATION);
} }
@FXML @FXML
private void buyPro() { private void buyPro() {
showAlert(Alert.AlertType.WARNING); showAlert("Pro plan Selected",Alert.AlertType.WARNING);
} }
@FXML @FXML
private void buyEnterprise() { private void buyEnterprise() {
showAlert(Alert.AlertType.CONFIRMATION); showAlert("Enter price Selected",Alert.AlertType.CONFIRMATION);
} }
@FXML @FXML
@@ -48,9 +50,9 @@ public class Controller {
} }
} }
private void showAlert(Alert.AlertType alertType) { private void showAlert(String msseage, Alert.AlertType alertType) {
Alert alert = new Alert(alertType); Alert alert = new Alert(alertType);
alert.setHeaderText("Bacis plan Selected"); alert.setHeaderText(msseage);
alert.show(); alert.show();
} }
} }
+2 -2
View File
@@ -30,8 +30,8 @@
</VBox> </VBox>
<VBox styleClass="card" prefWidth="200"> <VBox styleClass="card" prefWidth="200">
<Label fx:id="enterPrisePrice" text="Enterprise" styleClass="plan-name" /> <Label text="Enterprise" styleClass="plan-name" />
<Label text="Contact us" styleClass="price" /> <Label fx:id="enterPrisePrice" text="Contact us" styleClass="price" />
<Label text="Unlimited users, custom solutions" styleClass="desc" wrapText="true" /> <Label text="Unlimited users, custom solutions" styleClass="desc" wrapText="true" />
<Button text="Shop" onAction="#buyEnterprise" styleClass="shop-btn" /> <Button text="Shop" onAction="#buyEnterprise" styleClass="shop-btn" />
</VBox> </VBox>