LoginView überarbeitet

This commit is contained in:
Richard Reiswich 2023-01-16 23:09:16 +01:00
parent 8ce8c027c8
commit 8634df0d6d
2 changed files with 58 additions and 21 deletions

View File

@ -2,8 +2,6 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?> <?import javafx.scene.control.Label?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?> <?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.GridPane?> <?import javafx.scene.layout.GridPane?>

View File

@ -2,26 +2,65 @@
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?> <?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?> <?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.GridPane?> <?import javafx.scene.effect.Blend?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
<AnchorPane> <?import javafx.scene.layout.HBox?>
<GridPane hgap="10.0" vgap="10.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" <?import javafx.scene.layout.VBox?>
fx:controller="com.bib.essensbestellungsverwaltung.HelloController"> <?import javafx.scene.shape.Circle?>
<padding> <?import javafx.scene.text.Font?>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0" /> <?import javafx.scene.text.Text?>
</padding>
<Label text="Bitte geben Sie Ihre Anmeldedaten ein." GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="0" />
<Label text="Benutzername:" GridPane.columnIndex="0" GridPane.rowIndex="1" />
<TextField fx:id="unsernameEingabe" GridPane.columnIndex="1" GridPane.rowIndex="1" />
<Label text="Passwort:" GridPane.columnIndex="0" GridPane.rowIndex="2" />
<PasswordField fx:id="passwortEingabe" GridPane.columnIndex="1" GridPane.rowIndex="2" />
<Button prefHeight="26.0" prefWidth="80.0" text="Login" GridPane.columnIndex="1" GridPane.rowIndex="3" />
<Label fx:id="lblAusgabe" GridPane.columnSpan="2" GridPane.rowIndex="5" />
<Button mnemonicParsing="false" prefHeight="26.0" prefWidth="80.0" style="-fx-background-color: transparent;" text="Registrieren" underline="true" GridPane.rowIndex="4" />
</GridPane>
</AnchorPane>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<VBox alignment="CENTER" prefHeight="400.0" prefWidth="265.0" style="-fx-background-color: lightblue;">
<children>
<Text fill="WHITE" strokeType="OUTSIDE" strokeWidth="0.0" text="Essenbestellung">
<font>
<Font name="Yu Gothic Light" size="26.0" />
</font>
</Text>
</children>
<padding>
<Insets bottom="150.0" />
</padding>
</VBox>
<Circle fill="#67b5ff2e" layoutX="-23.0" layoutY="368.0" radius="100.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#69b6ffb0" layoutX="235.0" layoutY="310.0" radius="158.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#93c4f23d" layoutY="258.0" radius="106.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<VBox alignment="CENTER" layoutX="263.0" prefHeight="400.0" prefWidth="338.0" style="-fx-background-color: white;">
<children>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" />
<TextField promptText="email" style="-fx-background-color: transparent;">
<VBox.margin>
<Insets bottom="15.0" left="25.0" right="25.0" top="25.0" />
</VBox.margin>
<effect>
<Blend />
</effect>
<font>
<Font name="Arimo" size="12.0" />
</font>
</TextField>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" />
<PasswordField promptText="passwort">
<VBox.margin>
<Insets bottom="25.0" left="25.0" right="25.0" top="15.0" />
</VBox.margin>
</PasswordField>
<HBox alignment="CENTER" prefHeight="30.0" prefWidth="238.0">
<children>
<Button mnemonicParsing="false" prefHeight="25.0" prefWidth="106.0" style="-fx-background-radius: 25; -fx-background-color: lightblue;" text="Login" textFill="WHITE" />
<Button id="btSignUp" mnemonicParsing="false" prefHeight="25.0" prefWidth="101.0" style="-fx-background-color: tranparent;" text="Sign up" textFill="#7c7b7b" underline="true" />
</children>
</HBox>
</children>
<padding>
<Insets bottom="65.0" left="45.0" right="45.0" top="45.0" />
</padding>
</VBox>
<Circle fill="#1469b895" layoutX="133.0" layoutY="368.0" radius="106.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
<Circle fill="#0088ff82" layoutX="77.0" layoutY="276.0" radius="53.0" stroke="BLACK" strokeType="INSIDE" strokeWidth="0.0" />
</children>
</AnchorPane>