diff --git a/src/lib/components/Hamburger.svelte b/src/lib/components/Hamburger.svelte new file mode 100644 index 00000000..54801a23 --- /dev/null +++ b/src/lib/components/Hamburger.svelte @@ -0,0 +1,63 @@ + + + + + diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 988d9aaf..478a0460 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -1,13 +1,18 @@ + +
- - - - -
- +
+ + {#if innerWidth < 768} + + {:else} + + {/if}
diff --git a/src/lib/components/Locale.svelte b/src/lib/components/Locale.svelte index efa1e6b7..d5274696 100644 --- a/src/lib/components/Locale.svelte +++ b/src/lib/components/Locale.svelte @@ -19,6 +19,6 @@ diff --git a/src/lib/components/MenuDesktop.svelte b/src/lib/components/MenuDesktop.svelte new file mode 100644 index 00000000..31736b78 --- /dev/null +++ b/src/lib/components/MenuDesktop.svelte @@ -0,0 +1,79 @@ + + + + +
+ +
+ + diff --git a/src/lib/components/MenuSmartphone.svelte b/src/lib/components/MenuSmartphone.svelte new file mode 100644 index 00000000..413295dc --- /dev/null +++ b/src/lib/components/MenuSmartphone.svelte @@ -0,0 +1,83 @@ + + + + +
+ +
+ + + + diff --git a/src/routes/[lang]/(website)/coupon/+page.svelte b/src/routes/[lang]/(website)/coupon/+page.svelte index 8b85fe4c..eeb64266 100644 --- a/src/routes/[lang]/(website)/coupon/+page.svelte +++ b/src/routes/[lang]/(website)/coupon/+page.svelte @@ -113,9 +113,17 @@ .latest-coupons .block { display: flex; + flex-direction: row; + flex-wrap: wrap; gap: 1em; } + @media (max-width: 620px) { + .latest-coupons .block { + flex-direction: column; + } + } + .latest-coupons .block .card { border: 2px solid var(--color-border-2); padding: 1em;