|
57 | 57 |
|
58 | 58 | <Supporters /> |
59 | 59 |
|
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> |
73 | 82 |
|
74 | 83 | <style> |
75 | 84 | h2 { |
76 | 85 | line-height: 1.05; |
77 | 86 | } |
78 | 87 |
|
| 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 | +
|
79 | 97 | 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%); |
84 | 113 | } |
85 | 114 |
|
86 | | -footer a { |
| 115 | +footer h4 { |
| 116 | +font-size: var(--sk-text-m); |
| 117 | +padding-bottom: 1rem; |
| 118 | +} |
| 119 | +
|
| 120 | +.links a { |
87 | 121 | color: var(--sk-text-2); |
88 | | -padding: 0.5rem 1rem; |
| 122 | +font-size: var(--sk-text-s); |
89 | 123 | display: block; |
| 124 | +line-height: 1.8; |
90 | 125 | } |
91 | 126 |
|
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 | +} |
94 | 144 | } |
95 | 145 | </style> |
0 commit comments