Compare commits

...

4 commits

2 changed files with 22 additions and 4 deletions

View file

@ -4,7 +4,7 @@ const { id, name } = Astro.props;
<div class="card"> <div class="card">
<div class="image-wrapper"> <div class="image-wrapper">
<img src={`/img/logo/${id}.webp`} alt={`${name} logo`}" /> <img src={`/img/logo/${id}.svg`} alt={`${name} logo`}" />
</div> </div>
<div class="text"> <div class="text">
<h1>{name}</h1> <h1>{name}</h1>
@ -18,16 +18,24 @@ const { id, name } = Astro.props;
align-items: center; align-items: center;
padding: 10px; padding: 10px;
margin: 10px 0; margin: 10px 0;
background-color: white; border: 2px #ff66ff solid;
color: black; color: white;
border-radius: 25px; border-radius: 25px;
transition: 0.1s ease-out; transition: 0.1s ease-out;
position: relative; position: relative;
top: 0; top: 0;
background-color: #00000000;
} }
.card:hover { .card:hover {
top: -4px; top: -4px;
background-color: #ff80ff;
border: none;
color: black;
}
.card:hover img {
filter: invert(100%) brightness(0%);
} }
.text { .text {

View file

@ -14,7 +14,7 @@ import Card from '../components/Card.astro'
<main> <main>
<h1>My services</h1> <h1>My services</h1>
<div id="cards"> <div id="cards">
<Card id="test1" name="Bruh">Électrocardiogramme</Card> <Card id="forgejo" name="Forgejo">A straight-to-the-point source code forge</Card>
<Card id="test2" name="Purasehoraderu">:)</Card> <Card id="test2" name="Purasehoraderu">:)</Card>
</div> </div>
</main> </main>
@ -36,6 +36,16 @@ import Card from '../components/Card.astro'
} }
body { body {
/*
background:
linear-gradient(135deg, #4d0099 0%, #00000000 100%),
linear-gradient(-135deg, #9933ff 0%, #00000000 100%),
linear-gradient(45deg, #ff4dff 0%, #00000000 100%),
linear-gradient(-45deg, #3366ff 0%, #00000000 100%);
*/
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-color: black; background-color: black;
color: white; color: white;
font-family: 'Cantarell', sans-serif; font-family: 'Cantarell', sans-serif;