Skip to content

Commit e3e3132

Browse files
committed
Add Discord login card on login page linking to discord.zero-host.org
1 parent 469967d commit e3e3132

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

public/css/style.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,34 @@ cap-widget {
641641
font-weight: 600;
642642
}
643643

644+
.discord-login-card {
645+
display: flex;
646+
align-items: center;
647+
justify-content: center;
648+
gap: 10px;
649+
margin-top: 16px;
650+
padding: 12px 16px;
651+
background: var(--bg-primary);
652+
border: 1px solid var(--border);
653+
border-radius: var(--radius-sm);
654+
color: var(--text-primary);
655+
font-size: 0.9rem;
656+
font-weight: 500;
657+
text-decoration: none;
658+
transition: all var(--transition);
659+
cursor: pointer;
660+
}
661+
662+
.discord-login-card:hover {
663+
border-color: #5865F2;
664+
background: rgba(88, 101, 242, 0.08);
665+
color: #5865F2;
666+
}
667+
668+
.discord-login-card svg {
669+
flex-shrink: 0;
670+
}
671+
644672
.auth-error {
645673
background: rgba(239, 68, 68, 0.1);
646674
border: 1px solid rgba(239, 68, 68, 0.3);

public/js/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ function renderLoginPage() {
663663
<div class="auth-footer">
664664
Don't have an account? <a href="/signup" id="go-register">Create one</a>
665665
</div>
666+
667+
<a href="https://discord.zero-host.org" target="_blank" class="discord-login-card">
668+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 11.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"/><path d="M13 11.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"/><path d="M18 3a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12z"/><path d="M7 18v-1a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1"/><path d="M6 16v1a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3v-1"/><path d="M9 13h6"/><circle cx="12" cy="10" r="1"/></svg>
669+
<span>Sign in with Discord</span>
670+
</a>
666671
</div>
667672
</div>
668673
</div>

0 commit comments

Comments
 (0)