style: typography and colors

This commit is contained in:
Ayo 2022-09-17 19:57:22 +02:00
parent 60e98c5fb2
commit f4e09bd8e6
5 changed files with 133 additions and 123 deletions

View file

@ -73,4 +73,6 @@ const { href, title, body } = Astro.props;
will-change: transform;
transform: translateX(2px);
}
</style>

View file

@ -1,13 +1,11 @@
<footer>
<ul role="list" style="list-style:none">
<li>This website is a shameless template of <a href="https://astro.build" target="_blank">Astro</a></li>
<li>2022 @ <a href="/">Ayo Ayco</a>. All Rights Reserved</li>
<li>Moved my old website to <a href="https://classic.ayco.io">a new address</a>.</li>
<li>2022 &#169; <a href="/">Ayo Ayco</a>. All Rights Reserved</li>
<li>Missing old content? I moved <a href="https://classic.ayco.io">my previous site</a></li>
</ul>
</footer>
<style>
:root {
--astro-gradient: linear-gradient(0deg, #4f39fa, #da62c4);
}
@ -25,6 +23,5 @@
background-size: 100% 200%;
background-position-y: 100%;
border-radius: 0.4rem;
animation: pulse 4s ease-in-out infinite;
}
</style>

View file

@ -1,13 +1,13 @@
---
import Layout from '../layouts/Layout.astro';
import Card from '../components/Card.astro';
import Footer from '../components/Footer.astro';
import Layout from "../layouts/Layout.astro";
import Card from "../components/Card.astro";
import Footer from "../components/Footer.astro";
---
<Layout title="Ayo Ayco | Software Engineer + Web Developer">
<main>
<h1>Hi, I am <span class="text-gradient">Ayo!</span></h1>
<ul role="list" class="highlighted-content" style="list-style:none">
<h1>Hi, I'm <span class="text-gradient">Ayo!</span></h1>
<ul role="list" class="highlighted-content">
<li>👨🏻‍💻 Software Extraordinaire</li>
<li>🕵🏻‍♂️ Frontend Detective Consultant</li>
<li>📚 BS Computer Science</li>
@ -16,7 +16,7 @@ import Footer from '../components/Footer.astro';
<Card
href="https://blog.ayco.io/"
title="Blog"
body="Read my latest articles on technology, productivity, and life in general."
body="Read my articles on technology, productivity, and life in general."
/>
<Card
href="https://drive.google.com/file/d/1MhN8qWRJnSHM_epU9GFQL9lEsMFtHWQK/view?usp=sharing"
@ -34,7 +34,7 @@ import Footer from '../components/Footer.astro';
body="See my public projects over at Github. ❤️"
/>
</ul>
<Footer></Footer>
<Footer />
</main>
</Layout>
@ -55,13 +55,13 @@ import Footer from '../components/Footer.astro';
.text-gradient {
font-weight: 900;
background-image: var(--astro-gradient);
background: var(--astro-gradient);
animation: pulse 4s ease-in-out infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 100% 200%;
background-position-y: 100%;
border-radius: 0.4rem;
animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
@ -77,10 +77,16 @@ import Footer from '../components/Footer.astro';
.highlighted-content {
line-height: 1.6;
margin: 1rem 0;
background: #4f39fa;
padding: 1rem;
background: var(--astro-gradient);
background-size: 400% 400%;
background-color: var(--);
animation: gradient 15s ease-in-out infinite;
padding: 2rem;
border-radius: 0.4rem;
color: var(--color-bg);
list-style-type: none;
font-size: x-large;
font-weight: bold;
}
.highlighted-content code {
@ -90,6 +96,18 @@ import Footer from '../components/Footer.astro';
padding: 0.15em 0.25em;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));

View file

@ -8,8 +8,7 @@ import Footer from '../components/Footer.astro';
<main>
<nav><a href="/">Back</a></nav>
<h1>Social <span class="text-gradient">Links</span></h1>
<div class="content">
<ul role="list" style="list-style:none">
<ul role="list" class="link-card-grid">
<Card
href="https://twitter.com/ayoayco/"
title="Twitter"
@ -23,10 +22,9 @@ import Footer from '../components/Footer.astro';
<Card
href="https://soundcloud.com/ayoayco/"
title="SoundCloud"
body="Yes, I make music... until I moved to a new contry this year"
body="Some music I made as a hobby"
/>
</ul>
</div>
<Footer></Footer>
</main>
</Layout>
@ -36,10 +34,6 @@ import Footer from '../components/Footer.astro';
--astro-gradient: linear-gradient(0deg, #4f39fa, #da62c4);
}
div.content {
margin-left: -40px;
}
h1 {
margin: 2rem 0;
}
@ -53,12 +47,12 @@ import Footer from '../components/Footer.astro';
.text-gradient {
font-weight: 900;
background-image: var(--astro-gradient);
animation: pulse 4s ease-in-out infinite;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-size: 100% 200%;
background-position-y: 100%;
border-radius: 0.4rem;
animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
@ -89,7 +83,6 @@ import Footer from '../components/Footer.astro';
.link-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(24ch, 1fr));
gap: 1rem;
padding: 0;
}