Skip to content

Commit 16f3692

Browse files
committed
svelte: Import base layout
1 parent a788e54 commit 16f3692

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

svelte/src/routes/+layout.svelte

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,52 @@
22
import '$lib/css/global.css';
33
import favicon from '$lib/assets/favicon.svg';
44
5+
// TODO: import ProgressBar from '$lib/components/ProgressBar.svelte';
6+
// TODO: import Header from '$lib/components/Header.svelte';
7+
// TODO: import Footer from '$lib/components/Footer.svelte';
8+
59
let { children } = $props();
10+
11+
// TODO: implement color scheme support
12+
// TODO: implement notification container
613
</script>
714

815
<svelte:head>
916
<link rel="icon" href={favicon} />
17+
<title>crates.io: Rust Package Registry</title>
1018
</svelte:head>
1119

12-
{@render children()}
20+
<!-- TODO: <ProgressBar /> -->
21+
<!-- TODO: <NotificationContainer position='top-right' /> -->
22+
<div id="tooltip-container"></div>
23+
24+
<!-- TODO: <Header hero={isIndex} /> -->
25+
26+
<main class="main">
27+
<div class="inner-main width-limit">
28+
{@render children()}
29+
</div>
30+
</main>
31+
32+
<!-- TODO: <Footer /> -->
33+
34+
<style>
35+
.main {
36+
flex-grow: 1;
37+
display: flex;
38+
justify-content: center;
39+
width: 100%;
40+
position: relative;
41+
background-color: var(--main-bg);
42+
color: var(--main-color);
43+
box-shadow: 0 0 6px 0 var(--main-shadow-color);
44+
}
45+
46+
.inner-main {
47+
--main-layout-padding: var(--space-s);
48+
49+
display: flex;
50+
flex-direction: column;
51+
padding: var(--main-layout-padding);
52+
}
53+
</style>

0 commit comments

Comments
 (0)