Compare commits
4 commits
be6978b5a6
...
69ca9da54d
Author | SHA1 | Date | |
---|---|---|---|
69ca9da54d | |||
1d29344bc1 | |||
37029dd1a3 | |||
8ba97c2bfb |
3 changed files with 36 additions and 6 deletions
BIN
public/fonts/cantarell.otf
Normal file
BIN
public/fonts/cantarell.otf
Normal file
Binary file not shown.
|
@ -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 {
|
||||
|
|
|
@ -12,16 +12,38 @@ import Card from '../components/Card.astro'
|
|||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<Card id="test1" name="Bruh">Électrocardiogramme</Card>
|
||||
<Card id="test2" name="Purasehoraderu">:)</Card>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue