Skip to content

Commit 17c5402

Browse files
authored
Cleanup logos on homepage (#6409)
1 parent 3f990a9 commit 17c5402

23 files changed

+157
-34
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ _output
3030
/site/static/svelte-app.json
3131
/site/static/contributors.jpg
3232
/site/static/workers
33-
/site/static/organisations
3433
/site/scripts/svelte-app
3534
/site/scripts/community
3635
/site/src/routes/_contributors.js
37-
/site/src/routes/_components/WhosUsingSvelte.*

site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"copy-workers": "node scripts/copy-workers.js",
88
"migrate": "node-pg-migrate -r dotenv/config",
99
"build": "npm run copy-workers && sapper build --legacy",
10-
"update": "node scripts/update_template.js && node scripts/get-contributors.js && node scripts/update_whos_using.js",
10+
"update": "node scripts/update_template.js && node scripts/get-contributors.js",
1111
"start": "node __sapper__/build",
1212
"test": "mocha -r esm test/**",
1313
"deploy": "make deploy"

site/scripts/update_whos_using.js

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
export const companies = [
2+
{
3+
href: "https://1password.com",
4+
filename: "1password.svg",
5+
alt: "1Password logo",
6+
},
7+
{
8+
href: "https://www.alaskaair.com/",
9+
style: "background-color: #01426a;",
10+
filename: "alaskaairlines.svg",
11+
alt: "Alaska Airlines logo",
12+
},
13+
{
14+
href: "https://avast.com",
15+
filename: "avast.svg",
16+
alt: "Avast logo",
17+
},
18+
{
19+
href: "https://chess.com",
20+
style: "background-color: #312e2b;",
21+
filename: "chess.svg",
22+
alt: "Chess.com logo",
23+
},
24+
{
25+
href: "https://fusioncharts.com",
26+
filename: "fusioncharts.svg",
27+
alt: "FusionCharts logo",
28+
},
29+
{
30+
href: "https://godaddy.com",
31+
filename: "godaddy.svg",
32+
alt: "GoDaddy logo",
33+
},
34+
{
35+
href: "https://www.ibm.com/",
36+
filename: "ibm.svg",
37+
alt: "IBM logo",
38+
},
39+
{
40+
href: "https://media.lesechos.fr/infographie",
41+
filename: "les-echos.svg",
42+
alt: "Les Echos",
43+
},
44+
{
45+
href: "https://www.philips.co.uk",
46+
filename: "philips.svg",
47+
alt: "Philips logo",
48+
},
49+
{
50+
href: "https://global.rakuten.com/corp/",
51+
filename: "rakuten.svg",
52+
alt: "Rakuten logo",
53+
},
54+
{
55+
href: "https://razorpay.com",
56+
filename: "razorpay.svg",
57+
alt: "Razorpay logo",
58+
},
59+
{
60+
href: "https://www.se.com",
61+
style: " background-color: #3dcd58; ",
62+
filename: "Schneider_Electric.svg",
63+
alt: "Schneider Electric",
64+
},
65+
{
66+
href: "https://squareup.com",
67+
filename: "square.svg",
68+
alt: "Square",
69+
},
70+
{
71+
href: "https://nytimes.com",
72+
filename: "nyt.svg",
73+
alt: "The New York Times logo",
74+
},
75+
{
76+
href: "https://transloadit.com",
77+
filename: "transloadit.svg",
78+
alt: "Transloadit",
79+
},
80+
];
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<script>
2+
import { companies } from './WhosUsingSvelte.js';
3+
const randomizer = ({prominent}) => Math.random();
4+
const doSort = (a, b) => randomizer(b) - randomizer(a);
5+
const sortedCompanies = companies.sort(doSort);
6+
</script>
7+
8+
<style>
9+
.logos {
10+
margin: 1em 0 0 0;
11+
display: flex;
12+
flex-wrap: wrap;
13+
}
14+
a {
15+
height: 40px;
16+
margin: 0 0.5em 0.5em 0;
17+
display: flex;
18+
align-items: center;
19+
border: 2px solid var(--second);
20+
padding: 5px 10px;
21+
border-radius: 20px;
22+
color: var(--text);
23+
}
24+
picture,
25+
img {
26+
height: 100%;
27+
}
28+
@media (min-width: 540px) {
29+
a {
30+
height: 60px;
31+
padding: 10px 20px;
32+
border-radius: 30px;
33+
}
34+
}
35+
</style>
36+
37+
<div class="logos">
38+
{#each sortedCompanies as {href, filename, alt, style, picture, span}, index}
39+
<a
40+
target="_blank"
41+
rel="noopener"
42+
{href}
43+
style="{style || ''}"
44+
>
45+
{#if picture}
46+
<picture>
47+
{#each picture as {type, srcset}}
48+
<source {type} {srcset}>
49+
{/each}
50+
<img src="/whos-using-svelte/{filename}" {alt} loading="lazy">
51+
</picture>
52+
{:else}
53+
<img src="/whos-using-svelte/{filename}" {alt} loading="lazy">
54+
{#if span}
55+
<span>{span}</span>
56+
{/if}
57+
{/if}
58+
</a>
59+
{/each}
60+
</div>

site/src/routes/repl/[id]/_components/AppControls/index.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
export let gist;
1717
export let name;
1818
export let zen_mode;
19-
export let bundle;
2019
2120
let saving = false;
2221
let downloading = false;

site/src/routes/repl/[id]/index.svelte

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -167,27 +167,10 @@
167167
z-index: 111;
168168
}
169169
170-
.pane { width: 100%; height: 100% }
171-
172-
.loading {
173-
text-align: center;
174-
color: var(--second);
175-
font-weight: 400;
176-
margin: 2em 0 0 0;
177-
opacity: 0;
178-
animation: fade-in .4s;
179-
animation-delay: .2s;
180-
animation-fill-mode: both;
181-
}
182-
183170
@keyframes fade-in {
184171
0% { opacity: 0 }
185172
100% { opacity: 1 }
186173
}
187-
188-
.input {
189-
padding: 2.4em 0 0 0;
190-
}
191174
</style>
192175

193176
<svelte:head>

site/src/routes/tutorial/[slug]/_TableOfContents.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
{selected.chapter.title}
7878
</span>
7979

80+
<!-- svelte-ignore a11y-no-onchange -->
8081
<select value={slug} on:change={navigate}>
8182
{#each sections as section, i}
8283
<optgroup label="{i + 1}. {section.title}">
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)