Skip to content

Commit

Permalink
feat: use local fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
dancixx committed Dec 9, 2024
1 parent 8270b77 commit ea47dd0
Show file tree
Hide file tree
Showing 20 changed files with 144 additions and 4 deletions.
144 changes: 144 additions & 0 deletions input.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,148 @@
@tailwind components;
@tailwind utilities;

@layer base {
@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 100;
font-display: swap;
src: url(/fonts/Poppins-Thin.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 100;
font-display: swap;
src: url(/fonts/Poppins-ThinItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 200;
font-display: swap;
src: url(/fonts/Poppins-ExtraLight.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 200;
font-display: swap;
src: url(/fonts/Poppins-ExtraLightItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(/fonts/Poppins-Light.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 300;
font-display: swap;
src: url(/fonts/Poppins-LightItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/fonts/Poppins-Regular.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(/fonts/Poppins-RegularItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/fonts/Poppins-Medium.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 500;
font-display: swap;
src: url(/fonts/Poppins-MediumItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(/fonts/Poppins-SemiBold.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 600;
font-display: swap;
src: url(/fonts/Poppins-SemiBoldItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(/fonts/Poppins-Bold.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(/fonts/Poppins-BoldItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 800;
font-display: swap;
src: url(/fonts/Poppins-ExtraBold.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 800;
font-display: swap;
src: url(/fonts/Poppins-ExtraBoldItalic.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: normal;
font-weight: 900;
font-display: swap;
src: url(/fonts/Poppins-Black.ttf) format("truetype");
}

@font-face {
font-family: "Poppins";
font-style: italic;
font-weight: 900;
font-display: swap;
src: url(/fonts/Poppins-BlackItalic.ttf) format("truetype");
}
}
Binary file added public/fonts/Poppins-Black.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-BlackItalic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-Bold.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-BoldItalic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-ExtraBold.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-ExtraLight.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-ExtraLightItalic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-Italic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-Light.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-LightItalic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-Medium.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-MediumItalic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-Regular.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-SemiBold.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-SemiBoldItalic.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-Thin.ttf
Binary file not shown.
Binary file added public/fonts/Poppins-ThinItalic.ttf
Binary file not shown.
4 changes: 0 additions & 4 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ pub fn shell(options: LeptosOptions) -> impl IntoView {
<Meta name="twitter:image:alt" content="Rust-DD Framework" />
<Link rel="preconnect" href="https://fonts.googleapis.com" />
<Link rel="preconnect" href="https://fonts.gstatic.com" />
<Link
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet"
/>
</head>
<body class="bg-[#1e1e1e]">
<App />
Expand Down

0 comments on commit ea47dd0

Please sign in to comment.