|
1 | 1 | <script>
|
2 |
| - import { Blurb, TrySection } from '@sveltejs/site-kit/home'; |
| 2 | + import { Blurb, Footer, TrySection } from '@sveltejs/site-kit/home'; |
3 | 3 | import Demo from './_components/Demo.svelte';
|
4 | 4 | import Hero from './_components/Hero.svelte';
|
5 | 5 | import Supporters from './_components/Supporters/index.svelte';
|
|
52 | 52 |
|
53 | 53 | <Supporters />
|
54 | 54 |
|
55 |
| -<section> |
56 |
| - <footer> |
57 |
| - <div class="logo" /> |
58 |
| - <div class="links"> |
59 |
| - <h4>resources</h4> |
60 |
| - <a href="/docs">documentation</a> |
61 |
| - <a href="/tutorial">tutorial</a> |
62 |
| - <a href="/examples">examples</a> |
63 |
| - <a href="/blog">blog</a> |
64 |
| - </div> |
65 |
| - <div class="links"> |
66 |
| - <h4>connect</h4> |
67 |
| - <a href="https://github.com/sveltejs/svelte">github</a> |
68 |
| - <a href="https://opencollective.com/svelte">open collective</a> |
69 |
| - <a href="/chat">discord</a> |
70 |
| - <a href="https://twitter.com/sveltejs">twitter</a> |
71 |
| - </div> |
72 |
| - <div class="copyright"> |
73 |
| - © 2023 <a href="https://github.com/sveltejs/svelte/graphs/contributors">Svelte contributors</a |
74 |
| - > |
75 |
| - </div> |
76 |
| - <div class="open-source"> |
77 |
| - Svelte is <a href="https://github.com/sveltejs/svelte">free and open source software</a> released |
78 |
| - under the MIT license |
79 |
| - </div> |
80 |
| - </footer> |
81 |
| -</section> |
| 55 | +<Footer |
| 56 | + links={{ |
| 57 | + resources: [ |
| 58 | + { |
| 59 | + title: 'documentation', |
| 60 | + href: '/docs' |
| 61 | + }, |
| 62 | + { |
| 63 | + title: 'tutorial', |
| 64 | + href: '/tutorial' |
| 65 | + }, |
| 66 | + { |
| 67 | + title: 'examples', |
| 68 | + href: '/examples' |
| 69 | + }, |
| 70 | + { |
| 71 | + title: 'blog', |
| 72 | + href: '/blog' |
| 73 | + } |
| 74 | + ], |
| 75 | + connect: [ |
| 76 | + { |
| 77 | + title: 'github', |
| 78 | + href: 'https://github.com/sveltejs/svelte' |
| 79 | + }, |
| 80 | + { |
| 81 | + title: 'opencollective', |
| 82 | + href: 'https://opencollective.com/svelte' |
| 83 | + }, |
| 84 | + { |
| 85 | + title: 'discord', |
| 86 | + href: '/chat' |
| 87 | + }, |
| 88 | + { |
| 89 | + title: 'twitter', |
| 90 | + href: 'https://twitter.com/sveltejs' |
| 91 | + } |
| 92 | + ] |
| 93 | + }} |
| 94 | +> |
| 95 | + <span slot="copyright"> |
| 96 | + Svelte is <a href="https://github.com/sveltejs/svelte">free and open source software</a> released |
| 97 | + under the MIT license |
| 98 | + </span> |
| 99 | +</Footer> |
82 | 100 |
|
83 | 101 | <style>
|
84 | 102 | h2 {
|
|
88 | 106 | p {
|
89 | 107 | font-size: var(--sk-text-m);
|
90 | 108 | }
|
91 |
| -
|
92 |
| - section { |
93 |
| - background: var(--sk-back-4); |
94 |
| - padding: 10rem 0; |
95 |
| - } |
96 |
| -
|
97 |
| - footer { |
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%); |
113 |
| - } |
114 |
| -
|
115 |
| - footer h4 { |
116 |
| - font-size: var(--sk-text-m); |
117 |
| - padding-bottom: 1rem; |
118 |
| - } |
119 |
| -
|
120 |
| - .links a { |
121 |
| - color: var(--sk-text-2); |
122 |
| - font-size: var(--sk-text-s); |
123 |
| - display: block; |
124 |
| - line-height: 1.8; |
125 |
| - } |
126 |
| -
|
127 |
| - .open-source { |
128 |
| - display: none; |
129 |
| - grid-column: span 2; |
130 |
| - } |
131 |
| -
|
132 |
| - .copyright { |
133 |
| - grid-column: span 2; |
134 |
| - } |
135 |
| -
|
136 |
| - @media (min-width: 500px) { |
137 |
| - footer { |
138 |
| - grid-template-columns: repeat(3, 1fr); |
139 |
| - } |
140 |
| -
|
141 |
| - footer .logo { |
142 |
| - display: block; |
143 |
| - } |
144 |
| -
|
145 |
| - .copyright { |
146 |
| - grid-column: span 1; |
147 |
| - } |
148 |
| -
|
149 |
| - .open-source { |
150 |
| - display: block; |
151 |
| - } |
152 |
| - } |
153 | 109 | </style>
|
0 commit comments