Responsive

This commit is contained in:
Djeex
2025-08-22 16:35:10 +02:00
parent b5f8ceeb31
commit b03779b487
5 changed files with 220 additions and 210 deletions

View File

@ -40,11 +40,11 @@
<p> Follow the steps to generate your static gallery</p> <p> Follow the steps to generate your static gallery</p>
<ul id="stepper"> <ul id="stepper">
<li><a class="step-active" href="/gallery-editor">Upload your photos</a></li> <li><a class="step-active" href="/gallery-editor">Upload your photos</a></li>
<div></div> <div></div>
<li><a href="/site-info">Configure site info</a></li> <li><a href="/site-info">Configure site info</a></li>
<div></div> <div></div>
<li><a href="/theme-editor">Customize your theme</a></li> <li><a href="/theme-editor">Customize your theme</a></li>
<div></div> <div></div>
<li><button id="stepper-build">Generate your static site!</button></li> <li><button id="stepper-build">Generate your static site!</button></li>
</ul> </ul>
</div> </div>

View File

@ -13,11 +13,11 @@
<p> Follow the steps to generate your static gallery</p> <p> Follow the steps to generate your static gallery</p>
<ul id="stepper"> <ul id="stepper">
<li><a href="/gallery-editor">Upload your photos</a></li> <li><a href="/gallery-editor">Upload your photos</a></li>
<div></div> <div></div>
<li><a href="/site-info">Configure site info</a></li> <li><a href="/site-info">Configure site info</a></li>
<div></div> <div></div>
<li><a href="/theme-editor">Customize your theme</a></li> <li><a href="/theme-editor">Customize your theme</a></li>
<div></div> <div></div>
<li><button id="stepper-build">Generate your static site!</button></li> <li><button id="stepper-build">Generate your static site!</button></li>
</ul> </ul>
</div> </div>

View File

@ -137,11 +137,11 @@
<p> Follow the steps to generate your static gallery</p> <p> Follow the steps to generate your static gallery</p>
<ul id="stepper"> <ul id="stepper">
<li><a href="/gallery-editor">Upload your photos</a></li> <li><a href="/gallery-editor">Upload your photos</a></li>
<div></div> <div></div>
<li><a class="step-active" href="/site-info">Configure site info</a></li> <li><a class="step-active" href="/site-info">Configure site info</a></li>
<div></div> <div></div>
<li><a href="/theme-editor">Customize your theme</a></li> <li><a href="/theme-editor">Customize your theme</a></li>
<div></div> <div></div>
<li><button id="stepper-build">Generate your static site!</button></li> <li><button id="stepper-build">Generate your static site!</button></li>
</ul> </ul>
</div> </div>

View File

