updated site web with better design and content

This commit is contained in:
2021-05-24 00:11:49 +02:00
parent 8a17ecfb98
commit a88b8c687f
7 changed files with 394 additions and 170 deletions

BIN
site/style/assets/compo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

28
site/style/header.less Normal file
View File

@@ -0,0 +1,28 @@
.header {
padding: @margin / 2 0;
border-bottom: 1px solid #000;
display: flex;
align-items: center;
justify-content: space-between;
> div {
flex-shrink: 0;
}
}
.header__logo {
font-size: 1.2rem;
margin-right: @margin;
}
.header__links {
a {
margin-left: @margin / 2;
padding: 0 0.5ch;
text-decoration: none;
color: inherit;
&:hover {
background-color: @pitchLinkColor;
text-decoration: underline !important;
}
}
}

View File

@@ -1,93 +0,0 @@
@import "normalize.less";
@import "font.less";
@headerH : 50px;
@footerH : 50px;
@mainW : 75%;
@sidebarW : 25%;
@margin : 15px;
html {
font-size: 20px;
}
* {
box-sizing: border-box;
font-weight: normal;
font-style: normal;
}
body {
font-family: 'Alfphabet-III', Arial, Helvetica, sans-serif;
margin: 0px;
}
h1 {
// font-size: 1.75rem;
// color: #375773;
// // text-transform: uppercase;
// font-weight: 100;
margin: 0px;
}
.header,
.footer {
padding: @margin;
display: flex;
align-items: center;
> div {
flex-shrink: 0;
}
}
.main__wrapper {
position: absolute;
top: @headerH;
right: 0;
bottom: @footerH;
left: 0;
display: flex;
> div {
padding : @margin;
flex-shrink: 0;
&.sidebar {
width: @sidebarW;
overflow: auto;
border-right: 1px solid #000;
}
&.main {
position: relative;
width: @mainW;
display: flex;
align-items: center;
justify-content: center;
img {
width: 70%;
border: 1px solid #aaa;
position: absolute;
&.image1 {
transform: rotate(-5deg) translate(3%, -2%);
}
&.image2 {
// transform: rotate(-3deg);
}
}
}
}
}
.footer {
position: absolute;
bottom: 0;
right: 0;
left: 0;
height: @footerH;
}

View File

