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) { html, body {
.container { width: 100%;
max-width: 970px; 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 { .news {
@ -50,6 +68,16 @@
border-radius: 2px; border-radius: 2px;
} }
footer { .clearfloat {
clear: both;
}
.empty {
height: 50px; 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"> <!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}"> <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content"> <div class="container" layout:fragment="content">

View File

@ -21,56 +21,63 @@
<link rel="stylesheet" href="/css/main.css"/> <link rel="stylesheet" href="/css/main.css"/>
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-md navbar-light bg-white"> <div class="body-container">
<a class="navbar-brand" href="/"> <div class="background"></div>
<img src="/img/logo.svg" width="50px"> <nav class="navbar navbar-expand-md navbar-light bg-white">
<div class="navbar-text" th:text="#{messages.logo-title}" style="font-size: 16px"></div> <a class="navbar-brand" href="/">
</a> <img src="/img/logo.svg" width="50px">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" <div class="navbar-text" th:text="#{messages.logo-title}" style="font-size: 16px"></div>
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> </a>
<span class="navbar-toggler-icon"></span> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
</button> aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<div class="collapse navbar-collapse" id="navbarSupportedContent"> <span class="navbar-toggler-icon"></span>
<ul class="navbar-nav mr-auto"> </button>
<li class="nav-item"> <div class="collapse navbar-collapse" id="navbarSupportedContent">
<a class="nav-link" href="/news/news">Новости</a> <ul class="navbar-nav mr-auto">
</li> <li class="nav-item">
<li class="nav-item"> <a class="nav-link" href="/news/news">Новости</a>
<a class="nav-link" href="/meetings/meetings">Заседания</a> </li>
</li> <li class="nav-item">
<li class="nav-item"> <a class="nav-link" href="/meetings/meetings">Заседания</a>
<a class="nav-link" href="/organizers">Организаторы</a> </li>
</li> <li class="nav-item">
<li class="nav-item"> <a class="nav-link" href="/organizers">Организаторы</a>
<a class="nav-link" href="/docs">Документы</a> </li>
</li> <li class="nav-item">
<li class="nav-item"> <a class="nav-link" href="/docs">Документы</a>
<a class="nav-link" href="/reports">Отчеты</a> </li>
</li> <li class="nav-item">
<li class="nav-item"> <a class="nav-link" href="/reports">Отчеты</a>
<a class="nav-link" href="/admin">Администратору</a> </li>
</li> <li class="nav-item">
<li> <a class="nav-link" href="/admin">Администратору</a>
<div sec:authorize="isAuthenticated()"> </li>
<a class="nav-link" href="/logout">Выход</a> <li>
</div> <div sec:authorize="isAuthenticated()">
<a class="nav-link" href="/logout">Выход</a>
</div>
</li> </li>
</ul>
</div>
</nav>
<div class="wrapper">
<div id="content">
<div class="container-fluid">
<ul id="messages" class="feedback-panel">
<div class="alert alert-danger" role="alert" th:if="${error}" th:text="${error}">
</div>
</ul> </ul>
</div> </div>
<div layout:fragment="content"> </nav>
<div class="wrapper">
<div id="content">
<div class="container-fluid">
<ul id="messages" class="feedback-panel">
<div class="alert alert-danger" role="alert" th:if="${error}" th:text="${error}">
</div>
</ul>
</div>
<div layout:fragment="content">
</div>
</div> </div>
<div class="clearfloat"></div>
<div class="empty"></div>
</div> </div>
<footer></footer>
</div> </div>
<footer>
2022
</footer>
</body> </body>
</html> </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"> <!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}"> <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content"> <div class="container" layout:fragment="content">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item"> <li class="list-group-item">
<a class="link-secondary" href="/docs/polozh.docx"> <a class="link-dark" href="/docs/polozh.docx">
Положение Положение
</a> </a>
</li> </li>
<li class="list-group-item"> <li class="list-group-item">
<a class="link-secondary" href="/docs/plan2022.docx"> <a class="link-dark" href="/docs/plan2022.docx">
План заседаний на 2022 год. План заседаний на 2022 год.
</a> </a>
</li> </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"> <!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html <html
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml" 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"> <!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" <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
layout:decorate="~{default}"> 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"> <!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" <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" 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"> <!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}"> <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content"> <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"> <!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html <html
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml" 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"> <!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html <html
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"