|
1 | 1 | <script>
|
2 |
| - import { Blurb } from '@sveltejs/site-kit/home'; |
| 2 | + import { Blurb, Footer } from '@sveltejs/site-kit/home'; |
3 | 3 | // import { Blurb, TrySection } from '@sveltejs/site-kit/home';
|
4 | 4 | import Demo from './_components/Demo.svelte';
|
5 | 5 | import Hero from './_components/Hero.svelte';
|
|
56 | 56 |
|
57 | 57 | <Supporters />
|
58 | 58 |
|
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> |
87 | 104 |
|
88 | 105 | <style>
|
89 | 106 | h2 {
|
|
93 | 110 | p {
|
94 | 111 | font-size: var(--sk-text-m);
|
95 | 112 | }
|
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 |
| - } |
158 | 113 | </style>
|
0 commit comments