Skip to content
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

feat: ⚡ React app #12

Merged
merged 2 commits into from
Jan 8, 2025
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
35 changes: 32 additions & 3 deletions demo/react-app/src/App.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
div {
font: 1.2em "Poppins", sans-serif;
p {
font-size: x-large;
}

p {
.google-poppins {
font-family: "Poppins", sans-serif;
}

.google-press-start {
font-family: "Press Start 2P", sans-serif;
}

.bunny-aclonica {
font-family: "Aclonica", sans-serif;
}

.bunny-allan {
font-family: "Allan", sans-serif;
}

.font-share-panchang {
font-family: "Panchang", sans-serif;
}

.font-source-luckiest {
font-family: "Luckiest Guy", sans-serif;
}

@font-face {
font-family: "Black Fox";
src: url("./black-fox.ttf");
}

.local {
font-family: "Black Fox", sans-serif;
}
19 changes: 16 additions & 3 deletions demo/react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,22 @@ import './App.css';
function App() {
return (
<div>
<h1>Google provider</h1>
<div>Poppins</div>
<p>Press Start 2P</p>
<h1>Google</h1>
<p className="poppins">Poppins</p>
<p className="press-start">Press Start 2P</p>

<h1>Bunny</h1>
<p className="bunny-aclonica">Aclonica</p>
<p className="bunny-allan">Allan</p>

<h1>FontShare</h1>
<p className="font-share-panchang">Panchang</p>

<h1>FontSource</h1>
<p className="font-source-luckiest">Luckiest</p>

<h1>Local</h1>
<p className="local">Local font</p>
</div>
);
}
Expand Down
Binary file added demo/react-app/src/black-fox.ttf
Binary file not shown.
Loading