Big leaderboard progress but still some refinement to be done

test_old_branch
Jules LASCRET 1 year ago
parent fc5d386f57
commit ff42ec0686

@ -2,101 +2,70 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Pages.Leaderboard" x:Class="Qwirkle.Pages.Leaderboard"
xmlns:controls="clr-namespace:Qwirkle.Views"
Title="Leaderboard"> Title="Leaderboard">
<VerticalStackLayout BackgroundColor="#efca85" Spacing="75"> <ScrollView>
<Label <VerticalStackLayout Spacing="50">
FontAttributes="Bold" <Label
FontFamily="Sitka" Text="Leaderboard"
FontSize="Header" TextColor="DarkSlateGrey"
HorizontalOptions="Center" FontSize="Header"
Padding="5" HorizontalOptions="Center"/>
Text="Leaderboard"
TextColor="#261a1a"
VerticalOptions="Center"
/>
<Grid> <Border Stroke="Black"
<Grid.RowDefinitions> StrokeThickness="1.5"
<RowDefinition Height="50" /> Margin="5">
<RowDefinition Height="Auto" /> <Border.StrokeShape>
</Grid.RowDefinitions> <RoundRectangle CornerRadius="10"/>
</Border.StrokeShape>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*" /> <VerticalStackLayout Padding="10">
<ColumnDefinition Width="3*" /> <controls:LeaderboardLine></controls:LeaderboardLine>
<ColumnDefinition Width="2*" /> <Rectangle HeightRequest="2" BackgroundColor="Black"/>
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions> <controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Border Stroke="Black" StrokeThickness="0.5"/>
<Label Text="Player Tag" <controls:LeaderboardLine></controls:LeaderboardLine>
TextColor="#1A2541" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
VerticalOptions="Center"
FontAttributes="Bold" <controls:LeaderboardLine></controls:LeaderboardLine>
FontSize="Medium" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
HorizontalOptions="Center"/>
<controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Border Stroke="Black" StrokeThickness="0.5" Grid.Column="1"/>
<Label Text="Date" <controls:LeaderboardLine></controls:LeaderboardLine>
TextColor="#1A2541" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
VerticalOptions="Center"
FontAttributes="Bold" <controls:LeaderboardLine></controls:LeaderboardLine>
FontSize="Medium" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
HorizontalOptions="Center"
Grid.Column="1"/> <controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Border Stroke="Black" StrokeThickness="0.5" Grid.Column="2"/>
<Label Text="Points" <controls:LeaderboardLine></controls:LeaderboardLine>
TextColor="#1A2541" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
VerticalOptions="Center"
FontAttributes="Bold" <controls:LeaderboardLine></controls:LeaderboardLine>
FontSize="Medium" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
HorizontalOptions="Center"
Grid.Column="2"/> <controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Border Stroke="Black" StrokeThickness="0.5" Grid.Column="3"/>
<Label Text="Victories" <controls:LeaderboardLine></controls:LeaderboardLine>
TextColor="#1A2541" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
VerticalOptions="Center"
FontAttributes="Bold" <controls:LeaderboardLine></controls:LeaderboardLine>
FontSize="Medium" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
HorizontalOptions="Center"
Grid.Column="3"/> <controls:LeaderboardLine></controls:LeaderboardLine>
<Rectangle HeightRequest="2" BackgroundColor="Black"/>
<Border Stroke="Black" StrokeThickness="0.5" Grid.Row="1"/> <controls:LeaderboardLine></controls:LeaderboardLine>
<Label Text="Le A" <Rectangle HeightRequest="2" BackgroundColor="Black"/>
TextColor="#1A2541" </VerticalStackLayout>
VerticalOptions="Center" </Border>
HorizontalOptions="Center" </VerticalStackLayout>
Grid.Row="1"/> </ScrollView>
<Border Stroke="Black" StrokeThickness="0.5" Grid.Row="1" Grid.Column="1"/>
<Label Text="03/25/2024"
TextColor="#1A2541"
VerticalOptions="Center"
HorizontalOptions="Center"
Grid.Row="1"
Grid.Column="1"/>
<Border Stroke="Black" StrokeThickness="0.5" Grid.Row="1" Grid.Column="2"/>
<Label Text="103"
TextColor="#1A2541"
VerticalOptions="Center"
HorizontalOptions="Center"
Grid.Row="1"
Grid.Column="2"/>
<Border Stroke="Black" StrokeThickness="0.5" Grid.Row="1" Grid.Column="3"/>
<Label Text="3"
TextColor="#1A2541"
VerticalOptions="Center"
HorizontalOptions="Center"
Grid.Row="1"
Grid.Column="3"/>
</Grid>
</VerticalStackLayout>
</ContentPage> </ContentPage>

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Qwirkle.Views.LeaderboardLine">
<Grid ColumnDefinitions="4*, 2*, 2*, 2*"
RowDefinitions="50">
<Label
Grid.Row="0"
Grid.Column="0"
FontSize="Medium"
FontAttributes="Bold"
Text="Player Tag"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
<Label
Grid.Row="0"
Grid.Column="1"
FontSize="Medium"
FontAttributes="Bold"
Text="Date"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
<Label
Grid.Row="0"
Grid.Column="2"
FontSize="Medium"
FontAttributes="Bold"
Text="Points"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
<Label
Grid.Row="0"
Grid.Column="3"
FontSize="Medium"
FontAttributes="Bold"
Text="Victories"
TextColor="DarkSlateGrey"
VerticalOptions="Center"/>
</Grid>
</ContentView>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Qwirkle.Views;
public partial class LeaderboardLine : ContentView
{
public LeaderboardLine()
{
InitializeComponent();
}
}
Loading…
Cancel
Save