style: Style login/signup page to use light theme and accent colors
This commit is contained in:
1 parent
63b611ffde
commit
1817dd0f54
2 files changed
+72
-9
No files matched your search
+5
-9
@@ -9,7 +9,7 @@
|
|||||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||||
<title>Login / Signup - Behind the Desk</title>
|
<title>Login / Signup - Behind the Desk</title>
|
||||||
</head>
|
</head>
|
||||||
<body style="padding-top: 0;"> <!-- Remove navbar padding override -->
|
<body class="login-signup-page"> <!-- Add class for specific styling -->
|
||||||
<!-- Navbar Removed -->
|
<!-- Navbar Removed -->
|
||||||
|
|
||||||
<main class="section main-content">
|
<main class="section main-content">
|
||||||
@@ -91,15 +91,11 @@
|
|||||||
</div> <!-- End columns -->
|
</div> <!-- End columns -->
|
||||||
|
|
||||||
<!-- Shared reCAPTCHA -->
|
<!-- Shared reCAPTCHA -->
|
||||||
<div class="columns is-centered">
|
<div class="recaptcha-container"> <!-- Use dedicated container for centering -->
|
||||||
<div class="column is-half">
|
<div> <!-- Wrapper div for reCAPTCHA and help text -->
|
||||||
<div class="field mt-4">
|
<div class="g-recaptcha" data-sitekey="YOUR_RECAPTCHA_SITE_KEY"></div>
|
||||||
<div class="control has-text-centered"> <!-- Center the reCAPTCHA -->
|
|
||||||
<div class="g-recaptcha" data-sitekey="YOUR_RECAPTCHA_SITE_KEY" style="display: inline-block;"></div>
|
|
||||||
<!-- IMPORTANT: Replace YOUR_RECAPTCHA_SITE_KEY with your actual site key -->
|
<!-- IMPORTANT: Replace YOUR_RECAPTCHA_SITE_KEY with your actual site key -->
|
||||||
</div>
|
<p class="help is-danger is-hidden" id="recaptcha-error">Please complete the reCAPTCHA.</p>
|
||||||
<p class="help is-danger is-hidden has-text-centered" id="recaptcha-error">Please complete the reCAPTCHA.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -269,3 +269,70 @@ body {
|
|||||||
.date-link:hover {
|
.date-link:hover {
|
||||||
text-decoration: underline;
|
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;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user