Skip to content

Commit 6487a12

Browse files
committed
fix: fix theme
1 parent 6ee4738 commit 6487a12

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

src/components/stateless/Footer/index.jsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { motion } from 'motion/react'
33
import { ArrowUpRight } from 'lucide-react'
44
import SongPng from '@assets/images/song.png'
55

6-
const Footer = () => {
6+
const FixFooter = () => {
77
return (
8-
<footer className="sticky bottom-0 left-0 z-0 w-full bg-[#0a192f] py-16 text-white">
9-
<div className="container mx-auto px-4">
10-
<div className="grid grid-cols-1 gap-12 md:grid-cols-2 lg:grid-cols-4">
8+
<footer className="sticky bottom-0 left-0 z-0 w-full bg-[#0a192f] py-12 text-white">
9+
<div className="mx-auto w-full max-w-6xl px-4 sm:px-6 lg:px-8">
10+
<div className="grid grid-cols-1 gap-10 md:grid-cols-2 lg:grid-cols-4">
1111
<div className="space-y-6">
1212
<motion.h2
1313
className="bg-gradient-to-r from-blue-400 via-purple-500 to-pink-500 bg-clip-text text-4xl font-bold text-transparent"
@@ -17,15 +17,15 @@ const Footer = () => {
1717
>
1818
<img src={SongPng} width="40" height="40" alt="Logo" />
1919
</motion.h2>
20-
<p className="">Shaping the future of web development</p>
20+
<p className="text-sm leading-relaxed sm:text-base">Shaping the future of web development</p>
2121
<div className="relative">
2222
<input
2323
type="email"
2424
placeholder="Your email"
25-
className="w-full rounded-full border-2 px-4 py-2 transition-all duration-300 outline-none"
25+
className="w-full rounded-full border-2 px-4 py-2 pr-12 text-sm transition-all duration-300 outline-none sm:text-base"
2626
/>
27-
<button className="absolute top-2 right-1 rounded-full p-1 transition-colors duration-300">
28-
<ArrowUpRight className="size-4" />
27+
<button className="absolute top-1/2 right-2 -translate-y-1/2 rounded-full p-2 transition-colors duration-300">
28+
<ArrowUpRight className="h-4 w-4" />
2929
</button>
3030
</div>
3131
</div>
@@ -37,7 +37,7 @@ const Footer = () => {
3737
<motion.li key={item} whileHover={{ x: 5 }} transition={{ type: 'spring', stiffness: 300 }}>
3838
<a
3939
href={`#${item.toLowerCase()}`}
40-
className="text-black transition-colors duration-300 dark:text-white"
40+
className="text-sm text-black transition-colors duration-300 sm:text-base dark:text-white"
4141
>
4242
{item}
4343
</a>
@@ -60,7 +60,7 @@ const Footer = () => {
6060
href={item.url}
6161
target="_blank"
6262
rel="noopener noreferrer"
63-
className="flex items-center text-black transition-colors duration-300 dark:text-white"
63+
className="flex items-center text-sm text-black transition-colors duration-300 sm:text-base dark:text-white"
6464
>
6565
{item.name}
6666
<ArrowUpRight className="ml-1 h-4 w-4" />
@@ -72,7 +72,7 @@ const Footer = () => {
7272

7373
<div className="space-y-4">
7474
<h3 className="text-xl font-semibold">Our Vision</h3>
75-
<p className="">
75+
<p className="text-sm leading-relaxed sm:text-base">
7676
Pioneering the next generation of web experiences through innovative code and cutting-edge design.
7777
</p>
7878
<div className="flex space-x-4">
@@ -95,16 +95,16 @@ const Footer = () => {
9595
</div>
9696
</div>
9797

98-
<div className="mt-12 flex flex-col items-center justify-between border-t border-white/10 pt-8 md:flex-row">
99-
<p className="text-sm">&copy; {new Date().getFullYear()}. All rights reserved.</p>
100-
<div className="mt-4 flex space-x-4 md:mt-0">
101-
<a className="text-sm transition-colors duration-300 hover:text-white">Privacy Policy</a>
102-
<a className="text-sm transition-colors duration-300 hover:text-white">Terms of Service</a>
98+
<div className="mt-12 flex flex-col items-center justify-between gap-4 border-t border-white/10 pt-8 md:flex-row">
99+
<p className="text-center text-xs sm:text-sm">&copy; {new Date().getFullYear()}. All rights reserved.</p>
100+
<div className="flex flex-wrap justify-center gap-3 text-xs sm:text-sm">
101+
<a className="transition-colors duration-300 hover:text-white">Privacy Policy</a>
102+
<a className="transition-colors duration-300 hover:text-white">Terms of Service</a>
103103
</div>
104104
</div>
105105
</div>
106106
</footer>
107107
)
108108
}
109109

110-
export default Footer
110+
export default FixFooter

src/pages/layout/primaryNav/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ export const usePrimaryNavItems = () => {
4949
return items.filter((item) => item.show).map(({ show, ...rest }) => rest)
5050
}
5151

52-
const PrimaryNav = () => {
52+
const PrimaryNav = ({ layout = '' }) => {
5353
const items = usePrimaryNavItems()
54-
54+
const filterItems = layout === 'top' ? items.filter((item) => item.key !== 'home') : items
5555
return (
5656
<Space style={{ marginRight: 16 }}>
57-
{items.map((item) => (
57+
{filterItems.map((item) => (
5858
<Button key={item.key} type="link" icon={item.icon} onClick={item.onClick}>
5959
{item.label}
6060
</Button>

src/pages/layout/proHeader/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ const ProHeader = ({ layout, onSettingClick, children, isMobile, onMobileMenuCli
242242
<div className={styles.headerMeta} style={isMobile ? { justifyContent: 'flex-end' } : {}}>
243243
{!isMobile && (
244244
<div className={styles.headerMenu} style={{ flex: 1, minWidth: 0, display: 'flex', alignItems: 'center' }}>
245-
<PrimaryNav />
245+
<PrimaryNav layout={layout} />
246246
{layout === 'top' && <div style={{ flex: 1, minWidth: 0 }}>{children}</div>}
247247
</div>
248248
)}

0 commit comments

Comments
 (0)