Skip to content

Commit

Permalink
Improve layout on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Feb 6, 2023
1 parent 1cb8d85 commit d178ce8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/playground/src/templates/pages/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,17 @@
</head>
<body class="fixed inset-0 group dark:bg-zinc-900 dark:text-white">
<main class="fixed top-0 left-0 w-full h-full">
<div class="z-10 absolute top-0 flex items-center gap-8 w-full p-4 leading-4 bg-zinc-100 dark:bg-zinc-800 text-sm dark:text-zinc-100 dark:border-b-zinc-700">
<div class="flex items-center gap-4">
<span class="font-bold">UI Playground</span>
<div class="z-10 absolute top-0 flex items-center gap-4 sm:gap-8 w-full h-12 p-4 leading-4 bg-zinc-100 dark:bg-zinc-800 text-sm dark:text-zinc-100 dark:border-b-zinc-700">
<div class="flex items-center gap-2 sm:gap-4">
<span class="font-bold">
UI
<span class="hidden md:inline">Playground</span>
</span>
<span class="py-1 px-2 rounded bg-zinc-200 dark:bg-zinc-900 dark:bg-opacity-50">
<span class="text-xs">v{{ version }}</span>
</span>
</div>
<div class="flex items-center gap-4">
<div class="flex items-center gap-3 sm:gap-4">
{% include '@components/Checkbox.twig' with {
label: 'HTML',
attr: {
Expand All @@ -69,8 +72,8 @@
} %}
</div>

<div data-component="LayoutSwitcher" class="flex items-center gap-4">
Layout
<div data-component="LayoutSwitcher" class="flex items-center gap-2 sm:gap-4">
<div class="hidden md:block">Layout</div>
{% include '@components/RadioGroup.twig' with {
items: [
{
Expand Down Expand Up @@ -101,8 +104,8 @@
} %}
</div>

<div data-component="ThemeSwitcher" class="flex gap-4">
Theme
<div data-component="ThemeSwitcher" class="flex gap-2 sm:gap-4">
<div class="hidden md:block">Theme</div>
{% include '@components/RadioGroup.twig' with {
items: [
{
Expand Down

0 comments on commit d178ce8

Please sign in to comment.