From 7d5a678008881fd4dea7595fea2bcaa207f12ccf Mon Sep 17 00:00:00 2001 From: seccodesmith Date: Thu, 22 May 2025 15:54:04 +0200 Subject: [PATCH] feat: enhance responsive styles for title, subtitle, and buttons in Home component --- src/assets/styles/Home.module.scss | 43 ++++++++++++++++++++++++++++++ src/assets/styles/index.scss | 1 - 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/src/assets/styles/Home.module.scss b/src/assets/styles/Home.module.scss index 1bcdaca..38a6e83 100644 --- a/src/assets/styles/Home.module.scss +++ b/src/assets/styles/Home.module.scss @@ -184,4 +184,47 @@ transform: translateY(-100px) translateX(var(--x)); opacity: 0; } +} + +// Style for phone + +@media (max-width: 992px) { + .title-main { + font-size: 3rem; + } +} + +@media (max-width: 768px) { + .hero { + height: 100vh; + padding-top: 50px; + } + + .titleMain { + font-size: 2rem; + } + + .subtitle { + font-size: 1.4rem; + } + + .btnPrimary { + padding: 0.5rem 1.5rem; + font-size: 1.2rem; + } +} + +@media (max-width: 576px) { + .title-main { + font-size: 2rem; + } + + .subtitle { + font-size: 1rem; + } + + .btn-primary { + padding: 0.6rem 1.5rem; + font-size: 0.9rem; + } } \ No newline at end of file diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 593092d..aa62ba6 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -103,7 +103,6 @@ body::before { background-color: $primary-dark; padding: 3rem 0; border-top: 1px solid rgba(255, 100, 0, 0.2); - margin-top: 5rem; } .social-links { -- 2.52.0