evtl sogar fertig

This commit is contained in:
OliverT87 2025-06-04 08:56:55 +02:00
parent 68cf1e01db
commit eae41e1218
3 changed files with 64 additions and 13 deletions

View File

@ -2,11 +2,45 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="using:Avalonia.Interactivity"
x:Class="Project_Periodensystem.View.AboutPage">
<Grid>
<Button x:Name="BackButton"
Click="BackButton_Click">
Back
</Button>
</Grid>
x:Class="Project_Periodensystem.View.AboutPage"
Background="#5C5144">
<Grid>
<StackPanel VerticalAlignment="Center"
HorizontalAlignment="Center">
<TextBlock Text="Author: Oliver Träger"
FontSize="20"
Foreground="White"
HorizontalAlignment="Center"
Margin="0,0,0,10"/>
<TextBlock Text="Klasse: ITFS2"
FontSize="20"
Foreground="White"
HorizontalAlignment="Center"
Margin="0,0,0,10"/>
<TextBlock Text="SS2025"
FontSize="20"
Foreground="White"
HorizontalAlignment="Center"
Margin="0,0,0,40"/>
</StackPanel>
<Button x:Name="BackButton"
Click="BackButton_Click"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Margin="20"
Padding="20,10"
Background="Black"
Foreground="White">
<Button.Styles>
<Style Selector="Button:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="DarkRed"/>
</Style>
<Style Selector="Button:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="Red"/>
</Style>
</Button.Styles>
Back
</Button>
</Grid>
</UserControl>

View File

@ -1,7 +1,13 @@
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Project_Periodensystem.View.LandingPage">
x:Class="Project_Periodensystem.View.LandingPage"
Background="#5C5144">
<Grid>
<TextBlock Text="Willkommen zum Periodensystem der Elemente!"
FontSize="36"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Margin="0,40,0,0"/>
<Button Name="StartButton"
Click="StartButton_Click"
HorizontalAlignment="Center"

View File

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:conv="clr-namespace:Project_Periodensystem.View.Converters"
x:Class="Project_Periodensystem.View.PeriodicTablePage"
Background="Beige">
Background="#5C5144">
<UserControl.Resources>
<conv:SeriesToColorConverter x:Key="SeriesToColor"/>
@ -19,7 +19,8 @@
<!-- Header -->
<TextBlock Grid.Row="0"
Text="Periodensystem der Elemente"
FontSize="24"
FontSize="36"
FontWeight="Bold"
Foreground="White"
HorizontalAlignment="Center"
Margin="0,0,0,20"/>
@ -69,11 +70,21 @@
<!-- Footer with About Button -->
<Button Grid.Row="2"
x:Name="AboutButton"
Content="About"
Click="AboutButton_Click"
HorizontalAlignment="Right"
Margin="0,20,0,0"
Padding="20,10">
About
Padding="20,10"
Background="Black"
Foreground="White">
<Button.Styles>
<Style Selector="Button:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="DarkRed"/>
</Style>
<Style Selector="Button:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="Red"/>
</Style>
</Button.Styles>
</Button>
</Grid>
</UserControl>