Skip to content

Instantly share code, notes, and snippets.

@PabloSergi
Created March 19, 2023 15:05
Show Gist options
  • Save PabloSergi/6bd0bddfab42d3099a3f20e6163ba466 to your computer and use it in GitHub Desktop.
Save PabloSergi/6bd0bddfab42d3099a3f20e6163ba466 to your computer and use it in GitHub Desktop.
css
/* Floating menu */
.floating-menu {
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #fff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
z-index: 100;
}
.floating-menu ul {
display: flex;
justify-content: space-between;
list-style: none;
padding: 0;
margin: 0;
}
.floating-menu li {
margin: 0 10px;
}
.floating-menu a {
display: block;
padding: 20px;
color: #333;
text-decoration: none;
transition: all 0.2s ease-in-out;
}
.floating-menu a:hover {
background-color: #f44336;
color: #fff;
}
/* Hero section */
.hero {
background-color: #f7f3ea;
text-align: center;
padding: 150px 0;
}
.hero-container {
max-width: 960px;
margin: 0 auto;
}
.hero-title {
font-size: 60px;
margin-bottom: 20px;
color: #333;
}
.hero-subtitle {
font-size: 24px;
margin-bottom: 50px;
color: #666;
}
.hero-container img {
max-width: 200px;
margin: 0 auto;
}
/* About section */
.about {
background-color: #fff;
padding: 100px 0;
}
.about-container {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
.about h2 {
font-size: 36px;
margin-bottom: 50px;
color: #333;
}
.about p {
font-size: 18px;
margin-bottom: 30px;
color: #666;
}
/* Reviews section */
.reviews {
background-color: #f7f3ea;
padding: 100px 0;
}
.reviews-container {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
.reviews h2 {
font-size: 36px;
margin-bottom: 50px;
color: #333;
}
.review {
max-width: 500px;
margin: 0 auto;
text-align: left;
padding: 30px;
background-color: #fff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 50px;
}
.review p {
font-size: 18px;
margin-bottom: 20px;
color: #666;
}
.review-author {
font-size: 16px;
color: #333;
}
/* Pricing section */
.pricing {
background-color: #fff;
padding: 100px 0;
}
.pricing-container {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
.pricing h2 {
font-size: 36px;
margin-bottom: 50px;
color: #333;
}
.pricing-package {
max-width: 300px;
margin: 0 30px;
display: inline-block;
text-align: left;
}
.pricing-package h3 {
font-size: 24px;
color: #333;
margin-bottom: 30px;
}
.pricing-package p.price {
font-size: 36px;
font-weight: bold;
color: #f44336;
margin-bottom: 20px;
}
.pricing-package ul {
list-style: none;
padding: 0;
margin: 0;
}
.pricing-package li {
font-size: 18px;
margin-bottom: 10px;
color: #666;
}
/* Team section */
.team {
background-color: #f7f3ea;
padding: 100px 0;
}
.team-container {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
.team h2 {
font-size: 36px;
margin-bottom: 50px;
color: #333;
}
.team-member {
max-width: 300px;
margin: 0 30px;
display: inline-block;
text-align: left;
}
.team-member img {
max-width: 200px;
margin-bottom: 20px;
border-radius: 50%;
}
.team-member h3 {
font-size: 24px;
margin-bottom: 10px;
color: #333;
}
.team-member p {
font-size: 18px;
margin-bottom: 20px;
color: #666;
}
/* Contact section */
.contact {
background-color: #fff;
padding: 100px 0;
}
.contact-container {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
.contact h2 {
font-size: 36px;
margin-bottom: 50px;
color: #333;
}
.contact p {
font-size: 18px;
margin-bottom: 30px;
color: #666;
}
.contact label {
display: block;
font-size: 18px;
margin-bottom: 10px;
color: #333;
text-align: left;
}
.contact input,
.contact textarea {
width: 100%;
padding: 10px;
margin-bottom: 20px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 5px;
}
.contact button[type="submit"] {
background-color: #f44336;
color: #fff;
border: none;
padding: 10px 30px;
font-size: 18px;
border-radius: 5px;
cursor: pointer;
}
.contact button[type="submit"]:hover {
background-color: #fff;
color: #f44336;
border: 1px solid #f44336;
}
/* FAQ section */
.faq {
background-color: #f7f3ea;
padding: 100px 0;
}
.faq-container {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
.faq h2 {
font-size: 36px;
margin-bottom: 50px;
color: #333;
}
.question {
max-width: 500px;
margin: 0 auto;
text-align: left;
padding: 30px;
background-color: #fff;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 50px;
}
.question h3 {
font-size: 24px;
color: #333;
margin-bottom: 20px;
}
.question p {
font-size: 18px;
margin-bottom: 20px;
color: #666;
}
.answer {
font-size: 18px;
color: #666;
}
.answer:hover {
color: #f44336;
cursor: pointer;
text-decoration: underline;
}
.answer.hidden {
display: none;
}
/* Footer section */
.footer {
background-color: #333;
color: #fff;
padding: 50px 0;
}
.footer-container {
max-width: 960px;
margin: 0 auto;
text-align: center;
}
.footer ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 30px;
}
.footer li {
margin: 0 10px;
}
.footer a {
display: block;
padding: 10px;
color: #fff;
text-decoration: none;
transition: all 0.2s ease-in-out;
}
.footer a:hover {
background-color: #f44336;
color: #fff;
border-radius: 5px;
}
.footer p {
font-size: 18px;
margin-bottom: 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment