Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit 3d2775e

Browse files
committed
Merge branch 'homebackground'
2 parents 79fb256 + a825bd4 commit 3d2775e

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ Homestead.yaml
1515
npm-debug.log
1616
yarn-error.log
1717

18-
public/image/homebackground.png
18+
public/image/homebackground.jpg

public/css/home.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1-
img#homebackground{
1+
#homebackground{
22
position: relative;
33
width: 100%;
44
min-width: 1300px;
5+
height: calc(100vw / 2.5);
56
margin: 0 0 -200px;
6-
height: auto;
7+
background-repeat: no-repeat;
8+
background-position: center 36px;
9+
background-image: url("/image/homebackground.jpg");
10+
background-color: transparent;
11+
background-attachment: fixed;
12+
background-size: cover;
713
z-index: 1;
814
overflow: hidden;
15+
-webkit-mask-image:linear-gradient(180deg, black 85%, transparent 100%);
16+
mask-image:linear-gradient(180deg, black 85%, transparent 100%);
917
}
1018
#homebackground + *{
1119
position: relative;

resources/views/home.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@extends('layouts.app',['css' => 'home', 'fullwidth' => true])
22

33
@section('content')
4-
<img src="{{ asset('image/homebackground.png') }}" alt="background" id="homebackground">
4+
<div id="homebackground" style="background-image: url('{{ asset('image/homebackground.jpg') }}')"></div>
55
<main>
66
<h1 id="sitelogo"><img src="{{ asset('image/mlp_ouranos.png') }}" alt="{{ config('ouranos.sitename',config('app.name','Ouranos')) }}"></h1>
77
<div class="msgbox" style="width: 1000px;margin: 0 auto 20px;">

0 commit comments

Comments
 (0)