mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-23 00:20:40 +07:00
fix(hero): add gap between mobile download buttons
- Add flex layout with 16px gap to hero-download-mobile and download-resume-mobile - Remove inline style, use CSS only
This commit is contained in:
1 parent
20dfbe9125
commit
e60179c8eb
5 files changed
+12
-4
No files matched your search
@@ -23,3 +23,4 @@ dist-ssr
|
|||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
/.junie/
|
/.junie/
|
||||||
|
*.pdf
|
||||||
Binary file not shown.
Binary file not shown.
+9
-2
@@ -448,6 +448,7 @@
|
|||||||
}
|
}
|
||||||
.hero-cta {
|
.hero-cta {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-cta .btn {
|
.hero-cta .btn {
|
||||||
@@ -575,9 +576,15 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-resume-mobile,
|
.download-resume-mobile {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
.hero-download-mobile {
|
.hero-download-mobile {
|
||||||
display: block;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ function HeroDownloadButton({ lang }: { lang: Language }) {
|
|||||||
href={resumeUrlFor(lang)}
|
href={resumeUrlFor(lang)}
|
||||||
download
|
download
|
||||||
target="_blank"
|
target="_blank"
|
||||||
className="btn btn-secondary hero-download-mobile-btn"
|
className="btn btn-primary hero-download-mobile-btn"
|
||||||
>
|
>
|
||||||
Download Resume ({langLabels[lang]})
|
Download Resume ({langLabels[lang]})
|
||||||
</a>
|
</a>
|
||||||
@@ -155,7 +155,7 @@ export function Hero() {
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button href="/contact" variant="secondary">
|
<Button href="/contact" variant="primary">
|
||||||
Contact Me
|
Contact Me
|
||||||
</Button>
|
</Button>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|||||||
Reference in new issue
Block a user