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>
.card {
border: 1px solid black;
display: flex;
align-items: center;
padding: 10px;
width: 50%;
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 {

View file

@ -12,16 +12,38 @@ import Card from '../components/Card.astro'
</head>
<body>
<main>
<h1>My services</h1>
<div id="cards">
<Card id="test1" name="Bruh">Électrocardiogramme</Card>
<Card id="test2" name="Purasehoraderu">:)</Card>
</div>
</main>
</body>
</html>
<style>
main {
#cards {
display: flex;
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>