Skip to content

Commit a0a8b21

Browse files
committed
added mobile support and theme
1 parent c184dda commit a0a8b21

File tree

7 files changed

+624
-53
lines changed

7 files changed

+624
-53
lines changed

docs/website/css/intro.css

Lines changed: 142 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,42 @@ footer {
646646
line-height: 1.5;
647647
}
648648

649+
/* Light Theme Adjustments for Intro */
650+
[data-theme="light"] .hero {
651+
background: linear-gradient(135deg, #f6f8fa 0%, #ffffff 50%, #f0f3f6 100%);
652+
}
653+
654+
[data-theme="light"] .hero h1 {
655+
background: linear-gradient(135deg, #1f2328 0%, #0969da 100%);
656+
-webkit-background-clip: text;
657+
-webkit-text-fill-color: transparent;
658+
background-clip: text;
659+
}
660+
661+
[data-theme="light"] .badge-item {
662+
background: rgba(9, 105, 218, 0.1);
663+
border-color: rgba(9, 105, 218, 0.3);
664+
}
665+
666+
[data-theme="light"] .code-comment {
667+
color: #6a737d;
668+
}
669+
670+
[data-theme="light"] .code-output {
671+
background: #f6f8fa;
672+
}
673+
674+
[data-theme="light"] .ds-diagram pre,
675+
[data-theme="light"] .step-content code {
676+
color: var(--accent-green);
677+
}
678+
649679
/* Responsive */
650680
@media (max-width: 768px) {
681+
.intro-content {
682+
padding-top: 60px;
683+
}
684+
651685
.hero {
652686
padding: 40px 24px;
653687
}
@@ -657,11 +691,19 @@ footer {
657691
}
658692

659693
.hero h1 {
660-
font-size: 2rem;
694+
font-size: 1.8rem;
695+
}
696+
697+
.hero-subtitle {
698+
font-size: 1rem;
661699
}
662700

663701
.intro-section {
664-
padding: 40px 24px;
702+
padding: 40px 16px;
703+
}
704+
705+
.intro-section h2 {
706+
font-size: 1.5rem;
665707
}
666708

667709
.layer-components {
@@ -672,4 +714,102 @@ footer {
672714
flex-direction: column;
673715
align-items: center;
674716
}
717+
718+
.hero-actions {
719+
flex-direction: column;
720+
width: 100%;
721+
}
722+
723+
.hero-actions .btn {
724+
width: 100%;
725+
text-align: center;
726+
}
727+
728+
.overview-features {
729+
grid-template-columns: 1fr;
730+
}
731+
732+
.encryption-grid {
733+
grid-template-columns: 1fr;
734+
}
735+
736+
.ds-grid {
737+
grid-template-columns: 1fr;
738+
}
739+
740+
.getting-started-grid {
741+
grid-template-columns: 1fr;
742+
}
743+
744+
.next-links {
745+
grid-template-columns: 1fr;
746+
}
747+
748+
.comparison-table th,
749+
.comparison-table td {
750+
padding: 12px 8px;
751+
font-size: 0.85rem;
752+
}
753+
754+
.quickstart-code .code-block.large {
755+
padding: 16px;
756+
max-height: 400px;
757+
}
758+
759+
.quickstart-code .code-block.large pre {
760+
font-size: 0.7rem;
761+
}
762+
763+
.code-header {
764+
flex-direction: column;
765+
gap: 8px;
766+
text-align: center;
767+
}
768+
769+
.flow-step {
770+
flex-direction: column;
771+
align-items: center;
772+
text-align: center;
773+
}
774+
775+
.step-content code {
776+
font-size: 0.75rem;
777+
}
778+
779+
footer {
780+
padding: 24px 16px;
781+
}
782+
}
783+
784+
@media (max-width: 480px) {
785+
.hero h1 {
786+
font-size: 1.5rem;
787+
}
788+
789+
.intro-section {
790+
padding: 32px 12px;
791+
}
792+
793+
.feature-card,
794+
.encryption-card,
795+
.ds-card,
796+
.gs-card {
797+
padding: 16px;
798+
}
799+
800+
.arch-layer {
801+
padding: 12px;
802+
}
803+
804+
.component {
805+
padding: 8px;
806+
}
807+
808+
.component strong {
809+
font-size: 0.8rem;
810+
}
811+
812+
.component span {
813+
font-size: 0.65rem;
814+
}
675815
}

0 commit comments

Comments
 (0)