This repository has been archived by the owner on May 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathProfilePage.ux
71 lines (71 loc) · 4.37 KB
/
ProfilePage.ux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<Page ux:Class="ProfilePage" Transition="Default">
<Router ux:Dependency="router" />
<JavaScript File="ProfilePage.js" />
<DockPanel ux:Name="logoutPanel">
<TopFrameBackground Dock="Top" Background="#000" />
<DockPanel>
<Panel Dock="Top" Height="50">
<Image File="Assets/Images/GradientBg.png" Layer="Background" StretchMode="Fill" />
<DockPanel ux:Name="navbarDock">
<Image File="Assets/Images/ArrowBack.png" Dock="Left" HitTestMode="LocalBounds" Width="20" Clicked="{GoBack}" />
<Panel Dock="Fill">
<ux:Include File="DropShadow.inc.ux" />
<Text Value="Profile" Alignment="Center" FontSize="22" Font="Regular" TextColor="#fff" TextWrapping="NoWrap" />
</Panel>
<Panel Dock="Right" Width="20" />
</DockPanel>
</Panel>
<!-- Logout panel -->
<ScrollView ux:Name="logoutScrollView" Dock="Fill" AllowedScrollDirections="Vertical" ClipToBounds="false">
<ux:Include File="GradientBackground.inc.ux" />
<StackPanel Padding="20">
<Circle Width="100" Height="100" Color="LoColor">
<ImageFill Url="{user.userpic_https_url}" />
<ux:Include File="DropShadow.inc.ux" />
</Circle>
<Text Alignment="Center" Value="{user.username}" TextColor="#fff" FontSize="22" Font="Regular" Margin="0,10,0,0" TextWrapping="NoWrap">
<ux:Include File="DropShadow.inc.ux" />
</Text>
<Text Alignment="Center" Value="{user.fullname}" TextColor="#fff" FontSize="20" Font="Light" TextWrapping="NoWrap">
<ux:Include File="DropShadow.inc.ux" />
</Text>
<Text ux:Name="domainText" Alignment="Center" TextColor="HiColor" FontSize="16" Font="Light" Value="{user.https_domain}">
<WhilePressed>
<Change domainText.Opacity="0.5" Duration="0.2" Easing="CircularInOut" />
</WhilePressed>
<Clicked>
<LaunchUri Uri="{user.https_domain}" />
</Clicked>
</Text>
<Grid Columns="2" Margin="0,20,0,0">
<Panel Column="1" Alignment="Right" Padding="4,0">
<Text Value="{user.photos_count}" TextColor="HiColor" FontSize="36" Font="Regular" TextWrapping="NoWrap" />
<ux:Include File="DropShadow.inc.ux" />
</Panel>
<Text Column="2" Alignment="Left" Value="photos" TextColor="#fff" FontSize="20" Font="Light" TextWrapping="NoWrap" />
</Grid>
<Grid Columns="2" Padding="2">
<Panel Column="1" Alignment="Right" Padding="4,0">
<Text Value="{user.followers_count}" TextColor="HiColor" FontSize="36" Font="Regular" TextWrapping="NoWrap" />
<ux:Include File="DropShadow.inc.ux" />
</Panel>
<Text Column="2" Alignment="Left" Value="followers" TextColor="#fff" FontSize="20" Font="Light" TextWrapping="NoWrap" />
</Grid>
<Grid Columns="2" Padding="2">
<Panel Column="1" Alignment="Right" Padding="4,0">
<Text Value="{user.friends_count}" TextColor="HiColor" FontSize="36" Font="Regular" TextWrapping="NoWrap" />
<ux:Include File="DropShadow.inc.ux" />
</Panel>
<Text Column="2" Alignment="Left" Value="friends" TextColor="#fff" FontSize="20" Font="Light" TextWrapping="NoWrap" />
</Grid>
<D500px.Button ux:Name="logoutButton" Text="Log Out" Margin="0,20,0,0" Alignment="Center">
<Clicked>
<Callback Handler="{SignOut}" />
</Clicked>
</D500px.Button>
</StackPanel>
</ScrollView>
</DockPanel>
<BottomFrameBackground Dock="Bottom" IncludesKeyboard="false" Background="#000" />
</DockPanel>
</Page>