firq-dev-website/src/components/fgotaHero.astro

69 lines
1.6 KiB
Text
Raw Normal View History

2024-01-19 09:18:05 +00:00
---
2024-07-19 20:52:15 +00:00
export interface Props {
fadeout?: boolean
}
const { fadeout } = Astro.props
const display = fadeout ? "": "display: none"
2024-01-19 09:18:05 +00:00
---
<div>
<span>
2024-10-21 20:23:25 +00:00
I am currently creating a site to catalogue past and future TAs for the whole community.
2024-01-19 09:18:05 +00:00
</span>
2024-10-24 16:52:33 +00:00
<a href=`https://fgo-ta.com/` target="_blank" rel="noopener noreferrer"><span class="fancy">Visit fgo-ta.com &gt;&gt;</span></a>
2024-07-19 20:52:15 +00:00
<div class="fade" style={display}></div>
2024-01-19 09:18:05 +00:00
</div>
<style>
div {
display: flex;
width: 100%;
2024-07-19 20:52:15 +00:00
flex-wrap: nowrap;
flex-flow: column;
2024-10-24 16:52:33 +00:00
background-color: var(--c-primary-background);
2024-01-19 09:18:05 +00:00
text-align: center;
align-items: center;
justify-content: center;
2024-10-24 16:52:33 +00:00
color: var(--c-primary-text);
2024-01-19 09:18:05 +00:00
font-size: 1.5em;
2024-07-19 20:52:15 +00:00
padding: 2rem 0rem 0rem 0rem;
2024-10-21 20:23:25 +00:00
font-weight: 400;
font-size: 1.3rem;
2024-01-19 09:18:05 +00:00
}
2024-10-21 20:23:25 +00:00
2024-01-19 09:18:05 +00:00
a {
2024-10-21 20:23:25 +00:00
font-weight: 500;
2024-10-22 20:54:02 +00:00
font-family: 'Work Sans Variable', sans-serif;
2024-10-24 16:52:33 +00:00
color: var(--c-primary-text);
2024-10-21 20:23:25 +00:00
margin: 1rem 0px 0px;
padding: 0.5rem 0.75rem;
2024-01-19 09:18:05 +00:00
text-decoration: none;
2024-10-24 18:07:39 +00:00
background: radial-gradient(var(--c-primary-background), var(--c-secondary-background)) ;
2024-10-21 20:23:25 +00:00
border-radius: 10px;
2024-10-24 16:52:33 +00:00
border: 2px var(--c-accent-1) solid;
2024-10-21 20:23:25 +00:00
}
a:hover {
2024-10-24 16:52:33 +00:00
border-color: var(--c-accent-1-alt);
2024-07-19 20:52:15 +00:00
}
.fade {
margin-top: 3rem;
2024-10-24 16:52:33 +00:00
background: linear-gradient(to bottom, transparent, var(--c-secondary-background));
2024-07-19 20:52:15 +00:00
height: 2.5rem;
width: 100%;
2024-01-19 09:18:05 +00:00
}
2024-10-21 20:23:25 +00:00
.fancy {
2024-10-24 16:52:33 +00:00
color: var(--c-accent-1);
2024-10-21 20:23:25 +00:00
}
@supports (background-clip: text) {
a:hover .fancy {
2024-10-24 16:52:33 +00:00
background: linear-gradient(125deg, var(--c-accent-1), var(--c-accent-1-alt), var(--c-accent-2) );
2024-10-21 20:23:25 +00:00
background-clip: text;
color: transparent;
}
}
2024-01-19 09:18:05 +00:00
</style>