Skip to content

Commit

Permalink
drop fontawesome
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Jun 15, 2024
1 parent 5776836 commit a245368
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 58 deletions.
3 changes: 2 additions & 1 deletion src/components/content/UseCases.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
---

<div class="mb-8 pb-8 pt-10 c-background">
Expand Down Expand Up @@ -87,7 +88,7 @@
/>

<div class="text">
<h4 class="font-bold">Complex Validation</h4>
<h4 class="font-bold">Forms example</h4>
<p class="md:text-left">
Checkout address form with embedded store picker owned by explore.
</p>
Expand Down
4 changes: 1 addition & 3 deletions src/layouts/ContentLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import "../styles/global.css";
import GoogleFont from "./GoogleFont.astro";
import FontAwesome from "./FontAwesome.astro";
import ThemeScript from "./ThemeScript.astro";
import Favicon from "./Favicon.astro";
import Header from "../components/Header.astro";
Expand All @@ -27,7 +26,7 @@ const formattedDate = new Date(date).toLocaleDateString("en-us", {
});
---

<!DOCTYPE html>
<!doctype html>
<html class="theme-bubblegum" lang="en">
<head>
<!-- Global Metadata -->
Expand All @@ -37,7 +36,6 @@ const formattedDate = new Date(date).toLocaleDateString("en-us", {
<slot name="meta" />
<GoogleFont />
<ThemeScript />
<FontAwesome />
</head>

<body class="max-w-4xl mx-auto min-h-screen px-6 sm:px-8">
Expand Down
45 changes: 0 additions & 45 deletions src/layouts/FontAwesome.astro

This file was deleted.

14 changes: 8 additions & 6 deletions src/layouts/GoogleFont.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
<Fragment>
<link
rel="preload"
href="/fonts/Raleway-Regular.ttf"
href="/tractor-store/fonts/Raleway-Regular.ttf"
as="font"
type="font/ttf"
crossorigin="crossorigin"
/>
<link
rel="preload"
href="/fonts/Raleway-MediumItalic.ttf"
href="/tractor-store/fonts/Raleway-MediumItalic.ttf"
as="font"
type="font/ttf"
crossorigin="crossorigin"
Expand All @@ -48,16 +48,18 @@
font-family: "Raleway";
font-style: normal;
font-weight: 400;
src: local(""),
url("/fonts/Raleway-Regular.ttf") format("ttf");
src:
local(""),
url("/tractor-store/fonts/Raleway-Regular.ttf") format("ttf");
}
/* space-grotesk-700 - latin */
@font-face {
font-family: "Raleway MediumItalic";
font-style: italic;
font-weight: 400;
src: local(""),
url("/fonts/Raleway-MediumItalic.ttf") format("ttf");
src:
local(""),
url("/tractor-store/fonts/Raleway-MediumItalic.ttf") format("ttf");
}
</style>
</Fragment>
4 changes: 1 addition & 3 deletions src/layouts/PageLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
import "../styles/global.css";
import GoogleFont from "./GoogleFont.astro";
import FontAwesome from "./FontAwesome.astro";
import ThemeScript from "./ThemeScript.astro";
import Favicon from "./Favicon.astro";
import Header from "../components/Header.astro";
import Footer from "../components/Footer.astro";
---

<!DOCTYPE html>
<!doctype html>
<html class="theme-bubblegum" lang="en">
<head>
<!-- Global Metadata -->
Expand All @@ -25,7 +24,6 @@ import Footer from "../components/Footer.astro";
<slot name="meta" />
<GoogleFont />
<ThemeScript />
<FontAwesome />
</head>

<body class="max-w-6xl mx-auto min-h-screen px-6 sm:px-8">
Expand Down

0 comments on commit a245368

Please sign in to comment.