Skip to content

Commit 6857042

Browse files
authored
site: alternate footer design (#8774)
1 parent b8918fa commit 6857042

File tree

4 files changed

+73
-28
lines changed

4 files changed

+73
-28
lines changed

sites/svelte.dev/src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { browser } from '$app/environment';
33
import { page } from '$app/stores';
44
import { Icon, Shell } from '@sveltejs/site-kit/components';
5-
import { Nav, Separator } from '@sveltejs/site-kit/nav';
5+
import { Nav } from '@sveltejs/site-kit/nav';
66
import { Search, SearchBox } from '@sveltejs/site-kit/search';
77
import '@sveltejs/site-kit/styles/index.css';
88

sites/svelte.dev/src/routes/+page.svelte

Lines changed: 71 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -57,39 +57,89 @@
5757

5858
<Supporters />
5959

60-
{#if $theme.current === 'light'}
61-
<Image lazy src={CollectiveLight} alt="The Svelte logo in a ball pit" />
62-
{:else}
63-
<Image lazy src={CollectiveDark} alt="The Svelte logo in a ball pit" />
64-
{/if}
65-
66-
<footer>
67-
<a href="/tutorial">Tutorial</a>
68-
<a href="/docs">Docs</a>
69-
<a href="/examples">Examples</a>
70-
<a href="/blog">Blog</a>
71-
<a href="https://opencollective.com/svelte">Open Collective</a>
72-
</footer>
60+
<section>
61+
<footer>
62+
<div class="logo">
63+
</div>
64+
<div class="links">
65+
<h4>resources</h4>
66+
<a href="/docs">documentation</a>
67+
<a href="/tutorial">tutorial</a>
68+
<a href="/examples">examples</a>
69+
<a href="/blog">blog</a>
70+
</div>
71+
<div class="links">
72+
<h4>connect</h4>
73+
<a href="https://github.com/sveltejs/svelte">github</a>
74+
<a href="https://opencollective.com/svelte">open collective</a>
75+
<a href="/chat">discord</a>
76+
<a href="https://twitter.com/sveltejs">twitter</a>
77+
</div>
78+
<div class="copyright">© 2023 <a href="https://github.com/sveltejs/svelte/graphs/contributors">Svelte contributors</a></div>
79+
<div class="open-source">Svelte is <a href="https://github.com/sveltejs/svelte">free and open source software</a> released under the MIT license</div>
80+
</footer>
81+
</section>
7382

7483
<style>
7584
h2 {
7685
line-height: 1.05;
7786
}
7887
88+
p {
89+
font-size: var(--sk-text-m);
90+
}
91+
92+
section {
93+
background: var(--sk-back-4);
94+
padding: 10rem 0;
95+
}
96+
7997
footer {
80-
display: flex;
81-
flex-wrap: wrap;
82-
justify-content: center;
83-
padding: 4rem;
98+
max-width: 120rem;
99+
padding: 0 var(--sk-page-padding-side);
100+
margin: 0 auto;
101+
display: grid;
102+
grid-template-columns: repeat(2, 1fr);
103+
grid-template-rows: 1fr;
104+
grid-row-gap: 6rem;
105+
}
106+
107+
footer .logo {
108+
display: none;
109+
background: url('@sveltejs/site-kit/branding/svelte-logo.svg');
110+
background-repeat: no-repeat;
111+
background-size: 8rem;
112+
filter: grayscale(100%) opacity(84%);
84113
}
85114
86-
footer a {
115+
footer h4 {
116+
font-size: var(--sk-text-m);
117+
padding-bottom: 1rem;
118+
}
119+
120+
.links a {
87121
color: var(--sk-text-2);
88-
padding: 0.5rem 1rem;
122+
font-size: var(--sk-text-s);
89123
display: block;
124+
line-height: 1.8;
90125
}
91126
92-
p {
93-
font-size: var(--sk-text-m);
127+
.open-source {
128+
display: none;
129+
grid-column: span 2;
130+
}
131+
132+
@media (min-width: 500px) {
133+
footer {
134+
grid-template-columns: repeat(3, 1fr);
135+
}
136+
137+
footer .logo {
138+
display: block;
139+
}
140+
141+
.open-source {
142+
display: block;
143+
}
94144
}
95145
</style>

sites/svelte.dev/src/routes/_components/Supporters/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<Section --background="var(--sk-back-2">
88
<p class="intro">
9-
Svelte is free and open source software, made possible by the work of hundreds of supporters.
9+
Svelte is made possible by the work of hundreds of supporters.
1010
</p>
1111

1212
<div class="layout">

sites/svelte.dev/src/routes/_components/Try.svelte

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@
7070
font-size: var(--sk-text-xl);
7171
}
7272
73-
a {
74-
color: inherit;
75-
text-decoration: underline;
76-
}
77-
7873
@media (min-width: 900px) {
7974
.grid {
8075
grid-template-columns: repeat(var(--columns), 1fr);

0 commit comments

Comments
 (0)