Spaces:
Running
Running
File size: 1,826 Bytes
3836f4d a5e446d 3836f4d a5e446d 3836f4d a5e446d 3836f4d a5e446d 3836f4d a5e446d 3836f4d a5e446d 3836f4d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | ```css
/* Mobile-first approach */
body {
font-size: 14px;
line-height: 1.5;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
.main-heading {
font-size: 24px;
margin-bottom: 1rem;
}
h2 {
font-size: 22px;
}
h3 {
font-size: 20px;
}
h4 {
font-size: 18px;
}
header {
padding: 1rem;
text-align: center;
background-color: #f8f9fa;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
justify-content: center;
gap: 1rem;
}
nav a {
text-decoration: none;
color: #333;
transition: color 300ms ease;
}
nav a:hover {
color: #007bff;
}
.hero {
text-align: center;
padding: 2rem 1rem;
}
.hero-image {
width: 100%;
height: auto;
max-width: 800px;
margin: 1rem auto;
display: block;
}
.features {
padding: 1rem;
display: grid;
gap: 2rem;
}
.feature {
padding: 1rem;
border-radius: 8px;
background-color: #f8f9fa;
}
.feature-icon {
font-size: 2rem;
margin-bottom: 1rem;
color: #007bff;
}
footer {
padding: 2rem 1rem;
text-align: center;
background-color: #f8f9fa;
}
.social {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
}
.social-icon {
font-size: 1.5rem;
}
.social-link {
color: #333;
transition: color 300ms ease;
}
.social-link:hover {
color: #007bff;
}
/* Tablet view */
@media (min-width: 768px) {
body {
font-size: 16px;
}
.features {
grid-template-columns: repeat(2, 1fr);
}
}
/* Desktop view */
@media (min-width: 1024px) {
.main-heading {
font-size: 28px;
}
.features {
grid-template-columns: repeat(3, 1fr);
}
}
/* Large desktop view */
@media (min-width: 1200px) {
body {
font-size: 18px;
}
}
``` |