1
0
Fork 0
Browse Source

create the dashboard view.

pull/6/head
Craig Oates 4 years ago
parent
commit
25f8d9bc15
  1. 4
      src/EyesAndEars.UWP/EyesAndEars.UWP/EyesAndEars.UWP.csproj
  2. 144
      src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml
  3. 4
      src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest
  4. BIN
      src/EyesAndEars.UWP/EyesAndEars.UWP/images/logo.png

4
src/EyesAndEars.UWP/EyesAndEars.UWP/EyesAndEars.UWP.csproj

@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>EyesAndEars.UWP</RootNamespace>
<AssemblyName>EyesAndEars.UWP</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<DefaultLanguage>en-GB</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.18362.0</TargetPlatformMinVersion>
@ -130,6 +130,7 @@
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="images\logo.png" />
<Content Include="Properties\Default.rd.xml" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\SplashScreen.scale-200.png" />
@ -154,6 +155,7 @@
<Version>6.2.9</Version>
</PackageReference>
</ItemGroup>
<ItemGroup />
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>

144
src/EyesAndEars.UWP/EyesAndEars.UWP/MainPage.xaml

@ -8,7 +8,149 @@
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<Grid Margin="12">
<Grid.RowDefinitions>
<RowDefinition Height="96"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal"
VerticalAlignment="Top">
<Image Grid.Column="0" Width="88" Height="88" VerticalAlignment="Center"
Source="images\logo.png"/>
<StackPanel Padding="8,0">
<TextBlock Text="Return to Ritheron Project" FontSize="40"/>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Unnamed Project" Padding="0" FontSize="24"
VerticalAlignment="Bottom"/>
<TextBlock Text="by Nicola Ellis" Padding="0" Margin="12,0"
FontSize="18" VerticalAlignment="Bottom"/>
</StackPanel>
</StackPanel>
</StackPanel>
<Grid Grid.Row="1" Background="White" Margin="0,12">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0" Grid.Column="0" Background="DarkRed"
Margin="0,0,0,12" Width="300" Height="300">
<StackPanel Margin="12" VerticalAlignment="Stretch">
<TextBlock x:Name="Factory1Time" Text="2020-23-32 23:23"
Foreground="White" FontSize="24"/>
<TextBlock x:Name="Factory1Reading" Text="00" Foreground="White"
VerticalAlignment="Bottom" FontSize="144"/>
<TextBlock Text="Factory1" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/>
</StackPanel>
</Grid>
<Grid Grid.Row="0" Grid.Column="1" Background="DarkRed"
Margin="12,0,12,12" Width="300" Height="300">
<StackPanel Margin="12" VerticalAlignment="Stretch">
<TextBlock x:Name="Factory2Time" Text="2020-23-32 23:23"
Foreground="White" FontSize="24"/>
<TextBlock x:Name="Factory2Reading" Text="00" Foreground="White"
VerticalAlignment="Bottom" FontSize="144"/>
<TextBlock Text="Factory2" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/>
</StackPanel>
</Grid>
<Grid Grid.Row="0" Grid.Column="2" Background="DarkRed"
Margin="0,0,0,12" Width="300" Height="300">
<StackPanel Margin="12" VerticalAlignment="Stretch">
<TextBlock x:Name="Factory3Time" Text="2020-23-32 23:23"
Foreground="White" FontSize="24"/>
<TextBlock x:Name="Factory3Reading" Text="00" Foreground="White"
VerticalAlignment="Bottom" FontSize="144"/>
<TextBlock Text="Factory3" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Grid.Column="0" Background="DarkRed"
Margin="0,0,0,12" Width="300" Height="150">
<StackPanel Margin="12" VerticalAlignment="Bottom">
<TextBlock x:Name="Gallery1Time" Text="2020-23-32 23:23"
Foreground="White" FontSize="24"/>
<TextBlock Text="Gallery1" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Grid.Column="1" Background="DarkRed"
Margin="0,0,0,12" Width="300" Height="150">
<StackPanel Margin="12" VerticalAlignment="Bottom">
<TextBlock x:Name="Gallery2Time" Text="2020-23-32 23:23"
Foreground="White" FontSize="24"/>
<TextBlock Text="Gallery2" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Grid.Column="2" Background="DarkRed"
Margin="0,0,0,12" Width="300" Height="150">
<StackPanel Margin="12" VerticalAlignment="Bottom">
<TextBlock x:Name="Gallery3Time" Text="2020-23-32 23:23"
Foreground="White" FontSize="24"/>
<TextBlock Text="Gallery3" Foreground="White" FontSize="36"
VerticalAlignment="Bottom"/>
</StackPanel>
</Grid>
</Grid>
<Grid Grid.Row="2" Margin="0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*" MinWidth="350"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button x:Name="InfoButton" Grid.Column="0"
FontFamily="Segoe MDL2 Assets" Content="&#xE946;"
Height="79" Width="79" VerticalAlignment="Center"
HorizontalAlignment="Left" FontSize="28"
ToolTipService.Placement="Mouse"
ToolTipService.ToolTip="This is a link to a webpage with information about Nicola and the project."/>
<TextBox x:Name="WebAddressBox" Grid.Column="1" FontSize="26"
Padding="20" Text="http://3.9.19.84" TextAlignment="Left"
HorizontalAlignment="Stretch" TextWrapping="NoWrap"
Margin="0" VerticalAlignment="Center"
HorizontalContentAlignment="Left"
ToolTipService.Placement="Mouse"
ToolTipService.ToolTip="The base U.R.L. used to form the A.P.I. queries."
PlaceholderText="Enter the base U.R.L. here..."
/>
<StackPanel Orientation="Horizontal" Grid.Column="2">
<Button x:Name="RefreshButton" FontFamily="Segoe MDL2 Assets"
Content="&#xE72C;" Height="79" Width="79"
VerticalAlignment="Center" FontSize="28"
Margin="0,0,12,0" ToolTipService.Placement="Mouse"
ToolTipService.ToolTip="Click after you change the base U.R.L. it will make the program use the new U.R.L."/>
<Button x:Name="SaveURLButton" FontFamily="Segoe MDL2 Assets"
Content="&#xE74E;" Height="79" Width="79"
VerticalAlignment="Center" FontSize="28"
ToolTipService.Placement="Mouse"
ToolTipService.ToolTip="Click to save the base U.R.L."/>
</StackPanel>
</Grid>
</Grid>
</Page>

4
src/EyesAndEars.UWP/EyesAndEars.UWP/Package.appxmanifest

@ -32,10 +32,10 @@
Executable="$targetnametoken$.exe"
EntryPoint="EyesAndEars.UWP.App">
<uap:VisualElements
DisplayName="EyesAndEars.UWP"
DisplayName="Eyes and Ears"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="EyesAndEars.UWP"
Description="A dashboard for monitoring the unname, at time of writing, project which is part of the Return to Ritherdon Project ."
BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/>
<uap:SplashScreen Image="Assets\SplashScreen.png" />

BIN
src/EyesAndEars.UWP/EyesAndEars.UWP/images/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB