add background image

This commit is contained in:
Anton Romanov 2022-04-11 14:18:50 +04:00
parent beb5fd2e15
commit feb399162f
11 changed files with 87 additions and 100 deletions

View File

@ -1,7 +1,25 @@
@media (min-width: 1200px) {
.container {
max-width: 970px;
html, body {
width: 100%;
height: 100%;
}
.background {
background-image: url('/img/background.jpg');
background-repeat: no-repeat;
background-size: cover;
background-position: center;
opacity: 0.1;
height: 100%;
max-height: 768px;
width: 100%;
z-index: -100;
position: absolute;
}
.body-container {
position: relative;
margin: 0 auto;
min-height: 100%;
}
.news {
@ -50,6 +68,16 @@
border-radius: 2px;
}
footer {
.clearfloat {
clear: both;
}
.empty {
height: 50px;
}
footer {
height: 50px;
position: relative;
margin: -50px auto 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

View File

@ -1,9 +1,3 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content">

View File

@ -21,6 +21,8 @@
<link rel="stylesheet" href="/css/main.css"/>
</head>
<body>
<div class="body-container">
<div class="background"></div>
<nav class="navbar navbar-expand-md navbar-light bg-white">
<a class="navbar-brand" href="/">
<img src="/img/logo.svg" width="50px">
@ -70,7 +72,12 @@
<div layout:fragment="content">
</div>
</div>
<footer></footer>
<div class="clearfloat"></div>
<div class="empty"></div>
</div>
</div>
<footer>
2022
</footer>
</body>
</html>

View File

@ -1,20 +1,14 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content">
<ul class="list-group">
<li class="list-group-item">
<a class="link-secondary" href="/docs/polozh.docx">
<a class="link-dark" href="/docs/polozh.docx">
Положение
</a>
</li>
<li class="list-group-item">
<a class="link-secondary" href="/docs/plan2022.docx">
<a class="link-dark" href="/docs/plan2022.docx">
План заседаний на 2022 год.
</a>
</li>

View File

@ -1,9 +1,3 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"

View File

@ -1,9 +1,3 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
layout:decorate="~{default}">

View File

@ -1,9 +1,3 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5"

View File

@ -1,9 +1,3 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content">

View File

@ -1,9 +1,3 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"

View File

@ -1,9 +1,3 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"