Compare commits

...

4 commits

3 changed files with 36 additions and 6 deletions

BIN
public/fonts/cantarell.otf Normal file

Binary file not shown.

View file

@ -14,12 +14,20 @@ const { id, name } = Astro.props;
<style> <style>
.card { .card {
border: 1px solid black;
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10px; padding: 10px;
width: 50%;
margin: 10px 0; margin: 10px 0;
background-color: white;
color: black;
border-radius: 25px;
transition: 0.1s ease-out;
position: relative;
top: 0;
}
.card:hover {
top: -4px;
} }
.text { .text {

View file

@ -12,16 +12,38 @@ import Card from '../components/Card.astro'
</head> </head>
<body> <body>
<main> <main>
<Card id="test1" name="Bruh">Électrocardiogramme</Card> <h1>My services</h1>
<Card id="test2" name="Purasehoraderu">:)</Card> <div id="cards">
<Card id="test1" name="Bruh">Électrocardiogramme</Card>
<Card id="test2" name="Purasehoraderu">:)</Card>
</div>
</main> </main>
</body> </body>
</html> </html>
<style> <style>
main { #cards {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; }
@font-face {
font-family: 'Cantarell';
src: url('/fonts/cantarell.otf') format('otf');
font-weight: normal;
font-style: normal;
font-display: swap;
}
body {
background-color: black;
color: white;
font-family: 'Cantarell', sans-serif;
display: flex;
justify-content: center;
}
main {
width: 30%;
} }
</style> </style>