Skip to content

Commit f51c2f4

Browse files
committed
added fonts and minor improvements
1 parent 91fb892 commit f51c2f4

14 files changed

+52
-8
lines changed

examples/puppeteer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"@aws-sdk/client-s3": "^3.629.0",
2020
"@aws-sdk/s3-request-presigner": "^3.629.0",
21-
"@diffusionstudio/core": "^1.0.0-beta.9",
21+
"@diffusionstudio/core": "^1.0.0-beta.11",
2222
"dotenv": "^16.4.5",
2323
"puppeteer": "^23.0.2"
2424
}

examples/scripting/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<head>
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="stylesheet" href="/src/fonts.css">
78
<link rel="stylesheet" href="/src/style.css">
89
<title>Diffusion Studio Examples</title>
910
</head>

examples/scripting/package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/scripting/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"vite-plugin-dynamic-import": "^1.5.0"
1717
},
1818
"dependencies": {
19-
"@diffusionstudio/core": "^1.0.0-beta.10"
19+
"@diffusionstudio/core": "^1.0.0-beta.11"
2020
},
2121
"optionalDependencies": {
2222
"@rollup/rollup-linux-x64-gnu": "4.9.5"
94.5 KB
Binary file not shown.
95.2 KB
Binary file not shown.
94.4 KB
Binary file not shown.
94.5 KB
Binary file not shown.
94.6 KB
Binary file not shown.
94.6 KB
Binary file not shown.
94.7 KB
Binary file not shown.

examples/scripting/src/fonts.css

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@font-face {
2+
font-family: 'Manrope';
3+
src: url('Manrope-ExtraLight.ttf') format('truetype');
4+
font-weight: '200';
5+
}
6+
7+
@font-face {
8+
font-family: 'Manrope';
9+
src: url('Manrope-Light.ttf') format('truetype');
10+
font-weight: '300';
11+
}
12+
13+
@font-face {
14+
font-family: 'Manrope';
15+
src: url('Manrope-Regular.ttf') format('truetype');
16+
font-weight: '400';
17+
}
18+
19+
@font-face {
20+
font-family: 'Manrope';
21+
src: url('Manrope-Medium.ttf') format('truetype');
22+
font-weight: '500';
23+
}
24+
25+
@font-face {
26+
font-family: 'Manrope';
27+
src: url('Manrope-SemiBold.ttf') format('truetype');
28+
font-weight: '600';
29+
}
30+
31+
@font-face {
32+
font-family: 'Manrope';
33+
src: url('Manrope-Bold.ttf') format('truetype');
34+
font-weight: '700';
35+
}
36+
37+
@font-face {
38+
font-family: 'Manrope';
39+
src: url('Manrope-ExtraBold.ttf') format('truetype');
40+
font-weight: '800';
41+
}

examples/scripting/src/main.ts

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ async function loadScript(name: string) {
6464
composition.seek(0);
6565

6666
return () => {
67+
composition.pause();
68+
6769
playButton.removeEventListener('click', handlePlay);
6870
pauseButton.removeEventListener('click', handlePause);
6971
backButton.removeEventListener('click', handleBack);

examples/scripting/src/style.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
--chart-4: 280 65% 60%;
2525
--chart-5: 340 75% 55%;
2626

27-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
27+
font-family: 'Manrope';
2828
line-height: 1.5;
2929
font-weight: 400;
3030

@@ -111,7 +111,7 @@ button {
111111
padding: 0 12px;
112112
height: 34px;
113113
font-size: 14px;
114-
font-weight: 500;
114+
font-weight: 600;
115115
font-family: inherit;
116116
background-color: hsl(var(--foreground));
117117
color: hsl(var(--background));

0 commit comments

Comments
 (0)