-
-
Notifications
You must be signed in to change notification settings - Fork 152
fix(hero):improve mobile spacing for hero section #300
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -148,4 +148,23 @@ | |
| .hero-buttons { | ||
| margin: 0 auto; | ||
| } | ||
| } | ||
| /* moblie spacing improvements for hero section */ | ||
| @media (max-width: 768px) { | ||
| .hero-content { | ||
| padding: 1.5rem 1rem; | ||
| } | ||
|
|
||
| .hero-content h1 { | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| .hero-content p { | ||
| margin-bottom: 1rem; | ||
| } | ||
|
|
||
| .hero-buttons { | ||
| margin-top: 1rem; | ||
| gap:0.75rem; | ||
| } | ||
|
Comment on lines
+152
to
+169
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Duplicate Adding a second All new declarations should be merged into the existing ♻️ Proposed fix — merge into the existing media query `@media` (max-width: 768px) {
.hero-container {
flex-direction: column;
text-align: center;
}
.hero-content {
- padding-left: 0;
+ padding: 1.5rem 1rem;
}
+ .hero-content h1 {
+ margin-bottom: 1rem;
+ }
+
+ .hero-content p {
+ margin-bottom: 1rem;
+ }
+
.hero-buttons {
- margin: 0 auto;
+ margin: 1rem auto 0;
+ gap: 0.75rem;
}
}
-/* moblie spacing improvements for hero section */
-@media (max-width: 768px) {
- .hero-content {
- padding: 1.5rem 1rem;
- }
-
- .hero-content h1 {
- margin-bottom: 1rem;
- }
-
- .hero-content p {
- margin-bottom: 1rem;
- }
-
- .hero-buttons {
- margin-top: 1rem;
- gap: 0.75rem;
- }
-}🤖 Prompt for AI Agents |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in comment: "moblie" → "mobile".
📝 Committable suggestion
🤖 Prompt for AI Agents