Skip to content

Commit fa9854b

Browse files
committed
fonts and site fixes
1 parent ed14409 commit fa9854b

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

src/app.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22
<html lang="en" class="text-gray-500 antialiased bg-white">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="/favicon.png" />
5+
<link rel="icon" href="/svelte-select.png" />
66

77
<style>
8+
9+
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap');
10+
811
html,body {
912
padding: 0;
1013
margin: 0;
11-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
14+
font-family: 'Source Sans Pro', sans-serif;
1215
}
1316

1417
* {

src/routes/+layout.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
3434
let source;
3535
async function handleExampleCode(newPage) {
36+
source = null;
37+
3638
if (!newPage?.routeId) return;
3739
3840
if (newPage.routeId.includes('examples/')) {
3941
const s = newPage.routeId.split('/');
4042
const file = setup[s[1]].find((i) => i.href.includes(s[2]));
4143
const raw = await file.source();
4244
source = raw.replace('$lib/Select.svelte', 'svelte-select');
43-
} else {
44-
source = null;
4545
}
4646
}
4747

src/routes/examples/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22
<img
3-
src="https://raw.githubusercontent.com/rob-balfre/svelte-select/feature/v5/svelte-select.png"
3+
src="/svelte-select.png"
44
alt="Svelte Select"
55
width="150" />
66
<h1>Svelte Select Examples</h1>

static/svelte-select.png

6.11 KB
Loading

0 commit comments

Comments
 (0)