@@ -321,6 +321,30 @@ template {
font-weight: normal;
font-style: normal;
}
.header {
padding: 16px 0;
border-bottom: 1px solid #000;
display: flex;
align-items: center;
justify-content: space-between;
}
.header > div {
flex-shrink: 0;
}
.header__logo {
font-size: 1.2rem;
margin-right: 32px;
}
.header__links a {
margin-left: 16px;
padding: 0 0.5ch;
text-decoration: none;
color: inherit;
}
.header__links a:hover {
background-color: #ffff94;
text-decoration: underline !important;
}
html {
font-size: 20px;
}
@@ -331,57 +355,91 @@ html {
}
body {
font-family: 'Alfphabet-III', Arial, Helvetica, sans-serif;
margin: 0px;
margin: auto;
padding: 64px;
padding-top: 0px;
max-width: 1280px;
}
h1 {
font-size: 4rem;
margin: 0px;
line-height: 90%;
margin-bottom: 64px;
}
.header,
.footer {
padding: 15px;
display: flex;
align-items: center;
h1 .second-line {
margin-left: 6ch;
}
.header > div,
.footer > div {
flex-shrink: 0;
details {
margin-bottom: 10.66666667px;
}
p.pitch {
font-size: 2.4rem;
line-height: 135%;
}
p.pitch a {
background-color: #ffff94;
color: inherit;
text-decoration: none;
padding: 0 0.5ch;
}
p.pitch a:hover {
text-decoration: underline !important;
}
.main__wrapper {
position: absolute;
top: 50px;
right: 0;
bottom: 50px;
left: 0;
padding-top: 32px;
}
.block {
margin-bottom: 64px;
}
.block a {
color: inherit;
}
.block a:hover {
background-color: #ffff94;
}
.block-with-sidebar {
display: flex;
}
.main__wrapper > div {
padding: 15px;
.block-with-sidebar > div {
flex-shrink: 0;
}
.main__wrapper > div.sidebar {
width: 25%;
.block-with-sidebar > div.block-sidebar {
width: calc(100% - 60%);
overflow: auto;
}
.block-with-sidebar > div.block-main {
position: relative;
width: 60%;
}
.block-with-sidebar > div.block-main img {
width: 90%;
}
.block-with-sidebar.sidebar-right .block-sidebar {
padding-left: 16px;
border-left: 1px solid #000;
}
.block-with-sidebar.sidebar-left .block-sidebar {
padding-right: 16px;
border-right: 1px solid #000;
}
.main__wrapper > div.main {
position: relative;
width: 75%;
display: flex;
align-items: center;
justify-content: center;
.block-with-sidebar.sidebar-right .block-main {
padding-right: 16px;
}
.main__wrapper > div.main img {
width: 70%;
border: 1px solid #aaa;
position: absolute;
.block-with-sidebar.sidebar-left .block-main {
padding-left: 16px;
}
.main__wrapper > div.main img.image1 {
transform: rotate(-5deg) translate(3%, -2%);
#mapList,
#FAQ {
border: 1px solid #000;
border-radius: 64px;
padding: 64px;
padding-top: 32px;
}
.footer {
position: absolute;
bottom: 0;
right: 0;
left: 0;
height: 50px;
.heart {
transform: rotate(90deg);
transform-origin: right top;
position: fixed;
right: 5px;
bottom: 32px;
font-size: 0.8rem;
}

132
site/style/style.less Normal file
View File

@@ -0,0 +1,132 @@
@import "normalize.less";
@import "font.less";
@import "header.less";
@headerH : 50px;
@footerH : 50px;
@mainW : 60%;
@sidebarW : calc(~"100% - @{mainW}");
@margin : 32px;
@pitchLinkColor : #ffff94;
html {
font-size: 20px;
}
* {
box-sizing: border-box;
font-weight: normal;
font-style: normal;
}
body {
font-family: 'Alfphabet-III', Arial, Helvetica, sans-serif;
margin: auto;
padding: @margin * 2;
padding-top: 0px;
max-width: 1280px;
}
h1 {
font-size: 4rem;
margin: 0px;
line-height: 90%;
margin-bottom: @margin * 2;
.second-line {
margin-left: 6ch;
}
}
details {
margin-bottom: @margin / 3;
}
p.pitch {
font-size: 2.4rem;
line-height: 135%;
a {
background-color: @pitchLinkColor;
color: inherit;
text-decoration: none;
padding: 0 0.5ch;
&:hover {
text-decoration: underline !important;
}
}
}
.main__wrapper {
// padding: @margin;
padding-top: @margin;
}
.block {
margin-bottom: @margin * 2;
a {
color: inherit;
&:hover {
background-color: @pitchLinkColor;
}
}
}
.block-with-sidebar {
display: flex;
> div {
// padding : @margin;
flex-shrink: 0;
&.block-sidebar {
width: @sidebarW;
overflow: auto;
}
&.block-main {
position: relative;
width: @mainW;
img {
width: 90%;
}
}
}
&.sidebar-right .block-sidebar {
padding-left: @margin / 2;
border-left: 1px solid #000;
}
&.sidebar-left .block-sidebar {
padding-right: @margin / 2;
border-right: 1px solid #000;
}
&.sidebar-right .block-main {
padding-right: @margin / 2;
}
&.sidebar-left .block-main {
padding-left: @margin / 2;
}
}
#mapList,
#FAQ {
border: 1px solid #000;
border-radius: @margin * 2;
padding: @margin * 2;
padding-top: @margin;
}
.heart {
transform: rotate(90deg);
transform-origin: right top;
position: fixed;
right: 5px;
bottom: @margin;
font-size: 0.8rem;
}