CurvedHeaderProfileScrollView.xaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.CurvedHeaderProfileScrollView">
  4. <ScrollViewer VerticalScrollBarVisibility="Auto">
  5. <StackPanel Spacing="0">
  6. <!-- Spacer for dome header + avatar overlap: 110 (flat) + 32 (dome) + 44 (avatar/2) + 16 = 202px -->
  7. <Border Height="202"/>
  8. <!-- Stats row -->
  9. <Border BorderBrush="#E5E7EB" BorderThickness="0,1,0,1" Padding="0,12">
  10. <Grid ColumnDefinitions="*,*,*" Margin="24,8,24,8">
  11. <StackPanel HorizontalAlignment="Center" Spacing="1">
  12. <TextBlock Text="128" FontSize="18" FontWeight="Bold"
  13. Foreground="#111827" TextAlignment="Center"/>
  14. <TextBlock Text="Posts" FontSize="12" Foreground="#64748b" TextAlignment="Center"/>
  15. </StackPanel>
  16. <StackPanel Grid.Column="1" HorizontalAlignment="Center" Spacing="1">
  17. <TextBlock Text="24.5K" FontSize="18" FontWeight="Bold"
  18. Foreground="#111827" TextAlignment="Center"/>
  19. <TextBlock Text="Followers" FontSize="12" Foreground="#64748b" TextAlignment="Center"/>
  20. </StackPanel>
  21. <StackPanel Grid.Column="2" HorizontalAlignment="Center" Spacing="1">
  22. <TextBlock Text="312" FontSize="18" FontWeight="Bold"
  23. Foreground="#111827" TextAlignment="Center"/>
  24. <TextBlock Text="Following" FontSize="12" Foreground="#64748b" TextAlignment="Center"/>
  25. </StackPanel>
  26. </Grid>
  27. </Border>
  28. <!-- Follow / Message buttons -->
  29. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
  30. Spacing="12" Margin="0,16,0,16">
  31. <Button Content="Follow"
  32. Background="#137fec" Foreground="White"
  33. CornerRadius="8" Width="120" Height="40"
  34. Padding="0"
  35. HorizontalContentAlignment="Center"
  36. VerticalContentAlignment="Center"/>
  37. <Button Content="Message"
  38. Background="#dbeafe" Foreground="#137fec"
  39. CornerRadius="8" Width="120" Height="40"
  40. Padding="0"
  41. HorizontalContentAlignment="Center"
  42. VerticalContentAlignment="Center"/>
  43. </StackPanel>
  44. <!-- Bio -->
  45. <TextBlock TextWrapping="Wrap" Margin="24,0,24,20" FontSize="13"
  46. Foreground="#64748b" TextAlignment="Center"
  47. Text="Crafting beautiful digital experiences. Passionate about design systems, accessibility, and great coffee. Open to collaborations!"/>
  48. <!-- Posts section -->
  49. <TextBlock Text="Posts" FontSize="16" FontWeight="Bold"
  50. Foreground="#111827" Margin="16,0,16,12"/>
  51. <Grid ColumnDefinitions="*,*,*" RowDefinitions="Auto,Auto" Margin="14,0">
  52. <!-- Row 0 -->
  53. <Border Margin="2" Height="100" CornerRadius="6" ClipToBounds="True">
  54. <Border.Background>
  55. <ImageBrush Source="avares://ControlCatalog/Assets/CurvedHeader/featured.jpg"
  56. Stretch="UniformToFill"/>
  57. </Border.Background>
  58. </Border>
  59. <Border Grid.Column="1" Margin="2" Height="100" CornerRadius="6" ClipToBounds="True">
  60. <Border.Background>
  61. <ImageBrush Source="avares://ControlCatalog/Assets/CurvedHeader/product1.jpg"
  62. Stretch="UniformToFill"/>
  63. </Border.Background>
  64. </Border>
  65. <Border Grid.Column="2" Margin="2" Height="100" CornerRadius="6" ClipToBounds="True">
  66. <Border.Background>
  67. <ImageBrush Source="avares://ControlCatalog/Assets/CurvedHeader/product2.jpg"
  68. Stretch="UniformToFill"/>
  69. </Border.Background>
  70. </Border>
  71. <!-- Row 1 -->
  72. <Border Grid.Row="1" Margin="2" Height="100" CornerRadius="6" ClipToBounds="True">
  73. <Border.Background>
  74. <ImageBrush Source="avares://ControlCatalog/Assets/CurvedHeader/product3.jpg"
  75. Stretch="UniformToFill"/>
  76. </Border.Background>
  77. </Border>
  78. <Border Grid.Row="1" Grid.Column="1" Margin="2" Height="100" CornerRadius="6" ClipToBounds="True">
  79. <Border.Background>
  80. <ImageBrush Source="avares://ControlCatalog/Assets/CurvedHeader/update1.jpg"
  81. Stretch="UniformToFill"/>
  82. </Border.Background>
  83. </Border>
  84. <Border Grid.Row="1" Grid.Column="2" Margin="2" Height="100" CornerRadius="6" ClipToBounds="True">
  85. <Border.Background>
  86. <ImageBrush Source="avares://ControlCatalog/Assets/CurvedHeader/update2.jpg"
  87. Stretch="UniformToFill"/>
  88. </Border.Background>
  89. </Border>
  90. </Grid>
  91. <Border Height="24"/>
  92. </StackPanel>
  93. </ScrollViewer>
  94. </UserControl>