Skip to content

Commit

Permalink
column layout when small screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
renaldox committed Mar 2, 2024
1 parent ddac96c commit c09bbbb
Showing 1 changed file with 54 additions and 9 deletions.
63 changes: 54 additions & 9 deletions src/lib/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
import { IconBrandDiscord, IconBrandFacebook, IconBrandGithub } from '@tabler/icons-svelte';
</script>

<AppBar shadow="shadow-2xl" slotTrail="!space-x-2 flex flex-wrap text-sm md:text-base lg:text-lg">
<AppBar
gridColumns="grid grid-cols-1 sm:grid-cols-3"
slotLead="sm:place-self-start place-self-center"
shadow="shadow-2xl"
slotTrail="sm:place-self-end place-self-center !space-x-2 flex flex-wrap text-sm md:text-base lg:text-lg"
>
<svelte:fragment slot="lead">
<div class="flex items-center space-x-4">
<div class="flex items-center space-x-4 border border-black border-solid">
<a
title="Dive into the code"
class="hidden btn btn-sm variant-ghost-surface md:block"
class="hidden btn btn-sm variant-ghost-surface sm:block"
href="https://github.com/Samoa-Stack-Overflow"
target="_blank"
>
Expand All @@ -18,14 +23,14 @@
<a
target="_blank"
href="https://github.com/Samoa-Stack-Overflow"
class="lg:!ml-0 w-[32px] lg:w-auto overflow-hidden block md:hidden"
class="lg:!ml-0 w-[32px] lg:w-auto overflow-hidden block sm:hidden"
>
<IconBrandGithub />
</a>
&nbsp;&nbsp;
<a
title="Join us on Discord"
class="hidden btn btn-sm variant-ghost-surface md:block"
class="hidden btn btn-sm variant-ghost-surface sm:block"
href="https://forms.gle/aoTeV9jF5h7wnqAG6"
target="_blank"
>
Expand All @@ -35,14 +40,14 @@
<a
target="_blank"
href="https://forms.gle/aoTeV9jF5h7wnqAG6"
class="lg:!ml-0 w-[32px] lg:w-auto overflow-hidden block md:hidden"
class="lg:!ml-0 w-[32px] lg:w-auto overflow-hidden block sm:hidden"
>
<IconBrandDiscord />
</a>
&nbsp;&nbsp;
<a
title="Get the latest on Facebook"
class="hidden btn btn-sm variant-ghost-surface md:block"
class="hidden btn btn-sm variant-ghost-surface sm:block"
href="https://www.facebook.com/groups/948415479224570"
target="_blank"
>
Expand All @@ -52,13 +57,53 @@
<a
target="_blank"
href="https://www.facebook.com/groups/948415479224570"
class="lg:!ml-0 w-[32px] lg:w-auto overflow-hidden block md:hidden"
class="lg:!ml-0 w-[32px] lg:w-auto overflow-hidden block sm:hidden"
>
<IconBrandFacebook />
</a>
</div>
</svelte:fragment>
<svelte:fragment slot="trail">
Copyright © {new Date().getFullYear()} Samoa Stack Overflow. All Rights Reserved.
<div class="border border-black border-solid">
Copyright © {new Date().getFullYear()} Samoa Stack Overflow. All Rights Reserved.
</div>
</svelte:fragment>
</AppBar>

<div class="flex items-center justify-center">
<div class="flex items-center flex-grow space-x-4 border border-black border-solid">
<a
title="Dive into the code"
class="btn btn-sm variant-ghost-surface"
href="https://github.com/Samoa-Stack-Overflow"
target="_blank"
>
GitHub
</a>

&nbsp;&nbsp;
<a
title="Join us on Discord"
class="btn btn-sm variant-ghost-surface"
href="https://forms.gle/aoTeV9jF5h7wnqAG6"
target="_blank"
>
Discord
</a>
&nbsp;&nbsp;
<a
title="Get the latest on Facebook"
class="btn btn-sm variant-ghost-surface"
href="https://www.facebook.com/groups/948415479224570"
target="_blank"
>
Facebook
</a>
</div>

<div class="border border-black border-solid">
Copyright © {new Date().getFullYear()} Samoa Stack Overflow. All Rights Reserved.
RIGHT SIDE
</div>
</div>
</AppBar> -->

0 comments on commit c09bbbb

Please sign in to comment.