Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBProkop committed Aug 17, 2023
1 parent 5a44088 commit b181f8e
Show file tree
Hide file tree
Showing 22 changed files with 1,196 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/eshop.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
www.ary-industries.com
Binary file added Global/PNG/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Global/PNG/wide_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions Global/colormode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
const basicColorModeBtn = document.getElementById('color-mode-btn');
const dropdownColorModeBtn = document.getElementById('dropdown-color-mode-btn');
const body = document.body;
let lightText = 'Dark Mode';
let darkText = 'Light Mode';
let currentMode = localStorage.getItem('colorMode');
let originalText;

// Set the initial mode and text content of the color mode button
if (currentMode === 'light') {
body.classList.add('light-mode');
originalText = darkText;
basicColorModeBtn.textContent = darkText;
dropdownColorModeBtn.textContent = darkText;
} else {
originalText = lightText;
basicColorModeBtn.textContent = lightText;
dropdownColorModeBtn.textContent = lightText;
}

// Add event listener to color mode buttons
basicColorModeBtn.addEventListener('click', toggleColorMode);
dropdownColorModeBtn.addEventListener('click', toggleColorMode);

// Function to toggle the color mode
function toggleColorMode() {
// Toggle the light-mode class on the body element
body.classList.toggle('light-mode');

// Update the text content of the color mode buttons
if (body.classList.contains('light-mode')) {
basicColorModeBtn.textContent = darkText;
dropdownColorModeBtn.textContent = darkText;
} else {
basicColorModeBtn.textContent = lightText;
dropdownColorModeBtn.textContent = lightText;
}

// Save the color mode preference in localStorage
if (body.classList.contains('light-mode')) {
localStorage.setItem('colorMode', 'light');
} else {
localStorage.setItem('colorMode', 'dark');
}
}


// Click

const bars = document.querySelector('#click');

bars.addEventListener('click', () => {
body.classList.toggle('show');
});
85 changes: 85 additions & 0 deletions Global/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
footer {
display: flex;
padding: 20px 40px 50px 40px;
background-color: rgb(0, 0, 0);
height: fit-content;
width: 100%;
flex-direction: column;
color: white;
gap: 10px;
transition: 0.3s;
}
.allfoot {
display: flex;
justify-content: space-between;
gap: 2rem;
}


.mainfoot {
width: fit-content;
height: fit-content;
display: flex;
flex-direction: column;
}
.secfoot {
width: 40%;
display: flex;
justify-content: space-between;
align-items: center;
right: 0;
}
.copyright {
text-align: center;
font-family: 'Poppins', sans-serif;
font-size: 0.75em;
}



footer a {
color: white;
text-decoration: none;
transition: 0.3s;

}
footer a:hover {
scale: 1.1;
transition: 0.3s;

}


/* Text */
footer p {
padding-top: 0.8rem;
font-family: 'Poppins';
}





/* Media */

@media (max-width: 950px) {
footer {
flex-direction: column;
}

.allfoot {
flex-direction: column;
align-items: center; /* Center horizontally */
}

.mainfoot {
flex-direction: column;
width: fit-content;

}


.secfoot {
width: 100%;
}
}
156 changes: 156 additions & 0 deletions Global/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Basics */

* {
box-sizing: border-box;
margin: 0;
border: 0;
}
/* Color Mode */

.light-mode {
background-color: rgb(255, 255, 255);
color: black;
transition: 0.3s;
}

/* Body */

body {
font-size: 1rem;
font-family: 'Poppins';
font-weight: 500;
color: rgb(255, 255, 255);
background-color: rgb(20, 20, 20);
transition: 0.3s;
}
main {
display: flex;
padding-top: 125px;
padding-bottom: 125px;
background-color: inherit;
width: 85%;
margin: auto;
min-height: 100vh;
gap: 3rem;

}


/* Text */
hr {
display: flex;
border: solid 3px rgb(0, 150, 200);
border-radius: 1rem;
width: 100%;
margin-bottom: 1rem;
}

.company-name{
justify-content: center;
font-size: 3rem;
font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
font-weight: 200;
letter-spacing: 0.2rem;
text-align: center;
}
h1{
display: flex;
justify-content: left;
font-family: inherit;
font-weight: inherit;
}


p {
font-size: 1rem;
display: flex;
flex-wrap: wrap;
font-family: 'Bitter';
font-weight: 500;
letter-spacing: 0.05rem;
}

a {
color: white;
text-decoration: none;
transition: 0.3s;
}


a:hover{
transition: 0.3s;
}







/* Media */

@media (max-width: 950px) {
#navbar{
height: 60px;
}
main{
flex-direction: column;
}
#dropdown ul {
padding: 0;
}

#dropdown {
display: none;
flex-direction: column;

}

#bars {
display: flex;
}

#basic {
display: none;
}

#dropdown li {
font-size: 1.35em;
}

#dropdown-color-mode-btn {
font-size: 1.35em;
}
}

@media (max-width: 500px) {
#dropdown {
width: 100%;
}
}

@media (min-width: 950px) {
#dropdown, #x, #bars {
display: none !important;
}
}

@media (max-height: 500px) {
footer {
margin-top: 500px;
}
}


.show #dropdown, .show #x {
display: flex;

}

.show #bars {
display: none;
}
Loading

0 comments on commit b181f8e

Please sign in to comment.