diff --git a/css/custom.css b/css/custom.css index 84024010..36f9b60c 100644 --- a/css/custom.css +++ b/css/custom.css @@ -428,3 +428,133 @@ ul { margin-top: 1rem; } +/* Styles for Newsletter Section */ + +#cta-section { + display: flex; + justify-content: center; + align-items: center; + background-color: #3b3b4f; /* Matching the dark theme */ + padding: 50px 20px; + color: white; + text-align: center; +} + +#cta-section .cta-heading { + font-size: 3rem; + font-weight: 700; + margin-bottom: 15px; + text-transform: uppercase; + letter-spacing: 2px; + text-align: center; +} + +#cta-section .cta-description { + font-size: 1.2rem; + margin-bottom: 0px; + line-height: 1.6; + text-align: center; +} + +/* Ensuring proper layout for label and input */ +.cta-d-flex { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + width: 100%; +} + +.cta-d-flex label { + text-align: center; + margin-bottom: 0; + margin-top: 0; + padding: 0; + color: rgb(171, 169, 169); + font-weight: bold; +} + +.cta-form-control { + border-radius: 30px; + padding: 12px 20px; + margin: 0px; + border: 2px solid #ccc; + font-size: 1rem; + transition: all 0.3s ease-in-out; + width: 100%; + max-width: 350px; + margin-bottom: 20px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} + +.cta-form-control:focus { + border-color: #ffcc00; + box-shadow: 0 0 10px rgba(255, 204, 0, 0.7); + outline: none; +} + +.cta-btn-primary { + background: linear-gradient(90deg, #ffcc00, #ffdb4d); + border: none; + margin-top: 0px; + margin-bottom: 0px; + border-radius: 30px; + padding: 12px 25px; + font-size: 1.1rem; + color: #3b3b4f; + font-weight: 700; + cursor: pointer; + transition: all 0.3s ease-in-out; + text-transform: uppercase; + box-shadow: 0 2px 10px rgba(255, 204, 0, 0.3); +} + +.cta-btn-primary:hover { + background: linear-gradient(90deg, #ffdb4d, #ffcc00); + box-shadow: 0 5px 20px rgba(255, 204, 0, 0.5); + transform: translateY(-2px); +} + +.cta-btn-primary:active { + transform: translateY(1px); + box-shadow: 0 2px 5px rgba(255, 204, 0, 0.4); +} + +/* Responsive design for Newsletter Section */ +@media (max-width: 768px) { + .cta-buttondown-form input[type="email"], + .cta-buttondown-form input[type="submit"] { + width: auto; + } + + /* Adjust form layout for smaller screens */ + .cta-buttondown-form { + flex-direction: column; + gap: 20px; + } + + .cta-form-control { + max-width: 90%; + } + + .cta-btn-primary { + width: auto; + max-width: 90%; + } +} + +/* Additional enhancements */ +#cta-section .cta-heading { + text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Added text shadow for better contrast and visibility */ +} + +.cta-buttondown-form input[type="email"]::placeholder { + color: #aaa; /* Lightens placeholder text */ + font-style: italic; /* Makes the placeholder text italic for better visibility */ + font-size: 0.9rem; /* Adjusted font size for better readability */ +} + +.cta-buttondown-form input[type="submit"]:active { + transform: translateY(1px); /* Makes the button appear pressed when clicked */ + box-shadow: 0 2px 5px rgba(255, 204, 0, 0.4); /* Adds a subtle shadow effect when the button is active */ +} diff --git a/index.html b/index.html index 62c76f98..b402f870 100755 --- a/index.html +++ b/index.html @@ -93,33 +93,33 @@

Challenging and fun: It's hard fun!

-
-
-
-
-
-
-

EXCITED?

-

The simplest way to get involved is to join our newsletter.

-
-
-

Sign up for our mailing list to receive regular - news and updates from Sugar Labs.

-
- - - +
+
+
+
+
+
+

EXCITED?

+

The simplest way to get involved is to join our newsletter.

+
+ + +
+ + + +
+ + +
+
- - -
-
-
+