Skip to content

Commit

Permalink
Minor Theme Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xypnox committed Feb 17, 2024
1 parent df113a3 commit 499fcf9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
11 changes: 6 additions & 5 deletions src/components/container.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const { title, icon, image, links, linkTitle, color } = Astro.props;
{image && <img src={image} alt={title} />}
<div class="info">
{title &&
<h1>
<h2>
{icon && <iconify-icon name={icon} />}
{linkTitle ? <a class="text-gradient-fx" href={linkTitle}> {title}</a> : title}
</h1>
</h2>
}
<slot name="description" />
</div>
Expand Down Expand Up @@ -65,23 +65,24 @@ const { title, icon, image, links, linkTitle, color } = Astro.props;
padding: 1em;
color: var(--fadeText);
}
h1 {
h2 {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 0.5em;
margin: 0;
width: 100%;
font-size: var(--font-size-lg);
color: var(--text);
}
h1 > svg {
h2 > svg {
width: 2rem;
height: 2rem;
color: var(--primary-color);
flex-shrink: 0;
}

h1 a {
h2 a {
text-decoration: none;
color: currentColor;
}
Expand Down
8 changes: 7 additions & 1 deletion src/components/footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const links = [
<div class="footer-content">
<div class="links">
{links.map((link) => (
<a href={link.link} target="_blank">{link.name}</a>
<a href={link.link}>{link.name}</a>
))}
</div>
<p>
Expand Down Expand Up @@ -67,6 +67,12 @@ const links = [
.links {
display: flex;
gap: 1rem;
font-size: var(--font-size-md);
}

.links a {
text-decoration: none;
font-weight: 500;
}

.navbar-helper {
Expand Down
1 change: 0 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ import LatestBlog from "../components/latestBlog.astro";
flex-direction: column;
align-items: center;
gap: 4rem;
padding: 1.5rem;
margin-top: 4rem;
}

Expand Down
2 changes: 1 addition & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const royalDecree: ThemePalette = {
"family": "Ibarra Real Nova",
},
},
card: 'transparent',
card: 'border',
"vars": {
"light": {
"primary": "#a6581d",
Expand Down

0 comments on commit 499fcf9

Please sign in to comment.