Skip to content

Commit

Permalink
dark theme fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Dec 10, 2024
1 parent b823e82 commit 39d77c7
Show file tree
Hide file tree
Showing 23 changed files with 806 additions and 268 deletions.
8 changes: 4 additions & 4 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--primary-hover: #0066cc;
--primary-light: #e6f3ff;
--surface: #ffffff;
--background: #f8fafc;
--background: #eef2f6;
--background-light: #ffffff;
--text: #000000;
--text-secondary: #536471;
Expand Down Expand Up @@ -55,8 +55,8 @@
--button-transition: 200ms ease-in-out;
}

/* Dark Theme (Dim) */
[data-theme="dim"] {
/* Dark Theme */
[data-theme="dark"] {
--surface: #15202b;
--background: #1e2732;
--background-light: #1a2634;
Expand Down Expand Up @@ -154,7 +154,7 @@ a:hover {
/* System Theme Detection */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
/* Default to dim theme when system prefers dark */
/* Default to dark theme when system prefers dark */
--surface: #15202b;
--background: #1e2732;
--background-light: #1a2634;
Expand Down
2 changes: 2 additions & 0 deletions css/components/auth.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
.bsky-handle-input {
background: var(--background);
padding-left: 36px;
border: 1px solid rgba(0, 122, 255, 0.15);
transition: border-color 0.2s ease-in-out;
}

/* Error States */
Expand Down
14 changes: 0 additions & 14 deletions css/components/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
padding: 24px;
border: 1px solid var(--border);
border-radius: 20px;
transition: all 0.2s ease-in-out;
display: flex;
align-items: flex-start;
gap: 16px;
Expand All @@ -33,7 +32,6 @@
height: 48px;
background: var(--background);
border-radius: 14px;
transition: transform 0.2s ease;
}

.landing-feature-card .feature-text {
Expand All @@ -59,18 +57,6 @@
margin: 0;
}

/* Landing Feature Card Hover Effects */
.landing-feature-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
border-color: var(--primary);
background: linear-gradient(to bottom right, var(--surface), var(--background));
}

.landing-feature-card:hover .feature-icon {
transform: scale(1.1);
}

/* Hover state for other cards */
.feature-card:hover,
.context-card:hover {
Expand Down
2 changes: 1 addition & 1 deletion css/components/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

.theme-toggle .moon-icon {
margin-left: auto;
transform: translateX(2px);
transform: translateX(0px);
}

/* Hide emoji in dark mode */
Expand Down
173 changes: 7 additions & 166 deletions css/components/landing.css
Original file line number Diff line number Diff line change
@@ -1,166 +1,7 @@
/* Split Layout for Landing Page */
.split-layout {
display: flex;
height: 100vh;
background: var(--surface);
overflow: hidden;
}

/* Branding Section (Left) */
.branding-section {
flex: 0 0 var(--branding-width);
background: var(--background);
display: flex;
align-items: center;
justify-content: center;
padding: 32px;
}

.branding-content {
text-align: center;
max-width: 420px;
}

.logo {
margin-bottom: 24px;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo img {
width: 245px; /* Half of original 490px width */
height: auto;
display: block;
margin: 0 auto;
}

.branding-content h1 {
font-size: 48px;
font-weight: 800;
color: var(--text);
margin-bottom: 16px;
letter-spacing: -0.02em;
}

.tagline {
font-size: 20px;
line-height: 1.4;
color: var(--text-secondary);
margin: 0 auto;
max-width: 360px;
}

/* Content Section (Right) */
.content-section {
flex: 0 0 var(--content-width);
background: var(--surface);
display: flex;
flex-direction: column;
height: 100vh;
}

.content-wrapper {
max-width: 720px;
margin: 0 auto;
padding: 32px;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
gap: 32px;
}

/* Landing Content */
.landing-content {
max-width: 800px;
margin: 0 auto;
padding: var(--spacing-xl);
text-align: center;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
gap: var(--spacing-xl);
}

.landing-header h1 {
font-size: 2.5rem;
margin-bottom: var(--spacing-md);
}

.feature-card h3 {
color: var(--primary);
margin-bottom: var(--spacing-sm);
}

/* Responsive Layout */
@media (max-width: 1200px) {
.content-wrapper {
padding: 24px;
}
}

@media (max-width: 1024px) {
.split-layout {
flex-direction: column;
height: auto;
min-height: 100vh;
}

.branding-section,
.content-section {
flex: 0 0 auto;
width: 100%;
height: auto;
}

.branding-section {
padding: 48px 24px;
}

.content-wrapper {
padding: 32px 24px;
gap: 32px;
}

.branding-content {
max-width: 100%;
}

.tagline {
max-width: 480px;
}
}

@media (max-width: 768px) {
.landing-content {
padding: var(--spacing-md);
}

.logo img {
width: 200px;
}
}

@media (max-width: 480px) {
.branding-section {
padding: 32px 20px;
}

.content-wrapper {
padding: 24px 20px;
}

.logo img {
width: 160px;
}

.branding-content h1 {
font-size: 36px;
margin-bottom: 12px;
}

.tagline {
font-size: 18px;
}
}
/* Landing Page Styles - Split into modular files */
@import 'landing/layout.landing.css';
@import 'landing/branding.landing.css';
@import 'landing/features.landing.css';
@import 'landing/auth.landing.css';
@import 'landing/theme-toggle.landing.css';
@import 'landing/responsive.landing.css';
35 changes: 35 additions & 0 deletions css/components/landing/auth.landing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/* Auth Section */
.bsky-connect {
padding: 32px;
background: var(--background);
border-radius: 12px;
margin-bottom: 96px;
position: relative;
}

.bsky-connect:after {
content: "";
position: absolute;
bottom: -48px;
left: 50%;
transform: translateX(-50%);
width: 64px;
height: 4px;
background: var(--primary);
border-radius: 2px;
opacity: 0.3;
}

.sign-in-title {
font-size: 24px;
font-weight: 700;
margin-bottom: 24px;
color: var(--text);
}

.bsky-auth-message {
color: var(--text-secondary);
margin-bottom: 16px;
font-size: 16px;
line-height: 1.5;
}
77 changes: 77 additions & 0 deletions css/components/landing/branding.landing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* Branding Section (Left) */
.branding-section {
flex: 0 0 var(--branding-width);
background: var(--background);
position: sticky;
top: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 32px;
}

.branding-content {
text-align: center;
max-width: 420px;
}

.logo {
margin-bottom: 24px;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo img {
width: 245px;
height: auto;
display: block;
margin: 0 auto;
}

.branding-content h1 {
font-size: 48px;
font-weight: 800;
color: var(--text);
margin-bottom: 16px;
letter-spacing: -0.02em;
}

.tagline {
font-size: 20px;
line-height: 1.4;
color: var(--text-secondary);
margin: 0 auto;
max-width: 360px;
}

/* Built by Section */
.built-by-section {
text-align: center;
margin-top: 64px;
padding-top: 32px;
border-top: 1px solid var(--border);
}

.built-by-content {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
}

.built-by-content p {
font-size: 16px;
line-height: 1.5;
color: var(--text-secondary);
margin: 0;
}

.built-by-content a {
color: var(--primary);
text-decoration: none;
transition: color 0.2s ease;
}

.built-by-content a:hover {
color: var(--primary-hover);
}
Loading

0 comments on commit 39d77c7

Please sign in to comment.