Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhanced the CSS of NewsShelter Section #630

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 114 additions & 1 deletion css/airspace.css
Original file line number Diff line number Diff line change
Expand Up @@ -2787,4 +2787,117 @@ table, th, td {

.count{
/* Nothing related to styling needed to be described for this */
}
}

/* General styles */
#call-to-action {
display: flex;
justify-content: center;
align-items: center;
background-color: #3b3b4f; /* Matching the dark theme */
padding: 50px 20px;
color: white;
text-align: center;
}

#call-to-action h2 {
font-size: 3rem;
font-weight: 700;
margin-bottom: 15px;
text-transform: uppercase;
letter-spacing: 2px;
text-align: center;
}

#call-to-action p {
font-size: 1.2rem;
margin-bottom: 0px;
line-height: 1.6;
text-align: center;
}

/* Form container for better structure */
.embeddable-buttondown-form {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 15px;
max-width: 600px;
margin: 0 auto;
}

.embeddable-buttondown-form label {
font-size: 1rem;
font-weight: 600;
color: #ccc;
text-align: center;
}

.embeddable-buttondown-form input[type="email"] {
border: 2px solid #ccc;
border-radius: 30px;
padding: 12px 20px;
font-style: bold;
font-size: 1rem; /* Adjusted font size for better readability */
width: 100%;
max-width: 350px;
transition: all 0.3s ease-in-out;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
color: #333;
}

.embeddable-buttondown-form input[type="email"]:focus {
border-color: #ffcc00;
box-shadow: 0 0 10px #ffcc00(255, 208, 0, 0.7);
outline: none;
}

.embeddable-buttondown-form input[type="submit"] {
background: linear-gradient(90deg, #ffcc00, #ffdb4d);
border: none;
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);
}

.embeddable-buttondown-form input[type="submit"]:hover {
background: linear-gradient(90deg, #ffdb4d, #ffcc00);
box-shadow: 0 5px 20px rgba(255, 204, 0, 0.5);
transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
.embeddable-buttondown-form input[type="email"],
.embeddable-buttondown-form input[type="submit"] {
width: auto;
}

.embeddable-buttondown-form {
flex-direction: column;
gap: 20px;
}
}

/* Additional enhancements */
#call-to-action h2 {
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.embeddable-buttondown-form input[type="email"]::placeholder {
color: #aaa;
font-style: italic;
font-size: 0.9rem; /* Adjusted placeholder font size */
}

.embeddable-buttondown-form input[type="submit"]:active {
transform: translateY(1px);
box-shadow: 0 2px 5px rgba(255, 204, 0, 0.4);
}
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ <h2 >EXCITED?</h2>
<p>The simplest way to get involved is to join our newsletter.</p>
<br>
<form action="https://buttondown.com/api/emails/embed-subscribe/sugarlabs" method="post" class="embeddable-buttondown-form">
<p>Sign up for our mailing list to receive regular
news and updates from Sugar Labs.</p>
<label for="email">Email</label>
<p>Sign up for our newsletter to stay updated with the latest news and updates from Sugar Labs. Be the first to know what's happening!</p>
<label for="email">Enter Your Email Address</label>
<input type="email" name="email" placeholder="[email protected]" />
<input type="hidden" value="1" name="embed" />
<input type="submit" value="Subscribe" />
Expand Down