Skip to content

Commit

Permalink
feat: initial og card
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Apr 25, 2024
1 parent 1d589ee commit 8363009
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/components/ogCard.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<script lang="ts">
export let title = 'Hello, world!';
export let description = 'This is a description';
</script>

<div class="container">
<h2 class="title">
{title}
</h2>
<div class="website">
{description}
</div>
</div>

<style>
@font-face {
font-family: 'InterMedium';
src: url('/fonts/InterDisplay-Medium.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
.container {
font-family: 'InterMedium', sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
height: 100vh;
width: 100vw;
padding: 25px;
background-color: #121212;
color: #f9f9f9;
}
.title {
font-size: 19px;
font-weight: 600;
opacity: 0.5;
}
</style>

0 comments on commit 8363009

Please sign in to comment.