Implement new user interface.

This commit is contained in:
2024-04-23 18:55:41 +01:00
parent bbb7800dc8
commit a282c6dbcc
7 changed files with 387 additions and 250 deletions

View File

@@ -11,13 +11,26 @@
}
*{
box-sizing: border-box;
/*box-sizing: border-box; */
margin: 0;
}
script, link {
display: none !important;
}
html {
height: 100%;
}
body {
font-family: Arial;
padding: 10px;
background: var(--c_purple_pastel);
padding: 0;
margin: 0;
border: 0;
background: linear-gradient(to bottom right, var(--c_purple), #dc2430); /* var(--c_purple_pastel); */
height: 100%;
max-height: 100%;
}
h1 {
@@ -43,45 +56,56 @@ h5 {
margin: 1vh;
}
/* Header/Blog Title */
.header {
padding: 1vh;
text-align: center;
background-color: var(--c_purple_light);
}
/* Style the top navigation bar */
.topnav {
overflow: hidden;
background-color: var(--c_purple);
/* overflow: hidden; */
/* background-color: var(--c_purple); */
border-bottom-left-radius: 2.5vh;
border-bottom-right-radius: 2.5vh;
display: flex;
flex-wrap: wrap;
flex: 1;
flex-direction: row;
font-weight: bold;
font-size: 2vh;
font-size: 1vh;
max-height: 15vh;
height: 15vh;
align-items: flex-start;
}
/* Style the topnav links */
.topnav a, .topnav label {
.topnav a, .topnav label, .topnav p {
float: left;
display: block;
display: flex;
color: white;
text-align: center;
/* padding: 14px 16px; */
text-decoration: none;
width: 100%;
max-height: 15vh;
font-weight: normal;
font-size: 25px;
}
/*
.topnav a {
padding: 3vh 2vw;
}
*/
/* Change color on hover */
.topnav a:hover {
background-color: var(--c_purple_light);
color: var(--c_purple_dark);
}
.topnav .container {
max-width: 20%;
.topnav > .container {
max-width: 50%;
height: 100%;
align-items: center;
align-self: center;
/* align-content: center; */
/* width: fit-content; */
display: flex;
}
.topnav select {
@@ -101,31 +125,76 @@ h5 {
width: 25vw;
}
/* Create two unequal columns that floats next to each other */
/* Left column */
.company-name {
font-size: 2.5vh;
color: white;
margin: 0;
padding: 0;
}
.page-body {
height: 75vh !important;
padding: 0;
margin: 0;
border: 0;
align-items: center;
align-content: center;
justify-content: center;
}
.page-body > * {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
height: 100%;
align-self: center;
font-size: 20px;
}
#pageBody > * > * {
width: 100%;
align-self: center;
padding-top: 1vh;
padding-bottom: 1vh;
color: white; /* var(--c_purple_dark); */
}
#pageBody > * :first-child{
margin-top: 25vh;
}
#pageBody > * :last-child {
margin-bottom: 35vh;
}
/* Create two unequal columns that floats next to each other *
/* Left column *
.leftcolumn {
float: left;
width: 70%;
display: flex;
flex-wrap: wrap;
/* min-width: fit-content; */
/* min-width: fit-content; *
align-items: center;
justify-content: center;
}
/* Right column */
/* Right column *
.rightcolumn {
float: left;
width: 30%;
display: flex;
flex-wrap: wrap;
/* min-width: fit-content; only on store?? */
/* background-color: #f1f1f1; */
/* min-width: fit-content; only on store?? *
/* background-color: #f1f1f1; *
padding-left: 20px;
height: fit-content;
align-items: center;
justify-content: center;
}
*/
/* Fake image */
.fakeimg {
@@ -177,8 +246,8 @@ img.header-logo {
/* Add a card effect for articles */
.card {
background-color: white;
padding: 1vh;
margin-top: 3vh;
padding: 0;
margin: 0;
display: flex !important;
flex-wrap: wrap;
align-items: center;
@@ -201,11 +270,11 @@ img.header-logo {
.container {
flex: 1;
margin: 0px;
align-items: center;
justify-content: center;
text-align: center;
align-items: flex-start;
justify-content: flex-start;
text-align: flex-start;
max-width: 100%;
min-width: fit-content;
/* min-width: fit-content; */
}
.column {
@@ -217,7 +286,7 @@ img.header-logo {
display: flex;
flex-direction: row;
width: 100%;
min-width: fit-content;
/* min-width: fit-content; */
}
.container > .card:first-of-type {
@@ -233,33 +302,41 @@ img.header-logo {
*/
/* Footer */
.footer {
padding: 1vh;
padding: 0;
text-align: center;
margin: 0;
/*
background: var(--c_purple_light);
margin-top: 20px;
border-radius: 2.5vh;
border-top-right-radius: 2.5vh;
border-top-left-radius: 2.5vh;
border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
*/
height: 10vh !important;
}
.footer > h4, h5 {
padding: 0;
margin: 1vh;
margin: 0;
}
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
/*
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other *
@media screen and (max-width: 800px) {
.leftcolumn, .rightcolumn {
width: 100%;
/* padding: 0; */
/* padding: 0; *
}
}
/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other *
@media screen and (max-width: 400px) {
.topnav a {
float: none;
width: 100%;
}
}
*/
/* input container
margin-top: 3vh;
@@ -301,21 +378,71 @@ button, .btn-submit, input[type="submit"] {
border-radius: 2vh;
padding: 1vh 2vh 1vh 2vh;
margin: 0.5vh;
/*
background-color: var(--c_blue_pastel);
color: var(--c_blue_dark);
border-color: var(--c_blue_dark);
*/
background-color: var(--c_purple_pastel);
color: var(--c_purple_dark);
border-color: var(--c_purple_dark);
}
.button-contact {
border: 4px solid var(--c_purple_dark);
background-color: var(--c_purple_pastel);
color: var(--c_purple_dark) !important;
border-radius: 2vh;
width: 180px !important;
}
.button-contact:hover {
text-decoration: underline;
}
/* Overlay modal */
.overlay {
/*
display: none;
*/
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
top: 15vh;
right: 0;
width: 100px;
/* height: 50%; */
background: var(--c_purple_pastel);
justify-content: right;
align-items: right;
align-self: right;
z-index: 999;
}
}
.overlay.expanded {
display: block !important;
}
.overlay.collapsed {
display: none !important;
}
.hamburger {
}
.hamburger > * {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
color: var(--c_purple_dark);
font-weight: bold;
font-size: 18px;
height: 27px;
}
.hamburger > :hover {
background-color: var(--c_purple_light);
color: var(--c_purple_dark);
}
.hamburger > * > * {
width: 100%;
margin-top: 4.5px;
margin-bottom: 4.5px;
}