complete website rework beginning
This commit is contained in:
31
src/css/altstyle.css
Executable file
31
src/css/altstyle.css
Executable file
@@ -0,0 +1,31 @@
|
||||
html, body {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
background-color: gray;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
width: 10%
|
||||
}
|
||||
|
||||
div {
|
||||
margin-right: 10%;
|
||||
margin-left: 10%;
|
||||
margin-top: 2%;
|
||||
margin-bottom: 2%;
|
||||
padding: 10%;
|
||||
padding-top: 5%;
|
||||
padding-bottom: 5%;
|
||||
border-color: black;
|
||||
border-style: double;
|
||||
border-radius: 3%;
|
||||
background-color:dimgray;
|
||||
}
|
||||
|
||||
|
||||
h1 {
|
||||
font-size: 300%;
|
||||
}
|
||||
24
src/css/footerstyle.css
Executable file
24
src/css/footerstyle.css
Executable file
@@ -0,0 +1,24 @@
|
||||
.Footer-box {
|
||||
background-color: #38444d;
|
||||
width: 100%;
|
||||
margin-bottom: -1%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.footer-content-box {
|
||||
width: 80%;
|
||||
padding: 2%;
|
||||
}
|
||||
|
||||
.footer-center-box {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.footer-logo {
|
||||
width: 10%;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
}
|
||||
195
src/css/mainstyle.css
Executable file
195
src/css/mainstyle.css
Executable file
@@ -0,0 +1,195 @@
|
||||
/*
|
||||
*
|
||||
* janishutz.com - mainstyle.css
|
||||
*
|
||||
*
|
||||
* Created 2023 by Janis Hutz
|
||||
*/
|
||||
|
||||
/*
|
||||
Set size of html and body to full width
|
||||
*/
|
||||
html, body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: calc(14pt + 0.395vw);
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: rgba(70, 72, 167, 0.5);
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
/*
|
||||
Style for quotes
|
||||
*/
|
||||
.bigquote {
|
||||
width: 40%;
|
||||
font-size: 300%;
|
||||
}
|
||||
|
||||
.biggerquote {
|
||||
font-size: 150%;
|
||||
}
|
||||
|
||||
/*
|
||||
Styling for the main content element
|
||||
*/
|
||||
.mainstyle {
|
||||
margin-right: 5%;
|
||||
margin-left: 5%;
|
||||
margin-top: 2%;
|
||||
margin-bottom: 2%;
|
||||
padding: 5%;
|
||||
padding-top: 3%;
|
||||
padding-bottom: 3%;
|
||||
border-color: black;
|
||||
border-style: none;
|
||||
border-radius: 50px;
|
||||
background-color: rgba(195, 195, 229, 1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Styling for links and buttons
|
||||
*/
|
||||
.textlink {
|
||||
font-size: 100%;
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
transition: 1s;
|
||||
}
|
||||
|
||||
.textlink:hover {
|
||||
color: darkblue;
|
||||
font-size: 115%;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.linkbutton {
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
padding: 20px;
|
||||
color: white;
|
||||
background-color:rgba(0, 40, 131, 1);
|
||||
border-radius: 25px;
|
||||
transition: 1s;
|
||||
}
|
||||
|
||||
.linkbutton:hover {
|
||||
background-color: darkblue;
|
||||
border-radius: 5px;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.references {
|
||||
color: gray;
|
||||
}
|
||||
|
||||
/*
|
||||
This styles the container for the home page
|
||||
*/
|
||||
.title-container {
|
||||
background-image: url('/assets/codeSnippet.png');
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
width: 100%;
|
||||
height: 40vh;
|
||||
border-radius: 20px;
|
||||
color: white;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.title {
|
||||
text-align: center;
|
||||
font-size: 2.3rem;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
text-align: center;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
font-size: 1rem;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 5%;
|
||||
margin-bottom: 10%;
|
||||
}
|
||||
|
||||
.content-title {
|
||||
font-size: 3rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content-title-small {
|
||||
font-size: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pullquote-lines {
|
||||
border-color: black;
|
||||
margin-bottom: 2%;
|
||||
margin-top: 2%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*
|
||||
Bottom container styling
|
||||
*/
|
||||
|
||||
.bottom {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.element {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (min-width: 999px) {
|
||||
/*
|
||||
Align content side by side
|
||||
*/
|
||||
.sidebyside {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-grow: 1;
|
||||
gap: 5%;
|
||||
}
|
||||
|
||||
.element {
|
||||
width: 47%;
|
||||
}
|
||||
|
||||
.itemsInline {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
gap: 5%;
|
||||
margin-top: 3%;
|
||||
margin-bottom: 3%;
|
||||
}
|
||||
|
||||
.mainstyle {
|
||||
margin-right: 10%;
|
||||
margin-left: 10%;
|
||||
padding: 10%;
|
||||
padding-top: 5%;
|
||||
padding-bottom: 5%;
|
||||
}
|
||||
}
|
||||
155
src/css/menustyle.css
Executable file
155
src/css/menustyle.css
Executable file
@@ -0,0 +1,155 @@
|
||||
/*
|
||||
*
|
||||
* janishutz.com - menustyle.css
|
||||
*
|
||||
*
|
||||
* Created 2023 by Janis Hutz
|
||||
*/
|
||||
|
||||
::selection {
|
||||
background-color: darkblue;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.Menu {
|
||||
font-size: 0.8rem;
|
||||
margin-top: -1%;
|
||||
padding: 2%;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
background-color: rgba(56, 68, 77, 1);
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 10vh;
|
||||
display: inline-block;
|
||||
margin-left: 2%;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.menu-container {
|
||||
display: none;
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: rgba(184, 214, 240, 1);
|
||||
}
|
||||
|
||||
.listtoggle {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
font-size: 2.5rem;
|
||||
margin-right: 7%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.toggle-wrapper {
|
||||
display: inline-flex;
|
||||
height: 100%;
|
||||
width: 70%;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.menu-container, .dropdown-menu {
|
||||
list-style: none;
|
||||
margin: 0 5%;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.menubutton {
|
||||
text-decoration: none;
|
||||
width: 96%;
|
||||
display: block;
|
||||
padding: 2%;
|
||||
color: white;
|
||||
transition: 0.6s;
|
||||
}
|
||||
|
||||
.menubutton:hover {
|
||||
background-color: darkblue;
|
||||
transition: 0.2s;
|
||||
}
|
||||
|
||||
.sub {
|
||||
width: 96%;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
width: 95%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 999px) {
|
||||
.listtoggle, .toggle-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.menu-wrapper {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.menu-container {
|
||||
display: inline-flex;
|
||||
list-style-type: none;
|
||||
width: 80%;
|
||||
margin: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.menubutton {
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
padding: 20px;
|
||||
width: inherit;
|
||||
color: white;
|
||||
border-radius: 0%;
|
||||
background-color: rgba(0,0,0,0);
|
||||
transition: 0.6s;
|
||||
}
|
||||
|
||||
.sub {
|
||||
width: 92%;
|
||||
padding: 20px 4%;
|
||||
}
|
||||
|
||||
.menubutton:hover {
|
||||
border-radius: 0%;
|
||||
background-color: darkblue;
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: fit-content;
|
||||
background-color: lightseagreen;
|
||||
display: none;
|
||||
list-style-type: none;
|
||||
position: absolute;
|
||||
min-width: 200px;
|
||||
transform-origin: top center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@keyframes growDown {
|
||||
0% {
|
||||
transform: scaleY(0);
|
||||
}
|
||||
100% {
|
||||
transform: scaleY(1);
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown:hover .dropdown-menu {
|
||||
display: flex;
|
||||
animation: growDown 0.3s ease-in-out;
|
||||
}
|
||||
|
||||
.mainitems {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
65
src/css/nav/menu.css
Normal file
65
src/css/nav/menu.css
Normal file
@@ -0,0 +1,65 @@
|
||||
#menu {
|
||||
color: white;
|
||||
transform: scale( 0 );
|
||||
transform-origin: top right;
|
||||
transition: all 1s;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
cursor: default;
|
||||
background-color: rgb(18, 12, 59);
|
||||
}
|
||||
|
||||
#menu.open {
|
||||
transform: scale( 1 );
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.menu-container {
|
||||
width: 80%;
|
||||
height: 80%;
|
||||
}
|
||||
|
||||
.menu-main {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.menu-category {
|
||||
padding: 2vw;
|
||||
transition: all 1s;
|
||||
transition-delay: 0.5s;
|
||||
}
|
||||
|
||||
/* TODO: Make multiple steps for this
|
||||
TODO: Optimise for mobile devices (scale vertically) */
|
||||
|
||||
.menu-category:hover {
|
||||
padding-right: 15vw;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
.category-list {
|
||||
transition: all 0.5s;
|
||||
transform: scaleY( 0 );
|
||||
position: absolute;
|
||||
transform-origin: top;
|
||||
transition-delay: 0s;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.menu-category:hover .category-list {
|
||||
transform: scaleY( 1 );
|
||||
transition-delay: 0.5s;
|
||||
}
|
||||
87
src/css/nav/toggle.css
Normal file
87
src/css/nav/toggle.css
Normal file
@@ -0,0 +1,87 @@
|
||||
.nav-container {
|
||||
height: 13vh;
|
||||
width: 13vh;
|
||||
right: 0;
|
||||
top: 0;
|
||||
z-index: 9;
|
||||
position: fixed;
|
||||
transition: all 2s ease-in-out;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.nav-toggle-container {
|
||||
background-color: rgb(21, 21, 73);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 10;
|
||||
justify-content: flex-start;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
flex-direction: column;
|
||||
border-bottom-left-radius: 100%;
|
||||
}
|
||||
|
||||
.nav-container:hover {
|
||||
height: 20vh;
|
||||
width: 20vh;
|
||||
transition: all 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.nav-toggle-positioner {
|
||||
width: 75%;
|
||||
height: 75%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.nav-toggle {
|
||||
text-decoration: none;
|
||||
color: rgb(168, 212, 253);
|
||||
font-size: 5vh;
|
||||
cursor: pointer;
|
||||
width: 35px;
|
||||
height: 27px;
|
||||
z-index: 11;
|
||||
transition: 0.8s;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* Nav-Hide-Show button idea from here: https://codepen.io/alvarotrigo/pen/wvrzPWL*/
|
||||
|
||||
.line {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
background-color: rgb(49, 142, 230);
|
||||
}
|
||||
|
||||
#line1 {
|
||||
transform-origin: 0% 0%;
|
||||
transition: transform 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
#line2 {
|
||||
transition: transform 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
#line3 {
|
||||
transform-origin: 0% 100%;
|
||||
transition: transform 0.4s ease-in-out;
|
||||
}
|
||||
|
||||
.nav-toggle.active #line1 {
|
||||
transform: rotate( 45deg );
|
||||
}
|
||||
|
||||
.nav-toggle.active #line2 {
|
||||
transform: scaleY(0);
|
||||
}
|
||||
|
||||
.nav-toggle.active #line3 {
|
||||
transform: rotate( -45deg );
|
||||
}
|
||||
Reference in New Issue
Block a user