merge new front-end #3

Merged
sherl merged 8 commits from frontend into master 2025-06-05 10:30:28 +02:00
2 changed files with 58 additions and 16 deletions
Showing only changes of commit 03463905ef - Show all commits

View File

@@ -61,6 +61,7 @@ body {
font-size: 15px; font-size: 15px;
z-index: -2; z-index: -2;
position: relative; position: relative;
margin-top: 60px;
/* box-shadow: 0px -5px 10px 2px rgba(0, 0, 0, 0.347); */ /* box-shadow: 0px -5px 10px 2px rgba(0, 0, 0, 0.347); */
} }
@@ -130,7 +131,7 @@ header button {
padding: 2.3rem 1rem; padding: 2.3rem 1rem;
height: 1.5rem; height: 1.5rem;
position: sticky; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
@@ -182,7 +183,7 @@ header button {
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
border-radius: var(--border-radius); border-radius: var(--border-radius);
padding: 10px 20px; padding: 10px;
height: 100%; height: 100%;
transition: 100ms ease; transition: 100ms ease;
position: relative; position: relative;
@@ -293,21 +294,30 @@ header button {
cursor: pointer; cursor: pointer;
} }
@media (max-width: 768px) { @media (max-width: 1090px) {
/* .base-header .navbar:not(:has(.show))
{
margin-bottom: 400px;
} */
.nav-links { .nav-links {
display: none;
flex-direction: column;
background-color: var(--barca-blue);
position: absolute; position: absolute;
top: 2.5rem; flex-direction: column;
right: 0rem; top: 57px;
right: 40px;
padding: 0rem; padding: 0rem;
gap: 0; gap: 0;
width: 200px; height: auto;
backdrop-filter: blur(4px);
width: 20%;
justify-content: center;
box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.105);
} }
.nav-links li { .nav-links li {
width: 100%; width: 100%;
margin: 0;
display: flex;
justify-content: center;
} }
.nav-links li a, .nav-links li a,
@@ -320,16 +330,50 @@ header button {
border-radius: 0; border-radius: 0;
/* brak zaokrągleń w mobilnym menu */ /* brak zaokrągleń w mobilnym menu */
} }
.nav-links li button
{
background-color: none;
width: 45px;
border-radius: 50%;
}
.nav-links li button::before,.nav-links li button::after
{
background-color: none
;
}
.nav-links li button:hover
{
transform: none;
}
.nav-links.show { .nav-links.show {
display: flex; display: none;
} }
.hamburger { .hamburger {
display: block; display: block;
} }
} }
@media (max-width: 1000px)
{
.header-content
{
flex-direction: column;
}
.header-content .profile-image
{
display: flex;
justify-content: center;
width: 100%;
}
.header-content .profile-image img{
width: 100%;
}
.about-section-image
{
display: none;
}
}
@@ -608,11 +652,12 @@ body.poland-mode .hamburger {
} }
@media (max-width: 768px) { @media (max-width: 768px) {
body.poland-mode .nav-links { /* body.poland-mode .nav-links {
background-color: var(--polska-red); background-color: var(--polska-red);
/*Ale oczopląs*/ /*Ale oczopląs*/
} */
} }
}
body.poland-mode .section-stats { body.poland-mode .section-stats {
background: linear-gradient(to bottom, #bd4148, #dc1414); background: linear-gradient(to bottom, #bd4148, #dc1414);

View File

@@ -27,9 +27,6 @@
<li><a href="/representation">Reprezentacja</a></li> <li><a href="/representation">Reprezentacja</a></li>
<li><a href="/trophies">Trofea</a></li> <li><a href="/trophies">Trofea</a></li>
<li><a href="/compare">Porównaj</a></li> <li><a href="/compare">Porównaj</a></li>
<li><button id="theme-toggle" onclick="toggleTheme()"></button></li> <li><button id="theme-toggle" onclick="toggleTheme()"></button></li>
</ul> </ul>
<div class="hamburger"></div> <div class="hamburger"></div>