Merge pull request #2 from PartowRoshani/Login/Register

Login/register
This commit is contained in:
2025-06-08 16:45:18 +03:30
committed by GitHub
38 changed files with 2693 additions and 0 deletions
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.text.*?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane prefHeight="709.0" prefWidth="600.0" style="-fx-background-color: linear-gradient(to right, #B39DDB, #81D4FA); -fx-background-radius: 12;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.to.telegramfinalproject.UI.LoginForm">
<children>
<TextField fx:id="usernameField" layoutX="289.0" layoutY="189.0" />
<PasswordField fx:id="passwordField" layoutX="289.0" layoutY="297.0" />
<Label layoutX="258.0" layoutY="69.0" text="Login" textAlignment="CENTER" textFill="WHITE">
<font>
<Font name="System Bold" size="40.0" />
</font>
</Label>
<Label layoutX="89.0" layoutY="182.0" text="Username :" textAlignment="CENTER" textFill="WHITE">
<font>
<Font name="System Italic" size="36.0" />
</font>
</Label>
<Label layoutX="88.0" layoutY="290.0" text="Password :" textFill="WHITE">
<font>
<Font name="System Italic" size="36.0" />
</font>
</Label>
<Button fx:id="loginButton" layoutX="225.0" layoutY="449.0" mnemonicParsing="false" prefHeight="39.0" prefWidth="176.0" style="-fx-background-color: #f8bbd0; -fx-border-radius: 12; -fx-border-color: #6a1b9a; -fx-background-radius: 12;" text="Login" textFill="#79195c">
<font>
<Font name="System Bold" size="18.0" />
</font>
</Button>
<Button fx:id="backButton" layoutX="227.0" layoutY="532.0" mnemonicParsing="false" prefHeight="39.0" prefWidth="176.0" style="-fx-background-color: #f8bbd0; -fx-background-radius: 12; -fx-border-color: #6a1b9a; -fx-border-radius: 12;" text="Back" textFill="#79195c">
<font>
<Font name="System Bold" size="18.0" />
</font>
</Button>
</children>
</AnchorPane>
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.text.*?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane prefHeight="709.0" prefWidth="600.0" style="-fx-background-color: linear-gradient(to right, #B39DDB, #81D4FA);" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.to.telegramfinalproject.UI.RegisterForm">
<children>
<Label layoutX="223.0" layoutY="56.0" text="Register" textAlignment="CENTER" textFill="#fffefe">
<font>
<Font name="System Bold" size="40.0" />
</font>
</Label>
<Label layoutX="52.0" layoutY="160.0" text="User ID:" textFill="#f5f5f5">
<font>
<Font name="System Italic" size="36.0" />
</font>
</Label>
<Label layoutX="52.0" layoutY="249.0" text="Username:" textAlignment="CENTER" textFill="#f5efef">
<font>
<Font name="System Italic" size="36.0" />
</font>
</Label>
<Label layoutX="52.0" layoutY="348.0" text="Profile name:" textAlignment="CENTER" textFill="#f5f5f5">
<font>
<Font name="System Italic" size="36.0" />
</font>
</Label>
<Label layoutX="46.0" layoutY="442.0" text="Password:" textAlignment="CENTER" textFill="#fffafa">
<font>
<Font name="System Italic" size="36.0" />
</font>
</Label>
<Label layoutX="27.0" layoutY="535.0" text="Check password:" textFill="WHITE">
<font>
<Font name="System Italic" size="36.0" />
</font>
</Label>
<TextField fx:id="userIdField" layoutX="294.0" layoutY="167.0" />
<TextField fx:id="usernameField" layoutX="294.0" layoutY="256.0" />
<TextField fx:id="profileNameField" layoutX="294.0" layoutY="355.0" />
<PasswordField fx:id="passwordField" layoutX="294.0" layoutY="449.0" />
<PasswordField fx:id="confirmPasswordField" layoutX="294.0" layoutY="542.0" />
<Button fx:id="submitButton" layoutX="367.0" layoutY="626.0" mnemonicParsing="false" style="-fx-background-color: #f8bbd0; -fx-background-radius: 12; -fx-border-color: #6a1b9a; -fx-border-radius: 12;" text="Submit" textAlignment="CENTER" textFill="#79195c">
<font>
<Font name="System Bold" size="18.0" />
</font>
</Button>
<Button fx:id="backButton" layoutX="146.0" layoutY="626.0" mnemonicParsing="false" prefHeight="41.0" prefWidth="87.0" style="-fx-background-color: #f8bbd0; -fx-background-radius: 12; -fx-border-color: #6a1b9a; -fx-border-radius: 12;" text="Back" textFill="#79195c" />
</children>
</AnchorPane>
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import javafx.scene.text.*?>
<?import javafx.scene.paint.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<StackPane prefHeight="600.0" prefWidth="800.0" style="-fx-background-color: #f5f5f5;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.to.telegramfinalproject.UI.login_view">
<children>
<VBox alignment="CENTER">
<children>
<AnchorPane prefHeight="596.0" prefWidth="800.0" style="-fx-background-color: linear-gradient(to right, #B39DDB, #81D4FA); -fx-background-radius: 15;">
<children>
<Label layoutX="448.0" layoutY="55.0" text="Telegarm" textAlignment="CENTER" textFill="#ffffff">
<font>
<Font name="System Bold" size="40.0" />
</font>
</Label>
<Button fx:id="loginButton" layoutX="462.0" layoutY="170.0" prefHeight="50.0" prefWidth="150.0" style="-fx-background-color: #f8bbd0; -fx-text-fill: #6a1b9a; -fx-background-radius: 12; -fx-font-weight: bold;" text="Login" />
<Button fx:id="registerButton" layoutX="462.0" layoutY="267.0" prefHeight="50.0" prefWidth="150.0" style="-fx-background-color: #f8bbd0; -fx-text-fill: #6a1b9a; -fx-background-radius: 12; -fx-font-weight: bold;" text="Register" />
</children>
</AnchorPane>
</children>
</VBox>
</children>
</StackPane>