.join-section {
padding: 4rem 0; // Add padding for spacing
background-color: darken($primary-color, 10%); // Set a contrasting background color
margin: auto;
.join-content {
max-width: 600px; // Limit width for better readability
margin: 0 auto; // Center the content
text-align: center; // Center align text
h2 {
font-size: 2.5rem; // Increase font size for prominence
margin-bottom: 1rem;
color: $background-color; // Ensure it's readable
}
p {
margin-bottom: 1.5rem;
font-size: 1.2rem; // Slightly larger font for emphasis
color: lighten($background-color, 20%); // A lighter shade for contrast
}
.join-form {
display: flex;
flex-direction: column; // Stack inputs vertically
align-items: center; // Center align items
gap: 1rem; // Space between elements
input {
padding: 0.75rem;
border: 2px solid $border-color; // Use a defined border color
border-radius: 5px; // Rounded corners
width: 100%; // Full width
max-width: 400px; // Max width to maintain design
font-size: 1rem; // Keep font size consistent
&::placeholder {
color: darken($border-color, 20%); // Darken placeholder text for visibility
}
&:focus {
outline: none; // Remove outline
border-color: $primary-color; // Highlight border on focus
}
}
.btn-submit {
padding: 0.75rem 1.5rem; // Button padding
font-size: 1.2rem; // Increase button text size
background-color: $primary-color; // Keep consistent with theme
color: white; // White text for contrast
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
&:hover {
background-color: darken($primary-color, 10%); // Darken on hover
}
}
}
}
@include mobile {
.join-content {
padding: 1rem; // Reduce padding on mobile for better fit
h2 {
font-size: 2rem; // Adjust heading size for mobile
}
p {
font-size: 1rem; // Adjust paragraph size for mobile
}
.join-form {
input {
max-width: 90%; // Allow more width on smaller screens
}
}
}
}
@include tablet {
.join-content {
padding: 2rem; // Medium padding on tablets
.join-form {
flex-direction: row; // Change form layout to row on tablets
gap: 1rem;
input {
flex-grow: 1; // Allow input to grow
}
.btn-submit {
flex-shrink: 0; // Prevent button from shrinking
}
}
}
}
}
Below is a responsive and unique design for the footer of your site based on the HTML structure and SCSS framework that you provided. The styles aim to ensure a clean, modern look with considerations for responsiveness.
.site-footer {
background-color: #222; // Dark background for contrast
padding: 2rem 5%;
color: white;
font-size: 14px;
text-align: center;
.footer-content {
display: flex;
flex-direction: column;
align-items: center;
@include mobile {
flex-direction: column; // Column on mobile devices
}
.footer-logo {
margin-bottom: 1.5rem;
img {
max-width: 150px; // Set a max width to the logo
height: auto;
}
}
.footer-links {
ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
list-style: none;
padding: 0;
li {
margin: 0 10px;
a {
text-decoration: none;
color: white;
transition: color 0.3s;
&:hover {
color: $primary-color; // Primary color on hover
}
}
}
}
}
.footer-social {
margin-top: 1.5rem;
.social-icon {
margin: 0 10px;
text-decoration: none;
color: white;
transition: color 0.3s;
&:hover {
color: $primary-color; // Adjust color on hover
}
}
}
}
.footer-bottom {
margin-top: 2rem; // Space above the copyright
p {
margin: 0;
font-size: 12px; // Smaller font for copyright notice
}
}
}
// Responsive adjustments for larger screens
@include tablet {
.site-footer {
.footer-content {
flex-direction: row; // Row layout on tablets and larger
justify-content: space-between;
align-items: center;
.footer-links {
flex: 1;
margin: 0 20px; // Add spacing between links and logo
}
.footer-social {
flex: 1;
justify-content: center; // Center the social links
}
}
.footer-bottom {
flex: 1;
text-align: right; // Align copyright text to the right
}
}
}
Design Considerations
Container & Layout: The footer container utilizes flexbox to create a responsive layout. This ensures that the logo, links, and social icons are appropriately spaced on all device sizes.
Logo Styling: The logo is kept within a reasonable maximum width to ensure it doesn’t overwhelm the footer. The margin-bottom adds spacing below the logo.
Link Interaction: The links change color on hover, utilizing the primary color. This provides feedback to users when they interact with the footer.
Social Icons: Similar styles to the links but with a slight margin for spacing.
Responsive Design: Specific media queries @include mobile and @include tablet ensure that the layout adapitates well on mobile and tablet devices, allowing for a column format on mobile and row format on larger screens.
This design will ensure that your site footer is clean, responsive, and aesthetically pleasing across different device sizes. Adjust the colors, sizes, and paddings as necessary to match your overall website branding.