Skip to content

Commit

Permalink
feat: add something to the homepage (although not much, I have no ide…
Browse files Browse the repository at this point in the history
…as for it)
  • Loading branch information
pml68 committed Jan 14, 2024
1 parent 8e4e948 commit 1023498
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "olahbarbershop-website",
"version": "1.9.0",
"version": "1.10.0",
"description": "The website of Oláh Barbershop, made using SvelteKit.",
"author": "pml68",
"license": "GPL-3.0",
Expand Down
16 changes: 16 additions & 0 deletions src/lib/assets/css/home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$min-font: 16px;
$desired-font: 5.5vw;
$max-font: 50px;

.main {
text-align: center;

h1 {
font-weight: normal;
font-size: clamp($min-font, $desired-font, $max-font);
}

b {
font-weight: bold;
}
}
12 changes: 11 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<script lang="ts">
import '$lib/assets/css/home.scss'
</script>

<svelte:head>
<title>Oláh Barbershop</title>
</svelte:head>

<div class="ii"></div>
<div class="container">
<div class="main">
<h1>Hi!</h1>
<br>
<h1>This is <b>your</b> barbershop.</h1>
</div>
</div>

0 comments on commit 1023498

Please sign in to comment.