Skip to content

Commit 17b2a69

Browse files
committed
Resize footer social links to 12px × 120px
- Set sf-social-link dimensions to 120px width and 12px height - Reduced icon size from 14px to 12px to match new dimensions - Added flex centering to properly position icons within links - Reduced gap between social links from gap-4 to gap-2 - Creates more defined clickable areas for social media icons
1 parent 33189c9 commit 17b2a69

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

components/Footer.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default function Footer() {
105105
</div>
106106

107107
{/* Social media icons */}
108-
<div className="sf-footer-social flex items-center gap-4">
108+
<div className="sf-footer-social flex items-center gap-2">
109109
{socialLinks.map((link, index) => (
110110
<motion.a
111111
key={link.name}
@@ -115,20 +115,21 @@ export default function Footer() {
115115
rel={
116116
link.name === "Share" ? undefined : "noopener noreferrer"
117117
}
118-
className="sf-social-link opacity-50 hover:opacity-100 transition-opacity duration-[168ms] ease-in-out text-sf-fg-default"
118+
className="sf-social-link opacity-50 hover:opacity-100 transition-opacity duration-[168ms] ease-in-out text-sf-fg-default flex items-center justify-center"
119+
style={{ width: "120px", height: "12px" }}
119120
whileHover={{ scale: 1.05 }}
120121
whileTap={{ scale: 0.95 }}
121122
initial={{ y: 10 }}
122123
animate={{ y: 0 }}
123124
transition={{ duration: 0.4, delay: 0.5 + index * 0.1 }}
124125
>
125126
<svg
126-
width="14"
127-
height="14"
127+
width="12"
128+
height="12"
128129
viewBox={link.icon.props.viewBox}
129130
fill="none"
130131
xmlns="http://www.w3.org/2000/svg"
131-
className="w-[14px] h-[14px]"
132+
className="w-[12px] h-[12px]"
132133
>
133134
{link.icon.props.children}
134135
</svg>

0 commit comments

Comments
 (0)