kawwa/SshSetup.axaml
2025-05-23 18:07:57 -05:00

53 lines
1.8 KiB
XML

<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"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
Background="Black"
x:Class="kawwa.SshSetup">
<Grid>
<StackPanel
Width="600"
Margin="20,20,20,20"
Background="#141414"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock
FontSize="28"
HorizontalAlignment="Center"
Margin="15">
~ kawwa client ~
</TextBlock>
<TextBlock
HorizontalAlignment="Center"
Width="500"
TextWrapping="Wrap"
Margin="0,0,0,15">
Click the button below to copy a new ssh public key to your clipboard.
In a tilde.town shell, edit the file <Bold>~/.ssh/authorized_keys</Bold>
and paste this key to a new line at the end of the file. Then type in your
username, and press Connect.
</TextBlock>
<Button
x:Name="copyButton"
Content="Copy key to clipboard"
Click="OnCopyButton"
HorizontalAlignment="Center"
Margin="0,0,0,10" />
<TextBox
x:Name="userTextBox"
HorizontalAlignment="Center"
Width="150"
Margin="0,0,0,10"
Watermark="Username..."
TextChanged="OnUserTextChanged" />
<Button
x:Name="connectButton"
Margin="0,0,0,10"
HorizontalAlignment="Center"
Content="Connect"
Click="OnConnectButton"/>
</StackPanel>
</Grid>
</UserControl>