Skip to content

Commit cfd5537

Browse files
committed
Align logout and theme toggle buttons
1 parent 56f86fd commit cfd5537

2 files changed

Lines changed: 43 additions & 5 deletions

File tree

public/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
<body>
2222
<header>
2323
<h1>Pokedex</h1>
24-
<button id="logout-btn" style="position: absolute; right: 80px; top: 1.2rem; padding: 0.3rem 0.8rem; background: #ef4444; color: white; border: none; border-radius: 999px; cursor: pointer; font-family: 'Orbitron', sans-serif; font-size: 0.8rem;">Logout</button>
25-
<div class="theme-toggle" role="presentation">
24+
<div class="header-controls">
25+
<button id="logout-btn">Logout</button>
26+
<div class="theme-toggle" role="presentation">
2627
<input
2728
type="checkbox"
2829
id="theme-toggle"
@@ -54,6 +55,7 @@ <h1>Pokedex</h1>
5455
</span>
5556
</label>
5657
</div>
58+
</div>
5759
</header>
5860
<main class="pokedex-layout">
5961
<section class="sidebar">

public/style.css

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -595,12 +595,48 @@ body.dark-mode .model-3d {
595595
background: #1a1a1a;
596596
}
597597

598-
.theme-toggle {
598+
/* Header Controls Container */
599+
.header-controls {
599600
position: absolute;
600-
top: 0.75rem;
601-
right: 1rem;
601+
top: 50%;
602+
right: 1.5rem;
603+
transform: translateY(-50%);
604+
display: flex;
605+
align-items: center;
606+
gap: 1.5rem;
607+
z-index: 20;
608+
}
609+
610+
#logout-btn {
611+
padding: 0.5rem 1.5rem;
612+
background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
613+
color: white;
614+
border: 1px solid rgba(255, 255, 255, 0.2);
615+
border-radius: 999px;
616+
cursor: pointer;
617+
font-family: 'Orbitron', sans-serif;
618+
font-size: 0.75rem;
619+
font-weight: 700;
620+
letter-spacing: 1px;
621+
text-transform: uppercase;
622+
transition: all 0.3s ease;
623+
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
624+
}
625+
626+
#logout-btn:hover {
627+
background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
628+
transform: translateY(-2px);
629+
box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
630+
}
631+
632+
#logout-btn:active {
633+
transform: translateY(0);
634+
}
635+
636+
.theme-toggle {
602637
display: inline-block;
603638
height: 28px;
639+
position: relative;
604640
}
605641

606642
.toggle-input {

0 commit comments

Comments
 (0)