<UserControl xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 xmlns:vm="using:Needlework.Net.ViewModels.Pages.Home"
             mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
             x:Class="Needlework.Net.Views.Pages.Home.HextechDocsPostView"
			 x:DataType="vm:HextechDocsPostViewModel">
	<Border BorderBrush="{DynamicResource ControlStrokeColorOnAccentTertiaryBrush}"
			BorderThickness="1"
			CornerRadius="4"
			Height="80">
		<Grid>
			<Border CornerRadius="4"
					ClipToBounds="True">
				<Image Source="/Assets/bg-event-pass.jpg"
				   Stretch="UniformToFill"/>
			</Border>
			<Border Padding="8">
				<Grid RowDefinitions="*,*,*">
					<TextBlock Text="{Binding HextechDocsPost.Title}"
							   Theme="{StaticResource BodyStrongTextBlockStyle}"
							   TextTrimming="CharacterEllipsis"
							   Grid.Row="0"/>
					<TextBlock Text="{Binding HextechDocsPost.Excerpt}"
							   TextTrimming="CharacterEllipsis"
							   Grid.Row="1"/>
					<HyperlinkButton Padding="0"
									 Content="{Binding HextechDocsPost.Url}"
									 NavigateUri="{Binding HextechDocsPost.Url}"
									 Grid.Row="2"/>
				</Grid>
			</Border>
		</Grid>
	</Border>

</UserControl>
