style: newTab icon; larger back link
This commit is contained in:
parent
e019f2bd95
commit
bc9e038ab1
3 changed files with 13 additions and 5 deletions
|
@ -5,14 +5,15 @@ export interface Props {
|
|||
const { url } = Astro.props;
|
||||
---
|
||||
|
||||
<nav><a href={url}>← Back</a></nav>
|
||||
<nav><a class="back-link" href={url}>← Back</a></nav>
|
||||
|
||||
<style>
|
||||
nav {
|
||||
margin-bottom: -1rem;
|
||||
}
|
||||
|
||||
nav a {
|
||||
nav a.back-link {
|
||||
font-size: var(--font-size-lg);
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -3,16 +3,21 @@ export interface Props {
|
|||
title: string;
|
||||
body: string;
|
||||
href: string;
|
||||
newTab?: boolean;
|
||||
}
|
||||
|
||||
const { href, title, body } = Astro.props;
|
||||
const { href, title, body, newTab = false } = Astro.props;
|
||||
---
|
||||
|
||||
<li class="link-card">
|
||||
<a href={href}>
|
||||
<a href={href} target={newTab ? '_blank' : null}>
|
||||
<h2>
|
||||
{title}
|
||||
<span>→</span>
|
||||
{
|
||||
newTab
|
||||
? (<span>↗</span>)
|
||||
: (<span>→ </span>)
|
||||
}
|
||||
</h2>
|
||||
<p>
|
||||
{body}
|
||||
|
|
|
@ -25,11 +25,13 @@ import Footer from "../components/Footer.astro";
|
|||
<section class="cards-section">
|
||||
<ul role="list" class="cards-section__grid">
|
||||
<Card
|
||||
newTab={true}
|
||||
href="https://drive.google.com/file/d/1MhN8qWRJnSHM_epU9GFQL9lEsMFtHWQK/view?usp=sharing"
|
||||
title="CV / Resume"
|
||||
body="Download and peruse my skills and experience."
|
||||
/>
|
||||
<Card
|
||||
newTab={true}
|
||||
href="https://github.com/ayoayco"
|
||||
title="Github"
|
||||
body="See my public projects over at Github. ❤️"
|
||||
|
|
Loading…
Reference in a new issue