|
|
|
@ -1,10 +1,15 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import Section from '../Section.svelte';
|
|
|
|
import { companies } from './companies.js';
|
|
|
|
import { companies } from './companies.js';
|
|
|
|
|
|
|
|
import { theme } from '@sveltejs/site-kit/theme';
|
|
|
|
|
|
|
|
|
|
|
|
const sorted = companies.sort((a, b) => (a.alt < b.alt ? -1 : 1));
|
|
|
|
const sorted = companies.sort((a, b) => (a.alt < b.alt ? -1 : 1));
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="logos">
|
|
|
|
<Section --background={$theme.current === 'light' ? 'var(--sk-back-4)' : '#444'}>
|
|
|
|
|
|
|
|
<section class="whos-using-svelte-container" class:dark={$theme.current === 'dark'}>
|
|
|
|
|
|
|
|
<h3>Who's using Svelte?</h3>
|
|
|
|
|
|
|
|
<div class="logos">
|
|
|
|
{#each sorted as { href, filename, alt, style, invert, width, height }}
|
|
|
|
{#each sorted as { href, filename, alt, style, invert, width, height }}
|
|
|
|
<a target="_blank" rel="noreferrer" {href} class:invert style={style || ''}>
|
|
|
|
<a target="_blank" rel="noreferrer" {href} class:invert style={style || ''}>
|
|
|
|
<img src="/whos-using-svelte/{filename}" {alt} {width} {height} loading="lazy" />
|
|
|
|
<img src="/whos-using-svelte/{filename}" {alt} {width} {height} loading="lazy" />
|
|
|
|
@ -12,9 +17,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
<span class="spacer" />
|
|
|
|
<span class="spacer" />
|
|
|
|
{/each}
|
|
|
|
{/each}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</Section>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
|
|
|
font-size: var(--sk-text-xl);
|
|
|
|
|
|
|
|
}
|
|
|
|
.logos {
|
|
|
|
.logos {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
margin: 6rem 0 0 0;
|
|
|
|
margin: 6rem 0 0 0;
|
|
|
|
@ -55,6 +65,7 @@
|
|
|
|
min-width: 0; /* Avoid image overflow in Safari */
|
|
|
|
min-width: 0; /* Avoid image overflow in Safari */
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
/* mix-blend-mode: multiply; */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 640px) {
|
|
|
|
@media (min-width: 640px) {
|
|
|
|
@ -74,10 +85,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:global(body.dark) .logos a {
|
|
|
|
a {
|
|
|
|
|
|
|
|
--invert: 1;
|
|
|
|
--invert: 1;
|
|
|
|
filter: grayscale(1) contrast(4) opacity(0.7) invert(var(--invert, 0));
|
|
|
|
filter: grayscale(1) contrast(4) opacity(0.7) invert(var(--invert, 0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|