@ -1,14 +1,13 @@
/* --- Base Styles --- */ /* --- Base Styles --- */
body { body {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
margin: 20px;
background: #111010; background: #111010;
/* background:radial-gradient(ellipse at bottom center, #002a30, #000000bd), radial-gradient(ellipse at top center, #0558a8, #000000fa); */
color: #FBFBFB; color: #FBFBFB;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
margin:0px; margin:0px;
width: 100vw;
} }
a { a {
@ -16,15 +15,6 @@ a {
color: #d3d3d3; color: #d3d3d3;
} }
.content-inner {
width: 100%;
margin: 0 auto;
max-width: 1140px;
padding: 0 40px;
padding-top: 70px;
}
h1, h2 { h1, h2 {
color: #FBFBFB; color: #FBFBFB;
} }
@ -32,24 +22,154 @@ h2 {
color: #55c3ec; color: #55c3ec;
} }
/* --- Toolbar --- */ .content-inner {
.toolbar { margin: 0 auto;
margin-bottom: 20px; max-width: 1140px;
padding: 0 40px;
padding-top: 70px;
} }
.toolbar button {
margin-right: 10px; .nav {
padding: 8px 12px; height: 100%;
border: none; max-width: 1140px;
background-color: #4CAF50; padding: 0 40px;
color: white; }
.nav-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 70px;
background-color: #0c0d0c29;
z-index: 1000;
backdrop-filter: blur(20px);
border-bottom: 1px solid #21212157;
}
.nav img {
height: 30px;
padding: 0px;
margin-top: 10px;
}
.nav > .nav-header {
display: inline;
}
.nav > .nav-header > .nav-title {
display: inline-block;
font-size: 22px;
color: #fff;
padding: 0;
margin-top: 10px;
}
.nav > .nav-btn {
display: none;
}
.nav-btn label {
display: flex;
flex-direction: column;
justify-content: center;
cursor: pointer; cursor: pointer;
border-radius: 4px; width: 32px;
transition: background-color 0.2s; height: 32px;
} }
.toolbar button:hover { .nav > .nav-links {
background-color: #45a049; display: inline;
float: right;
font-size: 14px;
height: 100%;
line-height: 70px;
}
.nav-item {
display: inline;
}
.nav-list {
list-style-type: disc;
margin: 0px;
padding: 0px;
}
.nav > .nav-links > .nav-list > .nav-item > a {
display: inline-block;
padding: 0px 15px 0px 15px;
text-decoration: none;
height: 100%;
font-weight: 700;
color:#fff
}
.nav > .nav-links > .nav-list > .nav-item > a:hover {
color: #55c3ec;
}
.nav > .nav-links > .nav-list > .nav-item > a:active {
color: #55c3ec;
}
.nav > #nav-check {
display: none;
}
.nav-list > li + li::before{
content: " → ";
color: #ffc700;
}
.nav-cta {
display: inline;
float: right;
height: 70px;
line-height: 70px;
}
.nav-cta > .arrow {
font-size: 12px;
display: inline;
color: #ffc700;
font-weight: 700;
}
.nav-bar .button {
padding: 10px 25px;
border-radius: 40px;
margin: 15px 20px 15px 10px;
font-size: 14px;
display: inline;
background: linear-gradient(135deg, #26c4ff, #016074);
transition: all 0.2s ease;
text-decoration: none;
color: #fff;
font-weight: 700;
border: none;
cursor: pointer;
}
.nav-bar .button:hover {
background: linear-gradient(135deg, #72d9ff, #26657e);
transition: all 0.2s ease;
cursor: pointer;
}
.nav-links > ul {
display: inline-block;
}
.nav-btn span {
display: block;
height: 4px;
width: 28px;
background: #fff;
margin: 4px 0;
border-radius: 2px;
transition: all 0.3s;
} }
/* --- Upload Section --- */ /* --- Upload Section --- */
@ -113,22 +233,6 @@ h2 {
background-color: #d32f2f; background-color: #d32f2f;
} }
/* --- Responsive Adjustments --- */
@media (max-width: 500px) {
body {
margin: 10px;
}
.toolbar button {
margin-bottom: 8px;
width: 100%;
}
.section label {
display: block;
margin-bottom: 10px;
}
}
/* --- Toast Notifications --- */ /* --- Toast Notifications --- */
#toast-container { #toast-container {
@ -276,149 +380,7 @@ h2 {
width: 100% width: 100%
} }
/* --- Top Bar & Navigation --- */ /* --- Upload Buttons --- */
.nav {
height: 100%;
max-width: 1140px;
padding: 0 40px;
}
.nav-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 70px;
background-color: #0c0d0c29;
z-index: 1000;
backdrop-filter: blur(20px);
border-bottom: 1px solid #21212157;
}
.nav img {
height: 30px;
padding: 0px;
margin-top: 10px;
}
.nav > .nav-header {
display: inline;
}
.nav > .nav-header > .nav-title {
display: inline-block;
font-size: 22px;
color: #fff;
padding: 0;
margin-top: 10px;
}
.nav > .nav-btn {
display: none;
}
.nav-btn label {
display: flex;
flex-direction: column;
justify-content: center;
cursor: pointer;
width: 32px;
height: 32px;
}
.nav > .nav-links {
display: inline;
float: right;
font-size: 14px;
height: 100%;
line-height: 70px;
}
.nav-item {
display: inline;
}
.nav-list {
list-style-type: disc;
margin: 0px;
padding: 0px;
}
.nav > .nav-links > .nav-list > .nav-item > a {
display: inline-block;
padding: 0px 15px 0px 15px;
text-decoration: none;
height: 100%;
font-weight: 700;
color:#fff
}
.nav > .nav-links > .nav-list > .nav-item > a:hover {
color: #55c3ec;
}
.nav > .nav-links > .nav-list > .nav-item > a:active {
color: #55c3ec;
}
.nav > #nav-check {
display: none;
}
.nav-list > li + li::before{
content: " → ";
color: #ffc700;
}
.nav-cta {
display: inline;
float: right;
height: 70px;
line-height: 70px;
}
.nav-cta > .arrow {
font-size: 12px;
display: inline;
color: #ffc700;
font-weight: 700;
}
.nav-bar .button {
padding: 10px 25px;
border-radius: 40px;
margin: 15px 20px 15px 10px;
font-size: 14px;
display: inline;
background: linear-gradient(135deg, #26c4ff, #016074);
transition: all 0.2s ease;
text-decoration: none;
color: #fff;
font-weight: 700;
border: none;
cursor: pointer;
}
.nav-bar .button:hover {
background: linear-gradient(135deg, #72d9ff, #26657e);
transition: all 0.2s ease;
cursor: pointer;
}
.nav-links > ul {
display: inline-block;
}
.nav-btn span {
display: block;
height: 4px;
width: 28px;
background: #fff;
margin: 4px 0;
border-radius: 2px;
transition: all 0.3s;
}
/* --- Custom Upload Buttons --- */
.up-btn, .footer-links a{ .up-btn, .footer-links a{
display: inline-block; display: inline-block;
background: #00000000; background: #00000000;
@ -430,7 +392,6 @@ h2 {
text-align: center; text-align: center;
transition: all 0.1s ease; transition: all 0.1s ease;
user-select: none; user-select: none;
/* box-shadow: 0 4px 10px rgba(0,0,0,0.25);*/
font-size: 14px; font-size: 14px;
border: 1px solid #585858; border: 1px solid #585858;
} }
@ -455,7 +416,7 @@ h2 {
padding: 2rem 2.5rem; padding: 2rem 2.5rem;
border-radius: 10px; border-radius: 10px;
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
min-width: 300px; min-width: 200px;
max-width: 90vw; max-width: 90vw;
position: relative; position: relative;
text-align: center; text-align: center;
@ -511,7 +472,7 @@ h2 {
margin-bottom: 10px; margin-bottom: 10px;
} }
/* Remove All Buttons */ /* --- Remove All Buttons --- */
#remove-all-hero, #remove-all-gallery { #remove-all-hero, #remove-all-gallery {
background: #2d2d2d; background: #2d2d2d;
color: white; color: white;
@ -524,7 +485,6 @@ h2 {
background: rgb(121, 26, 19); background: rgb(121, 26, 19);
} }
/* Responsive: stack buttons vertically on small screens */
@media (max-width: 500px) { @media (max-width: 500px) {
.upload-actions-row { .upload-actions-row {
flex-direction: column; flex-direction: column;
@ -533,8 +493,7 @@ h2 {
} }
} }
/* --- Site Info --- */ /* --- Forms --- */
fieldset { fieldset {
background-color: rgb(67 67 67 / 26%); background-color: rgb(67 67 67 / 26%);
@ -562,7 +521,7 @@ legend {
.input-field { .input-field {
flex: 1 1 calc(33.333% - 18px); flex: 1 1 calc(33.333% - 18px);
min-width: 220px; min-width: 150px;
max-width: 100%; max-width: 100%;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
@ -653,7 +612,7 @@ img#thumbnail-preview {
background: #00000000; background: #00000000;
color: #fff; color: #fff;
border: none; border: none;
border-radius: 18px; border-radius: 30px;
padding: 7px 18px; padding: 7px 18px;
font-size: 0.98em; font-size: 0.98em;
margin-top: 8px; margin-top: 8px;
@ -764,13 +723,13 @@ fieldset p, .section p {
margin-top: 16px; margin-top: 16px;
} }
/* --- Home --- */ /* --- Stepper --- */
#stepper { #stepper {
display: flex; display: flex;
gap: 18px; gap: 18px;
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: stretch; /* Ensures all children match tallest height */ align-items: stretch;
padding: 0; padding: 0;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -783,6 +742,11 @@ fieldset p, .section p {
} }
#stepper > div::before {
content: "→";
color: #ffc700;
}
#stepper li a, #stepper li button, #stepper > div { #stepper li a, #stepper li button, #stepper > div {
justify-content: center; justify-content: center;
min-width: 100px; min-width: 100px;
@ -835,11 +799,11 @@ justify-content: center;
} }
#stepper li { #stepper li {
flex: 1 1 auto; /* li can grow/shrink, width is flexible */ flex: 1 1 auto;
} }
#stepper > div { #stepper > div {
flex: 0 0 auto; /* Do not grow or shrink, width is auto */ flex: 0 0 auto;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -847,10 +811,12 @@ justify-content: center;
border: none; border: none;
background: none; background: none;
padding: 0; padding: 0;
min-width: 0; /* Prevent unwanted minimum width */ min-width: 0;
width: auto; /* Let width fit content */ width: auto;
} }
/* --- Footer --- */
#footer { #footer {
background-color: #0c0d0c29; background-color: #0c0d0c29;
z-index: 1000; z-index: 1000;
@ -955,4 +921,48 @@ justify-content: center;
font-size: 18px; font-size: 18px;
} }
@keyframes spin { 100% { transform: rotate(360deg); } } @keyframes spin { 100% { transform: rotate(360deg); } }
/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
.content-inner {
padding: 0 20px
}
.section label {
display: block;
margin-bottom: 10px;
}
#menu-items-list > div {
flex-direction: column;
}
#stepper {
flex-direction: column;
}
#stepper li {
width: 100%;
}
.footer-container, .footer-links {
flex-direction: column;
}
#ip-list > div {
flex-direction: column;
}
#stepper > div {
flex-direction: column;
}
#stepper > div::before {
content: "↓";
color: #ffc700;
}
#stepper > div {
/* Hide the default arrow */
color: transparent;
}
}

View File

@ -140,11 +140,11 @@
<p> Follow the steps to generate your static gallery</p> <p> Follow the steps to generate your static gallery</p>
<ul id="stepper"> <ul id="stepper">
<li><a href="/gallery-editor">Upload your photos</a></li> <li><a href="/gallery-editor">Upload your photos</a></li>
<div></div> <div></div>
<li><a href="/site-info">Configure site info</a></li> <li><a href="/site-info">Configure site info</a></li>
<div></div> <div></div>
<li><a class="step-active" href="/theme-editor">Customize your theme</a></li> <li><a class="step-active" href="/theme-editor">Customize your theme</a></li>
<div></div> <div></div>
<li><button id="stepper-build">Generate your static site!</button></li> <li><button id="stepper-build">Generate your static site!</button></li>
</ul> </ul>
</div> </div>