Skip to content

Commit

Permalink
Update font and script URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaDemchenko committed Sep 17, 2024
1 parent 74120e4 commit c397c80
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
Binary file added public/fonts/fa-solid-900.woff2
Binary file not shown.
Binary file added public/fonts/gstatic-TitilliumWeb-Regular.woff2
Binary file not shown.
17 changes: 10 additions & 7 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,16 @@ const { title } = Astro.props;
<meta charset="utf-8" />
<link
rel="preload"
href="https://fonts.gstatic.com/s/titilliumweb/v7/NaPecZTIAOhVxoMyOr9n_E7fdMPmDQ.woff2"
href="/fonts/gstatic-TitilliumWeb-Regular.woff2"
as="font"
crossorigin
/>
<link
rel="preload"
href="https://use.fontawesome.com/releases/v5.9.0/webfonts/fa-solid-900.woff2"
href="/fonts/fa-solid-900.woff2"
as="font"
crossorigin
/>
<link rel="preconnect" href="https://www.google-analytics.com" />
<link
rel="icon"
type="image/png"
Expand All @@ -47,10 +46,7 @@ const { title } = Astro.props;
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<script
async
is:inline
src="https://www.googletagmanager.com/gtag/js?id=G-8XFLFKSSL7"></script>

<script is:inline>
window.dataLayer = window.dataLayer || [];

Expand All @@ -60,6 +56,13 @@ const { title } = Astro.props;

gtag("js", new Date());
gtag("config", "G-8XFLFKSSL7");

document.addEventListener("DOMContentLoaded", () => {
const script = document.createElement("script");
script.src = "https://www.googletagmanager.com/gtag/js?id=G-8XFLFKSSL7";
script.async = true;
document.head.appendChild(script);
});
</script>

<meta
Expand Down
16 changes: 2 additions & 14 deletions src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
src:
local("Titillium Web Regular"),
local("TitilliumWeb-Regular"),
url(https://fonts.gstatic.com/s/titilliumweb/v7/NaPecZTIAOhVxoMyOr9n_E7fdMPmDQ.woff2)
format("woff2");
url(/fonts/gstatic-TitilliumWeb-Regular.woff2) format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
Expand All @@ -18,18 +17,7 @@
font-style: normal;
font-weight: 900;
font-display: swap;
src: url(https://use.fontawesome.com/releases/v5.9.0/webfonts/fa-solid-900.eot);
src:
url(https://use.fontawesome.com/releases/v5.9.0/webfonts/fa-solid-900.eot?#iefix)
format("embedded-opentype"),
url(https://use.fontawesome.com/releases/v5.9.0/webfonts/fa-solid-900.woff2)
format("woff2"),
url(https://use.fontawesome.com/releases/v5.9.0/webfonts/fa-solid-900.woff)
format("woff"),
url(https://use.fontawesome.com/releases/v5.9.0/webfonts/fa-solid-900.ttf)
format("truetype"),
url(https://use.fontawesome.com/releases/v5.9.0/webfonts/fa-solid-900.svg#fontawesome)
format("svg");
src: url(/fonts/fa-solid-900.woff2) format("woff2");
}

.fas {
Expand Down

0 comments on commit c397c80

Please sign in to comment.