Skip to content

Commit efe5ff1

Browse files
PuruVJRomain Crestey
authored andcommitted
chore: Sitekit footer (sveltejs#9072)
* Push * Bump site-kit
1 parent efb37b2 commit efe5ff1

File tree

3 files changed

+51
-96
lines changed

3 files changed

+51
-96
lines changed

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/svelte.dev/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@resvg/resvg-js": "^2.4.1",
3131
"@sveltejs/adapter-vercel": "^3.0.3",
3232
"@sveltejs/kit": "^1.22.4",
33-
"@sveltejs/site-kit": "6.0.0-next.24",
33+
"@sveltejs/site-kit": "6.0.0-next.25",
3434
"@sveltejs/vite-plugin-svelte": "^2.4.3",
3535
"@types/cookie": "^0.5.1",
3636
"@types/node": "^20.4.7",
Lines changed: 46 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import { Blurb } from '@sveltejs/site-kit/home';
2+
import { Blurb, Footer } from '@sveltejs/site-kit/home';
33
// import { Blurb, TrySection } from '@sveltejs/site-kit/home';
44
import Demo from './_components/Demo.svelte';
55
import Hero from './_components/Hero.svelte';
@@ -56,34 +56,51 @@
5656

5757
<Supporters />
5858

59-
<section>
60-
<footer>
61-
<div class="logo" />
62-
<div class="links">
63-
<h4>ressources</h4>
64-
<a href="/docs">documentation</a>
65-
<a href="/tutorial">tutoriel</a>
66-
<a href="/examples">exemples</a>
67-
<a href="/blog">blog</a>
68-
</div>
69-
<div class="links">
70-
<h4>réseau</h4>
71-
<a href="https://github.com/sveltejs/svelte">github</a>
72-
<a href="https://opencollective.com/svelte">open collective</a>
73-
<a href="/chat">discord</a>
74-
<a href="https://twitter.com/sveltejs">twitter</a>
75-
</div>
76-
<div class="copyright">
77-
© 2023 <a href="https://github.com/sveltejs/svelte/graphs/contributors"
78-
>contributeurs Svelte</a
79-
>
80-
</div>
81-
<div class="open-source">
82-
Svelte est <a href="https://github.com/sveltejs/svelte">logiciel gratuit en license ouverte</a
83-
> publié sous la license MIT
84-
</div>
85-
</footer>
86-
</section>
59+
<Footer
60+
links={{
61+
resources: [
62+
{
63+
title: 'documentation',
64+
href: '/docs'
65+
},
66+
{
67+
title: 'tutoriel',
68+
href: '/tutorial'
69+
},
70+
{
71+
title: 'exemples',
72+
href: '/examples'
73+
},
74+
{
75+
title: 'blog',
76+
href: '/blog'
77+
}
78+
],
79+
connect: [
80+
{
81+
title: 'github',
82+
href: 'https://github.com/sveltejs/svelte'
83+
},
84+
{
85+
title: 'opencollective',
86+
href: 'https://opencollective.com/svelte'
87+
},
88+
{
89+
title: 'discord',
90+
href: '/chat'
91+
},
92+
{
93+
title: 'twitter',
94+
href: 'https://twitter.com/sveltejs'
95+
}
96+
]
97+
}}
98+
>
99+
<span slot="copyright">
100+
Svelte est <a href="https://github.com/sveltejs/svelte">logiciel gratuit en license ouverte</a> publié
101+
sous la license MIT
102+
</span>
103+
</Footer>
87104

88105
<style>
89106
h2 {
@@ -93,66 +110,4 @@
93110
p {
94111
font-size: var(--sk-text-m);
95112
}
96-
97-
section {
98-
background: var(--sk-back-4);
99-
padding: 10rem 0;
100-
}
101-
102-
footer {
103-
max-width: 120rem;
104-
padding: 0 var(--sk-page-padding-side);
105-
margin: 0 auto;
106-
display: grid;
107-
grid-template-columns: repeat(2, 1fr);
108-
grid-template-rows: 1fr;
109-
grid-row-gap: 6rem;
110-
}
111-
112-
footer .logo {
113-
display: none;
114-
background: url('@sveltejs/site-kit/branding/svelte-logo.svg');
115-
background-repeat: no-repeat;
116-
background-size: 8rem;
117-
filter: grayscale(100%) opacity(84%);
118-
}
119-
120-
footer h4 {
121-
font-size: var(--sk-text-m);
122-
padding-bottom: 1rem;
123-
}
124-
125-
.links a {
126-
color: var(--sk-text-2);
127-
font-size: var(--sk-text-s);
128-
display: block;
129-
line-height: 1.8;
130-
}
131-
132-
.open-source {
133-
display: none;
134-
grid-column: span 2;
135-
}
136-
137-
.copyright {
138-
grid-column: span 2;
139-
}
140-
141-
@media (min-width: 500px) {
142-
footer {
143-
grid-template-columns: repeat(3, 1fr);
144-
}
145-
146-
footer .logo {
147-
display: block;
148-
}
149-
150-
.copyright {
151-
grid-column: span 1;
152-
}
153-
154-
.open-source {
155-
display: block;
156-
}
157-
}
158113
</style>

0 commit comments

Comments
 (0)