Skip to content

Commit

Permalink
chore: lighthouseの結果をちょっと反映 (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored Jan 13, 2025
1 parent b0ae66d commit e52a281
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const { isDark } = Astro.props;
<a
{...{ [showPrivacyPolicyModalAttr]: true }}
class={`is-size-7 ml-1 mr-1 ${isDark ? "has-text-primary" : ""}`}
role="button"
>
プライバシーポリシー
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function Header({
>
<div className="navbar-brand">
<a href="/" className="navbar-item">
<img src={iconUrl} alt="" />
<img src={iconUrl} alt="" width="28" height="28" />
<span className="has-text-weight-bold is-size-5"> VOICEVOX </span>
</a>

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Base.astro
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const googleAnalyticsSrc = `https://www.googletagmanager.com/gtag/js?id=${GA_TRA
<link rel="manifest" href="/site.webmanifest" />

{/* Google Analytics */}
<script is:inline src={googleAnalyticsSrc}></script>
<script is:inline async src={googleAnalyticsSrc}></script>
<script
is:inline
define:vars={{ GA_TRACKING_ID, isGoogleAnalyticsDebugMode }}
Expand Down
8 changes: 8 additions & 0 deletions src/styles/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@
font-family: "Unhinted Rounded M+ 1p";
src: url("/fonts/unhinted-rounded-mplus-1p-light.woff2");
font-weight: 300; /* Light */
font-display: fallback;
}
@font-face {
font-family: "Unhinted Rounded M+ 1p";
src: url("/fonts/unhinted-rounded-mplus-1p-regular.woff2");
font-weight: normal;
font-display: fallback;
}
@font-face {
font-family: "Unhinted Rounded M+ 1p";
src: url("/fonts/unhinted-rounded-mplus-1p-medium.woff2");
font-weight: 500; /* Medium */
font-display: fallback;
}
@font-face {
font-family: "Unhinted Rounded M+ 1p";
src: url("/fonts/unhinted-rounded-mplus-1p-bold.woff2");
font-weight: bold;
font-display: fallback;
}

/*
Expand All @@ -29,19 +33,23 @@
font-family: "LINE Seed";
src: url("/fonts/LINESeedJP_OTF_Th.woff2");
font-weight: 100; /* Thin */
font-display: fallback;
}
@font-face {
font-family: "LINE Seed";
src: url("/fonts/LINESeedJP_OTF_Rg.woff2");
font-weight: normal;
font-display: fallback;
}
@font-face {
font-family: "LINE Seed";
src: url("/fonts/LINESeedJP_OTF_Bd.woff2");
font-weight: bold;
font-display: fallback;
}
@font-face {
font-family: "LINE Seed";
src: url("/fonts/LINESeedJP_OTF_Eb.woff2");
font-weight: 800; /* Extra Bold */
font-display: fallback;
}

0 comments on commit e52a281

Please sign in to comment.