-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLayout.astro
More file actions
68 lines (58 loc) · 1.6 KB
/
Layout.astro
File metadata and controls
68 lines (58 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
import '../style/global.css'
import '@fontsource-variable/jetbrains-mono'
import { ClientRouter } from 'astro:transitions'
import { SkipLink } from 'accessible-astro-components'
import Nav from './components/Nav.astro'
interface Props {
title: string
description?: string // Optional (?)
}
const { title, description = 'PyconES 2026' } = Astro.props
---
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="description" content={description} />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/svg+xml" href="/2026.es.pycon.org/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<ClientRouter />
</head>
<body
class="bg-slate-900 text-white antialiased h-screen flex flex-col justify-center bg-linear-to-r from-gray to-blue-900 bg-radial"
>
<SkipLink />
<Nav />
<main id="main-content" class="flex-grow">
<slot />
</main>
</body>
</html>
<style is:global>
/* Global CSS styles (Vanilla CSS) */
:root {
/* If you want to define native CSS variables */
--accent: 136, 58, 234;
}
html {
font-family: system-ui, sans-serif;
scroll-behavior: smooth; /* Smooth scroll when navigating by anchors (#) */
}
/* Scrollbar customization (optional, Midudev style) */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #0f172a;
}
::-webkit-scrollbar-thumb {
background: #334155;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #475569;
}
</style>