mirror of
https://github.com/Lapikud/lapikud.github.io.git
synced 2026-08-08 18:09:13 +00:00
padding updates
This commit is contained in:
|
Before Width: | Height: | Size: 275 KiB After Width: | Height: | Size: 275 KiB |
@@ -27,6 +27,9 @@
|
|||||||
|
|
||||||
/* Design tokens & theme variables (light defaults) */
|
/* Design tokens & theme variables (light defaults) */
|
||||||
:root {
|
:root {
|
||||||
|
--page-max-width: 1460px;
|
||||||
|
--page-padding-inline: clamp(1rem, 2vw, 2rem);
|
||||||
|
|
||||||
/* spacing scale */
|
/* spacing scale */
|
||||||
--spacing-0: 0px;
|
--spacing-0: 0px;
|
||||||
--spacing-1: 4px;
|
--spacing-1: 4px;
|
||||||
|
|||||||
@@ -11,6 +11,6 @@ projected via the default slot.
|
|||||||
export let className = "";
|
export let className = "";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="w-full {center ? 'px-4 md:px-6 lg:px-8' : ''} {maxWidth ? '' : 'max-w-[1200px]'} {center ? 'mx-auto' : ''} {className}">
|
<div class="w-full {center ? 'px-[var(--page-padding-inline)]' : ''} {maxWidth ? '' : 'max-w-[var(--page-max-width)]'} {center ? 'mx-auto' : ''} {className}">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
<script>
|
<script>
|
||||||
let {
|
let {
|
||||||
bg = "",
|
bg = "",
|
||||||
|
background = "",
|
||||||
padding = "normal",
|
padding = "normal",
|
||||||
fullWidth = true,
|
fullWidth = false,
|
||||||
id = "",
|
id = "",
|
||||||
className = "",
|
className = "",
|
||||||
|
contentClassName = "",
|
||||||
children
|
children
|
||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
@@ -19,9 +21,10 @@
|
|||||||
|
|
||||||
<section
|
<section
|
||||||
{id}
|
{id}
|
||||||
class="w-full {paddingClasses[padding]} {bg} {className}"
|
class="relative w-full {bg} {className}"
|
||||||
|
style={background ? `background: ${background};` : undefined}
|
||||||
>
|
>
|
||||||
<div class="{fullWidth ? '' : 'max-w-[1200px]'} mx-auto">
|
<div class="w-full {fullWidth ? '' : 'max-w-[var(--page-max-width)]'} mx-auto px-[var(--page-padding-inline)] {paddingClasses[padding]} {contentClassName}">
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -31,7 +31,7 @@ import {
|
|||||||
</Container>
|
</Container>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Container>
|
<Container center={false}>
|
||||||
<h3 class="text-3xl font-light flex justify-center pb-4">Sotsiaalmeedia</h3>
|
<h3 class="text-3xl font-light flex justify-center pb-4">Sotsiaalmeedia</h3>
|
||||||
<div class="flex items-center justify-center gap-4">
|
<div class="flex items-center justify-center gap-4">
|
||||||
<a href="https://www.instagram.com/lapikud/" target="_blank" rel="noopener noreferrer" aria-label="Instagram" class="transition-opacity duration-200">
|
<a href="https://www.instagram.com/lapikud/" target="_blank" rel="noopener noreferrer" aria-label="Instagram" class="transition-opacity duration-200">
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import {
|
import {
|
||||||
Section,
|
Section,
|
||||||
Grid,
|
Grid,
|
||||||
Container,
|
|
||||||
} from "$components";
|
} from "$components";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import { text } from "$lib/i18n";
|
import { text } from "$lib/i18n";
|
||||||
@@ -57,8 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<Container>
|
<Section>
|
||||||
<Section>
|
|
||||||
<Grid min="480px" gap="var(--space-5)">
|
<Grid min="480px" gap="var(--space-5)">
|
||||||
<!-- What is HELPDESK? -->
|
<!-- What is HELPDESK? -->
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
@@ -190,4 +188,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Section>
|
</Section>
|
||||||
</Container>
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
|
|
||||||
<!-- Past Management Section -->
|
<!-- Past Management Section -->
|
||||||
<Section padding="large" background="rgba(240, 148, 29, 0.05)">
|
<Section padding="large" background="rgba(240, 148, 29, 0.05)">
|
||||||
<Container>
|
<Container center={false}>
|
||||||
<Center>
|
<Center>
|
||||||
<h1 class="text-4xl font-light pb-8 text-center">
|
<h1 class="text-4xl font-light pb-8 text-center">
|
||||||
Organisatsiooni juhtinud inimesed läbi aegade
|
Organisatsiooni juhtinud inimesed läbi aegade
|
||||||
|
|||||||
@@ -3,22 +3,20 @@ import {Section, Stack, Grid, Center, Image, Svg, Button} from "$components";
|
|||||||
import { navigate } from "$lib/router/router.js";
|
import { navigate } from "$lib/router/router.js";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- TODO: grid gap dynamic -->
|
|
||||||
|
|
||||||
<!-- Hero Section -->
|
<!-- Hero Section -->
|
||||||
<Section className="relative min-h-screen overflow-hidden" padding="none" bg="bg-gray-900" id="hero">
|
<Section className="relative min-h-screen overflow-hidden" padding="none" bg="bg-gray-900" id="hero">
|
||||||
<div class="relative min-h-screen flex items-center">
|
<div class="relative min-h-screen flex items-center">
|
||||||
<div class="absolute inset-0" aria-hidden="true">
|
<div class="absolute inset-0 left-1/2 w-screen -translate-x-1/2" aria-hidden="true">
|
||||||
<Image
|
<Image
|
||||||
src="/assets/BSidesTLN25-KerstinTälli-128.jpg"
|
src="/assets/hero.jpg"
|
||||||
alt=""
|
alt="illustrative hero image"
|
||||||
objectFit="cover"
|
objectFit="cover"
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
pictureClass="block w-full h-full"
|
pictureClass="block w-full h-full"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="pointer-events-none absolute inset-0 hidden md:block [clip-path:polygon(42%_0,100%_0,100%_100%,65%_100%)]"
|
class="pointer-events-none absolute inset-0 left-1/2 hidden w-screen -translate-x-1/2 md:block [clip-path:polygon(42%_0,100%_0,100%_100%,65%_100%)]"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
<Svg
|
<Svg
|
||||||
@@ -34,8 +32,8 @@ import { navigate } from "$lib/router/router.js";
|
|||||||
className="absolute right-0 bottom-[12%] w-[clamp(130px,14vw,230px)] text-[#E18E38]"
|
className="absolute right-0 bottom-[12%] w-[clamp(130px,14vw,230px)] text-[#E18E38]"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="pointer-events-none absolute inset-y-0 left-0 w-[70%] bg-linear-to-r from-black/65 via-black/35 to-transparent" aria-hidden="true"></div>
|
<div class="pointer-events-none absolute inset-y-0 left-1/2 w-screen -translate-x-1/2 bg-linear-to-r from-black/65 via-black/35 to-transparent" aria-hidden="true"></div>
|
||||||
<div class="relative z-20 flex min-h-screen w-full items-stretch px-6 py-8 md:px-10 md:py-12">
|
<div class="relative z-20 flex min-h-screen w-full items-stretch py-8 md:py-12">
|
||||||
<div class="flex w-full max-w-[460px] flex-col justify-between">
|
<div class="flex w-full max-w-[460px] flex-col justify-between">
|
||||||
<img src="/assets/LapLogo_white_orange.png" alt="MTÜ Lapikud" class="w-full max-w-[220px] md:max-w-[260px] h-auto"/>
|
<img src="/assets/LapLogo_white_orange.png" alt="MTÜ Lapikud" class="w-full max-w-[220px] md:max-w-[260px] h-auto"/>
|
||||||
<div class="flex flex-col items-start gap-5">
|
<div class="flex flex-col items-start gap-5">
|
||||||
@@ -57,7 +55,7 @@ import { navigate } from "$lib/router/router.js";
|
|||||||
|
|
||||||
|
|
||||||
<Section className="relative overflow-hidden">
|
<Section className="relative overflow-hidden">
|
||||||
<div class="pointer-events-none absolute inset-x-0 top-15 z-0" aria-hidden="true">
|
<div class="pointer-events-none absolute inset-x-0 left-1/2 top-15 z-0 w-screen -translate-x-1/2" aria-hidden="true">
|
||||||
<Svg
|
<Svg
|
||||||
type="connector"
|
type="connector"
|
||||||
className="absolute left-0 w-[clamp(130px,14vw,230px)] text-orange-500"
|
className="absolute left-0 w-[clamp(130px,14vw,230px)] text-orange-500"
|
||||||
@@ -68,7 +66,7 @@ import { navigate } from "$lib/router/router.js";
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Grid columns={2} largeColumns={3} mobileColumns={1} className="relative z-10 items-start max-w-6xl mx-auto mt-12 px-4 md:mt-20 md:px-6" gap="gap-12 md:gap-16 lg:gap-24">
|
<Grid columns={2} largeColumns={3} mobileColumns={1} className="relative z-10 items-start mt-12 md:mt-20" gap="gap-12 md:gap-16 lg:gap-24">
|
||||||
<Center dir="col" className="w-full max-w-sm justify-start mx-auto">
|
<Center dir="col" className="w-full max-w-sm justify-start mx-auto">
|
||||||
<div class="w-[min(72vw,240px)] md:w-[min(26vw,280px)] lg:w-[min(23vw,300px)] aspect-square rounded-full overflow-hidden">
|
<div class="w-[min(72vw,240px)] md:w-[min(26vw,280px)] lg:w-[min(23vw,300px)] aspect-square rounded-full overflow-hidden">
|
||||||
<Image
|
<Image
|
||||||
|
|||||||
Reference in New Issue
Block a user