Skip to content

Commit c08e587

Browse files
committed
[dashboard] Update theme preference selector
1 parent ebcd8ad commit c08e587

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

components/dashboard/src/settings/Preferences.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,23 @@ export default function Preferences() {
5959
</SelectableCard>
6060
</div>
6161
<h3 className="mt-12">Theme</h3>
62-
<p className="text-base text-gray-500">Light or dark?</p>
62+
<p className="text-base text-gray-500">Early bird or night owl? Choose your side.</p>
6363
<div className="mt-4 space-x-4 flex">
64-
<label><input type="radio" name="theme" value="system" checked={theme === 'system'} onChange={() => actuallySetTheme('system')}></input> System</label>
65-
<label><input type="radio" name="theme" value="dark" checked={theme === 'dark'} onChange={() => actuallySetTheme('dark')}></input> Dark</label>
66-
<label><input type="radio" name="theme" value="light" checked={theme === 'light'} onChange={() => actuallySetTheme('light')}></input> Light</label>
64+
<SelectableCard className="w-36 h-40" title="Light" selected={theme === 'light'} onClick={() => actuallySetTheme('light')}>
65+
<div className="flex-grow flex justify-center align-center">
66+
<svg className="h-16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 108 64"><rect width="68" height="40" x="40" fill="#C4C4C4" rx="8"/><rect width="32" height="16" fill="#C4C4C4" rx="8"/><rect width="32" height="16" y="24" fill="#C4C4C4" rx="8"/><rect width="32" height="16" y="48" fill="#C4C4C4" rx="8"/></svg>
67+
</div>
68+
</SelectableCard>
69+
<SelectableCard className="w-36 h-40" title="Dark" selected={theme === 'dark'} onClick={() => actuallySetTheme('dark')}>
70+
<div className="flex-grow flex justify-center align-center">
71+
<svg className="h-16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 108 64"><rect width="68" height="40" x="40" fill="#737373" rx="8"/><rect width="32" height="16" fill="#737373" rx="8"/><rect width="32" height="16" y="24" fill="#737373" rx="8"/><rect width="32" height="16" y="48" fill="#737373" rx="8"/></svg>
72+
</div>
73+
</SelectableCard>
74+
<SelectableCard className="w-36 h-40" title="System" selected={theme === 'system'} onClick={() => actuallySetTheme('system')}>
75+
<div className="flex-grow flex justify-center align-center">
76+
<svg className="h-16" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 108 64"><rect width="68" height="40" x="40" fill="#C4C4C4" rx="8"/><path fill="#737373" d="M74.111 3.412A8 8 0 0180.665 0H100a8 8 0 018 8v24a8 8 0 01-8 8H48.5L74.111 3.412z"/><rect width="32" height="16" fill="#C4C4C4" rx="8"/><rect width="32" height="16" y="24" fill="#737373" rx="8"/><rect width="32" height="16" y="48" fill="#C4C4C4" rx="8"/></svg>
77+
</div>
78+
</SelectableCard>
6779
</div>
6880
</PageWithSubMenu>
6981
</div>;

0 commit comments

Comments
 (0)