Created
April 1, 2023 07:55
-
-
Save GitaiQAQ/0fe5e5481d7c2cd6b76df4147d49b452 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
#aside-controller:checked+aside { | |
transform: translateX(0); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="flex min-h-screen flex-col justify-center overflow-hidden bg-gray-100"> | |
<div class="rounded-lg container bg-white shadow-lg ring-1 ring-gray-900/5 sm:mx-auto"> | |
<header class="border-b p-6 shadow-sm"> | |
<img src="/img/logo.svg" class="h-7" alt="Tailwind Play" /> | |
</header> | |
<div class="relative overflow-hidden"> | |
<label for="aside-controller" class="ml-3 mt-2 inline-flex rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-50 md:hidden"> | |
<span class="sr-only">Open sidebar</span> | |
<svg class="h-6 w-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> | |
<path clip-rule="evenodd" fill-rule="evenodd" d="M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zm0 10.5a.75.75 0 01.75-.75h7.5a.75.75 0 010 1.5h-7.5a.75.75 0 01-.75-.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10z"></path> | |
</svg> | |
</label> | |
<input id="aside-controller" type="checkbox" class="hidden" /> | |
<aside class="absolute px-3 py-4 left-0 top-0 h-full w-64 -translate-x-full border-r bg-gray-50 transition-transform md:translate-x-0"> | |
<ul class="space-y-2 font-medium"> | |
<li> | |
<label for="aside-controller" class="flex items-center rounded-lg p-2 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700 md:hidden"> | |
<svg aria-hidden="true" class="h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z" /> | |
<path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z" /> | |
</svg> | |
<span class="ml-3">Close sidebar</span> | |
</label> | |
</li> | |
<li> | |
<!-- svelte-ignore a11y-invalid-attribute --> | |
<a href="#" class="flex items-center rounded-lg p-2 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"> | |
<svg aria-hidden="true" class="h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z" /> | |
<path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z" /> | |
</svg> | |
<span class="ml-3">Dashboard</span> | |
</a> | |
</li> | |
</ul> | |
</aside> | |
<div class="mx-auto p-4 pb-10 md:ml-64"> | |
<div class="divide-y divide-gray-300/50"> | |
<div class="rounded-lg border-2 border-dashed border-gray-200 p-4 dark:border-gray-700"> | |
<div class="mb-4 grid grid-cols-3 gap-4"> | |
<div class="flex h-24 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"></div> | |
<div class="flex h-24 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="flex h-24 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
</div> | |
<div class="mb-4 flex h-48 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="mb-4 grid grid-cols-2 gap-4"> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
</div> | |
<div class="mb-4 flex h-48 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="grid grid-cols-2 gap-4"> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
<div class="flex h-28 items-center justify-center rounded bg-gray-50 dark:bg-gray-800"> | |
<p class="text-2xl text-gray-400 dark:text-gray-500">+</p> | |
</div> | |
</div> | |
</div> | |
<div class="pt-8 text-base font-semibold leading-7"> | |
<p class="text-gray-900">Want to dig deeper into Tailwind?</p> | |
<p> | |
<a href="https://tailwindcss.com/docs" class="text-sky-500 hover:text-sky-600">Read the docs →</a> | |
</p> | |
</div> | |
<div class="pt-8 text-base font-semibold leading-7"> | |
<p class="text-gray-900">Want to dig deeper into Tailwind?</p> | |
<p> | |
<a href="https://tailwindcss.com/docs" class="text-sky-500 hover:text-sky-600">Read the docs →</a> | |
</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment