Skip to content

Commit 366dfaa

Browse files
Merge branch 'main' into 1950-Search-bar-UI
2 parents 6acb63f + ec689af commit 366dfaa

File tree

16 files changed

+369
-142
lines changed

16 files changed

+369
-142
lines changed

src/routes/(init)/+layout.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@
99
}
1010
1111
const { children }: Props = $props();
12+
const showLockUp = $state(
13+
page.route.id?.includes('/init/tickets') &&
14+
!page.route.id?.includes('/init/tickets/[username]') &&
15+
!isStarted
16+
);
1217
</script>
1318

1419
<Main>
1520
<div
1621
class="flex min-h-screen flex-col bg-[url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUwIiBoZWlnaHQ9IjUwMCIgdmlld0JveD0iMCAwIDI1MCA1MDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHk9IjI1MSIgd2lkdGg9IjQiIGhlaWdodD0iNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4yNCIvPgo8cmVjdCB4PSIxMjAiIHk9IjQ5NiIgd2lkdGg9IjQiIGhlaWdodD0iNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4yNCIvPgo8L3N2Zz4K)] bg-[size:calc(100vw_/_11)] bg-[position:center_top]"
1722
>
1823
{@render children()}
19-
{#if page.url.pathname.includes('/init/tickets') && !isStarted}
24+
{#if showLockUp}
2025
<div class="hidden overflow-y-hidden md:block">
2126
<Lockup class="-mb-[16rem] w-full lg:-mb-[24rem]" />
2227
</div>
484 KB
Loading

src/routes/(init)/init/(components)/day.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" module>
22
export type DayProps = {
3-
illustration: string;
3+
illustration: string | object;
44
release: Date;
55
title: string;
66
description: string;

src/routes/(init)/init/(components)/giveaway.svelte

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
11
<script lang="ts">
22
import TicketCard from '../tickets/(components)/ticket-card.svelte';
33
import Avatar from '../(assets)/avatar.png';
4+
import InitGiveaway from '../(assets)/init-giveaway.png';
45
import { classNames } from '$lib/utils/classnames';
56
import { Button } from '$lib/components/ui';
7+
import { Media } from '$lib/UI';
68
</script>
79

8-
<div class="container grid min-h-[65vh] w-full grid-cols-1 place-items-center py-20 md:grid-cols-2">
9-
<div>
10-
<h2 class="text-title text-primary font-aeonik-pro mb-4">
11-
Get a ticket and enter<br /> our Init giveaway
12-
</h2>
13-
<p class="text-secondary text-body mb-8">
14-
Create, customize and share your ticket to get the chance to win exclusive Init swag.
15-
</p>
16-
<Button href="/init/tickets/customize" variant="secondary">Claim your ticket</Button>
10+
<div
11+
class="container grid min-h-[65vh] w-full grid-cols-1 place-items-center py-5 md:grid-cols-2 md:py-20"
12+
>
13+
<div class="flex flex-col gap-12">
14+
<Media
15+
src={InitGiveaway}
16+
alt="Init giveaway"
17+
class="web-media md:max-h-[304px] md:max-w-[467px]"
18+
/>
19+
20+
<div>
21+
<h2 class="text-title text-primary font-aeonik-pro mb-4">
22+
Get a ticket and<br />enter our giveaway
23+
</h2>
24+
<p class="text-secondary text-body mb-6">
25+
Create, customize and share your ticket to get the chance to win exclusive Init
26+
swag.
27+
</p>
28+
<Button href="/init/tickets/customize" variant="secondary">Claim your ticket</Button>
29+
</div>
1730
</div>
18-
<div class="relative flex w-full items-center">
31+
32+
<div
33+
class="relative me-8 hidden w-full items-center gap-4 md:me-0 md:flex md:scale-[1.073] md:gap-0"
34+
>
1935
<div style:transform="rotate(4deg)" class="absolute right-40 z-0">
2036
<TicketCard
2137
$id="1"

src/routes/(init)/init/+page.svelte

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import Hero from './(components)/hero.svelte';
2121
import Giveaway from './(components)/giveaway.svelte';
2222
import EventCarousel from './(components)/event-carousel.svelte';
23+
import { FooterNav, MainFooter } from '$lib/components';
2324
2425
const title = 'Init - Appwrite';
2526
const description = 'The start of something new.';
@@ -182,5 +183,43 @@
182183
</div>
183184

184185
<EventCarousel />
185-
<Giveaway />
186186
{/if}
187+
188+
<Giveaway />
189+
190+
<div class="footer-section extended-borders-footer container">
191+
<FooterNav />
192+
193+
<MainFooter />
194+
</div>
195+
196+
<style lang="scss">
197+
.extended-borders-footer {
198+
z-index: 0;
199+
position: relative;
200+
}
201+
.extended-borders-footer::before {
202+
content: '';
203+
position: absolute;
204+
border-top: 2px dashed var(--color-offset);
205+
pointer-events: none;
206+
z-index: -1;
207+
height: 0;
208+
209+
@media (min-width: 768px) {
210+
left: -100%;
211+
right: -100%;
212+
}
213+
}
214+
215+
.footer-section {
216+
& :global(.web-footer-nav) {
217+
border-block-start: none;
218+
margin-block-start: unset;
219+
220+
@media (max-width: 768px) {
221+
border-block-start: solid 0.0625rem hsl(var(--web-color-smooth));
222+
}
223+
}
224+
}
225+
</style>

0 commit comments

Comments
 (0)