Skip to content

fix #368 #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/svelte.dev/src/routes/_home/Companies.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
margin: 15rem 0 5rem 0;
mask-size: 100%;
mask-image: radial-gradient(ellipse 110rem 500%, white, white 70%, transparent);
overflow: hidden;
}

h2 {
Expand Down
49 changes: 28 additions & 21 deletions apps/svelte.dev/src/routes/_home/Supporters/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,38 @@
developed by full-time and part-time maintainers, Svelte is here to stay.
</p>

<div class="layout">
<div class="contributors supporters-grid">
{#each contributors as contributor, i}
<a
class="supporter"
style="background-position: {(100 * i) / (contributors.length - 1)}% 0"
style:background-image="url({contributors_img})"
href="https://github.com/{contributor}"
>
{contributor}
</a>
{/each}
<div class="wrapper">
<div class="layout">
<div class="supporters">
{#each contributors as contributor, i}
<a
class="supporter"
style="background-position: {(100 * i) / (contributors.length - 1)}% 0"
style:background-image="url({contributors_img})"
href="https://github.com/{contributor}"
>
{contributor}
</a>
{/each}

{#each donors as donor, i}
<a
class="supporter"
style="background-position: {(100 * i) / (donors.length - 1)}% 0"
style:background-image="url({donors_img})"
href="https://opencollective.com/svelte">{donor}</a
>
{/each}
{#each donors as donor, i}
<a
class="supporter"
style="background-position: {(100 * i) / (donors.length - 1)}% 0"
style:background-image="url({donors_img})"
href="https://opencollective.com/svelte">{donor}</a
>
{/each}
</div>
</div>
</div>

<style>
.wrapper {
width: 100%;
overflow: hidden;
}

.intro {
margin: 1em auto 3.2rem auto;
text-wrap: balance;
Expand All @@ -53,7 +60,7 @@
margin: 0 -1rem;
}

.supporters-grid {
.supporters {
position: relative;
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
Expand Down
4 changes: 0 additions & 4 deletions apps/svelte.dev/src/routes/_home/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
max-width: 116rem;
}

.home {
overflow-x: hidden;
}

.home .grid {
display: grid;
gap: 1em;
Expand Down
Loading