Add background to main page

This commit is contained in:
Pitu 2019-02-26 23:13:18 +09:00
parent 6cd31674d5
commit 62c0c1db20
2 changed files with 14 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@ -25,12 +25,26 @@
color: $textColorHighlight;
}
}
div.background {
position: fixed;
top: 0;
left: 0;
background: no-repeat scroll 50% 50%;
background-size: cover;
background-image: url('~assets/images/background.jpg');
z-index: -1;
height: 100vh;
width: 100%;
pointer-events: none;
}
}
</style>
<template>
<div class="home">
<section class="hero is-fullheight has-text-centered">
<div class="background" />
<Navbar :isWhite="true" />
<div class="hero-body">
<div class="container">