move to indexedb and add about page
All checks were successful
Deploy Sokko G / deploy (push) Successful in 7s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 7s
This commit is contained in:
parent
a8809afdfd
commit
772b9951de
12 changed files with 855 additions and 249 deletions
|
|
@ -186,47 +186,28 @@ span {
|
|||
filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.34));
|
||||
}
|
||||
|
||||
.origin-section {
|
||||
.nebula-panel {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow: var(--shadow-sm);
|
||||
|
||||
@include mixins.gold-panel-frame;
|
||||
}
|
||||
|
||||
.nebula-panel > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.origin-section {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
|
||||
gap: var(--space-6);
|
||||
margin-top: var(--space-6);
|
||||
padding: var(--space-6);
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-lg);
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.origin-section::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -1px;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background: rgba(165, 180, 252, 0.14);
|
||||
@include mixins.border-mask;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.origin-section::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -1px;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
radial-gradient(circle at calc(100% - var(--radius-lg)) calc(100% - var(--radius-lg)), rgba(246, 196, 83, 0.9) 0 18px, transparent 27px),
|
||||
linear-gradient(90deg, transparent 0 30%, rgba(246, 196, 83, 0.12) 42%, rgba(246, 196, 83, 0.72) 72%, rgba(246, 196, 83, 0.9) 100%),
|
||||
linear-gradient(180deg, transparent 0 30%, rgba(246, 196, 83, 0.12) 42%, rgba(246, 196, 83, 0.72) 72%, rgba(246, 196, 83, 0.9) 100%);
|
||||
@include mixins.border-mask;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.origin-section > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.origin-copy {
|
||||
|
|
@ -280,6 +261,181 @@ span {
|
|||
text-align: right;
|
||||
}
|
||||
|
||||
.about-page {
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.about-story-section {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
|
||||
gap: var(--space-6);
|
||||
align-items: start;
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
.about-section-heading {
|
||||
position: sticky;
|
||||
top: var(--space-5);
|
||||
}
|
||||
|
||||
.about-section-heading h2 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.about-story-list {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.about-story-item {
|
||||
display: grid;
|
||||
grid-template-columns: 42px minmax(0, 1fr);
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-4) 0;
|
||||
border-bottom: 1px solid rgba(165, 180, 252, 0.1);
|
||||
}
|
||||
|
||||
.about-story-item:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.about-story-item:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.about-story-item > span {
|
||||
color: var(--color-accent-gold);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 900;
|
||||
letter-spacing: 0.08em;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.about-story-item h3 {
|
||||
margin: 0 0 6px;
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.about-story-item > div > p {
|
||||
max-width: 78ch;
|
||||
margin: 0;
|
||||
color: var(--color-text-secondary);
|
||||
line-height: 1.62;
|
||||
}
|
||||
|
||||
.about-tools-section {
|
||||
display: grid;
|
||||
gap: var(--space-4);
|
||||
padding: var(--space-6);
|
||||
}
|
||||
|
||||
.about-tools-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 0 var(--space-6);
|
||||
}
|
||||
|
||||
.about-tool-item {
|
||||
display: grid;
|
||||
grid-template-columns: 38px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid rgba(165, 180, 252, 0.1);
|
||||
}
|
||||
|
||||
.about-tool-item:nth-last-child(-n + 2) {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.about-tool-item .module-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
flex: 0 0 34px;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.about-tool-item .module-icon-svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.about-tool-item h3 {
|
||||
margin: 0 0 4px;
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-base);
|
||||
}
|
||||
|
||||
.about-tool-item p {
|
||||
margin: 0;
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.about-storage-reminders {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin-top: var(--space-4);
|
||||
padding-left: 44px;
|
||||
}
|
||||
|
||||
.about-storage-reminders .eyebrow {
|
||||
margin: 0;
|
||||
color: var(--color-accent-gold);
|
||||
}
|
||||
|
||||
.about-reminders-list {
|
||||
display: grid;
|
||||
gap: 0;
|
||||
margin: 0;
|
||||
padding: 2px 0 2px var(--space-5);
|
||||
list-style: none;
|
||||
border-left: 1px solid rgba(246, 196, 83, 0.22);
|
||||
}
|
||||
|
||||
.about-reminder-item {
|
||||
display: grid;
|
||||
grid-template-columns: 38px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
align-items: start;
|
||||
padding: 12px 0;
|
||||
border-bottom: 1px solid rgba(165, 180, 252, 0.1);
|
||||
}
|
||||
|
||||
.about-reminder-item:first-child {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
.about-reminder-item:last-child {
|
||||
padding-bottom: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.about-reminder-item .module-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
flex: 0 0 34px;
|
||||
border: 1px solid rgba(246, 196, 83, 0.26);
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(246, 196, 83, 0.1);
|
||||
}
|
||||
|
||||
.about-reminder-item h4 {
|
||||
margin: 0 0 6px;
|
||||
color: var(--color-text-primary);
|
||||
font-size: var(--font-size-base);
|
||||
}
|
||||
|
||||
.about-reminder-item p {
|
||||
max-width: none;
|
||||
margin: 0;
|
||||
color: var(--color-text-secondary);
|
||||
font-size: var(--font-size-sm);
|
||||
line-height: 1.48;
|
||||
}
|
||||
|
||||
.home-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
|
|
|
|||
|
|
@ -20,3 +20,32 @@
|
|||
border-box;
|
||||
-webkit-mask-composite: xor;
|
||||
}
|
||||
|
||||
@mixin gold-panel-frame($transition: false) {
|
||||
&::before,
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
pointer-events: none;
|
||||
|
||||
@include border-mask;
|
||||
|
||||
@if $transition {
|
||||
transition: background var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
}
|
||||
|
||||
&::before {
|
||||
background: rgba(165, 180, 252, 0.14);
|
||||
}
|
||||
|
||||
&::after {
|
||||
background:
|
||||
radial-gradient(circle at calc(100% - var(--radius-lg)) calc(100% - var(--radius-lg)), rgba(246, 196, 83, 0.52) 0 18px, transparent 27px),
|
||||
linear-gradient(90deg, transparent 0 30%, rgba(246, 196, 83, 0.08) 42%, rgba(246, 196, 83, 0.38) 72%, rgba(246, 196, 83, 0.52) 100%),
|
||||
linear-gradient(180deg, transparent 0 30%, rgba(246, 196, 83, 0.08) 42%, rgba(246, 196, 83, 0.38) 72%, rgba(246, 196, 83, 0.52) 100%);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,14 +19,24 @@
|
|||
|
||||
.brand span:last-child,
|
||||
.nav-item strong,
|
||||
.sidebar-about-link strong,
|
||||
.sidebar-note {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.brand,
|
||||
.nav-item {
|
||||
.nav-item,
|
||||
.sidebar-about-link {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.about-story-section {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.about-section-heading {
|
||||
position: static;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
|
|
@ -63,11 +73,25 @@
|
|||
.game-hero,
|
||||
.page-hero,
|
||||
.origin-section,
|
||||
.about-story-section,
|
||||
.about-tools-list,
|
||||
.section-grid,
|
||||
.info-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.about-tool-item:nth-last-child(-n + 2) {
|
||||
border-bottom: 1px solid rgba(165, 180, 252, 0.1);
|
||||
}
|
||||
|
||||
.about-tool-item:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.about-storage-reminders {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.game-hero,
|
||||
.page-hero {
|
||||
|
|
|
|||
|
|
@ -143,10 +143,60 @@
|
|||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.sidebar-about-link {
|
||||
display: flex;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: auto;
|
||||
margin-bottom: calc(var(--space-3) * -1);
|
||||
padding: 7px 12px;
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--color-text-muted);
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 700;
|
||||
transition: var(--duration-normal) var(--ease-standard);
|
||||
}
|
||||
|
||||
.sidebar-about-link strong {
|
||||
color: inherit;
|
||||
font-size: var(--font-size-xs);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.sidebar-about-icon {
|
||||
display: inline-grid;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
flex: 0 0 auto;
|
||||
place-items: center;
|
||||
color: var(--color-accent-gold);
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
transition:
|
||||
color var(--duration-fast) var(--ease-standard),
|
||||
filter var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.sidebar-about-link:hover {
|
||||
background: var(--color-bg-hover);
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.sidebar-about-link:hover .sidebar-about-icon {
|
||||
color: #ffd66b;
|
||||
filter: drop-shadow(0 0 6px rgba(246, 196, 83, 0.24));
|
||||
}
|
||||
|
||||
.sidebar-about-link.active {
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.sidebar-note {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
margin-top: auto;
|
||||
padding: var(--space-4);
|
||||
overflow: hidden;
|
||||
border: 1px solid transparent;
|
||||
|
|
|
|||
|
|
@ -320,33 +320,8 @@
|
|||
border-color: transparent;
|
||||
background: rgba(16, 20, 38, 0.42);
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
|
||||
.module::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background: rgba(165, 180, 252, 0.14);
|
||||
@include mixins.border-mask;
|
||||
pointer-events: none;
|
||||
transition: background var(--duration-fast) var(--ease-standard);
|
||||
}
|
||||
|
||||
.module::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
padding: 1px;
|
||||
border-radius: inherit;
|
||||
background:
|
||||
radial-gradient(circle at calc(100% - var(--radius-lg)) calc(100% - var(--radius-lg)), rgba(246, 196, 83, 0.52) 0 18px, transparent 27px),
|
||||
linear-gradient(90deg, transparent 0 30%, rgba(246, 196, 83, 0.08) 42%, rgba(246, 196, 83, 0.38) 72%, rgba(246, 196, 83, 0.52) 100%),
|
||||
linear-gradient(180deg, transparent 0 30%, rgba(246, 196, 83, 0.08) 42%, rgba(246, 196, 83, 0.38) 72%, rgba(246, 196, 83, 0.52) 100%);
|
||||
@include mixins.border-mask;
|
||||
pointer-events: none;
|
||||
transition: background var(--duration-fast) var(--ease-standard);
|
||||
@include mixins.gold-panel-frame(true);
|
||||
}
|
||||
|
||||
.module > * {
|
||||
|
|
@ -554,6 +529,16 @@
|
|||
-webkit-mask-image: url("/static/icons/link.svg");
|
||||
}
|
||||
|
||||
.module-icon-toolbox {
|
||||
mask-image: url("/static/icons/toolbox.svg");
|
||||
-webkit-mask-image: url("/static/icons/toolbox.svg");
|
||||
}
|
||||
|
||||
.module-icon-export {
|
||||
mask-image: url("/static/icons/export.svg");
|
||||
-webkit-mask-image: url("/static/icons/export.svg");
|
||||
}
|
||||
|
||||
.module-icon-abacus {
|
||||
mask-image: url("/static/icons/abacus.svg");
|
||||
-webkit-mask-image: url("/static/icons/abacus.svg");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue