Skip to content

Commit

Permalink
feat: add image to page
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Oct 19, 2024
1 parent 6ceee55 commit a87cefc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<body
data-sveltekit-preload-data="hover"
style="min-height: 100vh"
class="is-flex is-flex-direction-column"
>
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
13 changes: 13 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div class="is-flex-grow-1 hero">
<slot />
</div>

<style lang="scss" scoped>
.hero {
background: {
image: url('/img/ironbridge.jpg');
position: center center;
size: cover;
}
}
</style>
4 changes: 0 additions & 4 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
<h1>Welcome to SvelteKit</h1>
<p>
Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation
</p>
Binary file added static/img/ironbridge.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a87cefc

Please sign in to comment.