Skip to content

Commit

Permalink
change font
Browse files Browse the repository at this point in the history
  • Loading branch information
Gjeev committed Oct 15, 2024
1 parent 117aa99 commit 196c513
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/components/Datetime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const FormattedDatetime = ({ pubDatetime, modDatetime }: DatetimesProps) => {
<time dateTime={myDatetime.toISOString()}>{date}</time>
<span aria-hidden="true"> | </span>
<span className="sr-only">&nbsp;at&nbsp;</span>
<span className="text-nowrap">{time}</span>
{/* <span className="text-nowrap">{time}</span> */}
</>
);
};
16 changes: 7 additions & 9 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ const socialCount = SOCIALS.filter(social => social.active).length;
<main id="main-content">
<section id="hero">
<p>
Grassroots is a personal blog where I share my thoughts.
While the idea for this space was initially sparked by a
desire to share the notes I've accumulated over the
years, it will now be a home for a blend of musings,
reviews, and reflections on the things I love.
Please stay tuned!
Grassroots is a personal blog where I share my thoughts. While the idea
for this space was initially sparked by a desire to share the notes I've
accumulated over the years, it will now be a home for a blend of
musings, reviews, and reflections on the things I love. Please stay
tuned!
</p>
{
// only display if at least one social link is enabled
Expand All @@ -47,7 +46,6 @@ const socialCount = SOCIALS.filter(social => social.active).length;
{
featuredPosts.length > 0 && (
<>
{console.log(featuredPosts)}
<section id="featured">
<h2>Featured</h2>
<ul>
Expand Down Expand Up @@ -106,7 +104,7 @@ const socialCount = SOCIALS.filter(social => social.active).length;
@apply pb-6 pt-8;
}
#hero h1 {
@apply my-4 inline-block text-3xl font-bold sm:my-8 sm:text-5xl font-serif;
@apply my-4 inline-block font-serif text-3xl font-bold sm:my-8 sm:text-5xl;
}
#hero .rss-link {
@apply mb-6;
Expand All @@ -131,7 +129,7 @@ const socialCount = SOCIALS.filter(social => social.active).length;
}
#featured h2,
#recent-posts h2 {
@apply text-2xl font-bold tracking-wide font-serif;
@apply font-serif text-2xl font-bold tracking-wide;
}
.all-posts-btn-wrapper {
@apply my-8 text-center;
Expand Down
36 changes: 18 additions & 18 deletions src/styles/base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Space+Grotesk:wght@300..700&display=swap');

/* @import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Space+Grotesk:wght@300..700&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down Expand Up @@ -36,35 +36,35 @@
#dark-small-logo {
display: none;
}

#light-logo,
html[data-theme="dark"] #dark-logo {
display: block;
}

#dark-logo,
html[data-theme="dark"] #light-logo {
display: none;
}
}

/* Media query for screens smaller than 648px */
@media (max-width: 648px) {
#light-logo,
#dark-logo {
display: none;
}
/* Media query for screens smaller than 648px */
@media (max-width: 648px) {
#light-logo,
#dark-logo {
display: none;
}

#light-small-logo,
html[data-theme="dark"] #dark-small-logo {
display: block;
}
#light-small-logo,
html[data-theme="dark"] #dark-small-logo {
display: block;
}

#dark-small-logo,
html[data-theme="dark"] #light-small-logo {
display: none;
#dark-small-logo,
html[data-theme="dark"] #light-small-logo {
display: none;
}
}
}
body {
@apply flex min-h-[100svh] flex-col bg-skin-fill font-sans text-skin-base selection:bg-skin-accent/70 selection:text-skin-inverted;
}
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ module.exports = {
},
fontFamily: {
mono: ["IBM Plex Mono", "monospace"],
sans: ["Figtree"],
serif: ["Space Grotesk"]
sans: ["Jost"],
serif: ["Jost"]
},

typography: {
Expand Down

0 comments on commit 196c513

Please sign in to comment.