style: Style login/signup page to use light theme and accent colors

This commit is contained in:
Your Name (aider) committed 2025-04-27 17:37:53 +08:00
1 parent 63b611ffde
commit 1817dd0f54
2 files changed
+72 -9

No files matched your search

+5 -9
View File
@@ -9,7 +9,7 @@
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<title>Login / Signup - Behind the Desk</title>
</head>
<body style="padding-top: 0;"> <!-- Remove navbar padding override -->
<body class="login-signup-page"> <!-- Add class for specific styling -->
<!-- Navbar Removed -->
<main class="section main-content">
@@ -91,15 +91,11 @@
</div> <!-- End columns -->
<!-- Shared reCAPTCHA -->
<div class="columns is-centered">
<div class="column is-half">
<div class="field mt-4">
<div class="control has-text-centered"> <!-- Center the reCAPTCHA -->
<div class="g-recaptcha" data-sitekey="YOUR_RECAPTCHA_SITE_KEY" style="display: inline-block;"></div>
<div class="recaptcha-container"> <!-- Use dedicated container for centering -->
<div> <!-- Wrapper div for reCAPTCHA and help text -->
<div class="g-recaptcha" data-sitekey="YOUR_RECAPTCHA_SITE_KEY"></div>
<!-- IMPORTANT: Replace YOUR_RECAPTCHA_SITE_KEY with your actual site key -->
</div>
<p class="help is-danger is-hidden has-text-centered" id="recaptcha-error">Please complete the reCAPTCHA.</p>
</div>
<p class="help is-danger is-hidden" id="recaptcha-error">Please complete the reCAPTCHA.</p>
</div>
</div>
+67
View File
@@ -269,3 +269,70 @@ body {
.date-link:hover {
text-decoration: underline;
}
/* Login/Signup Page Specific Styles */
/* Ensure body padding override is removed if navbar isn't present */
body.login-signup-page {
padding-top: 0; /* Remove navbar padding */
}
/* Style the boxes containing the forms */
.login-signup-page .box {
background-color: #ffffff; /* Keep the standard white box */
border: 1px solid #dbdbdb; /* Default Bulma box border */
box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02); /* Default shadow */
}
/* Style the titles (Login/Sign Up) */
.login-signup-page .title {
color: #38315f; /* Use accent color for titles */
margin-bottom: 1.5rem; /* Add some space below titles */
}
/* Style form labels */
.login-signup-page .label {
color: #363636; /* Default Bulma label color is fine */
font-weight: bold;
}
/* Style form inputs */
.login-signup-page .input {
border-color: #dbdbdb; /* Default border */
}
.login-signup-page .input:focus {
border-color: #38315f; /* Use accent color for focus */
box-shadow: 0 0 0 0.125em rgba(56, 49, 95, 0.25); /* Accent color focus shadow */
}
/* Style buttons */
.login-signup-page .button.is-primary {
background-color: #38315f; /* Use accent color for primary button (Login) */
border-color: transparent;
}
.login-signup-page .button.is-primary:hover {
background-color: #2c264a; /* Darken accent color slightly on hover */
}
.login-signup-page .button.is-link {
background-color: #5a5fcf; /* A slightly lighter purple/blue for Signup */
border-color: transparent;
color: #fff;
}
.login-signup-page .button.is-link:hover {
background-color: #4a4fbf; /* Darken link button slightly on hover */
}
/* Center the reCAPTCHA section */
.recaptcha-container {
display: flex;
justify-content: center;
margin-top: 1.5rem;
}
.recaptcha-container .g-recaptcha {
display: inline-block; /* Ensure reCAPTCHA aligns correctly */
}
.recaptcha-container .help {
text-align: center; /* Center the error message */
width: 100%; /* Ensure it takes full width for centering */
margin-top: 0.5rem;
}