Skip to content

Commit c5fd5fe

Browse files
committed
style: make the footer shadow in taiwlind instead of css
1 parent 1ea491a commit c5fd5fe

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

src/index.css

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,6 @@
9494
background-size: 24px 24px;
9595
}
9696

97-
.footer-shadow {
98-
position: absolute;
99-
top: 0;
100-
left: 0;
101-
width: 100%;
102-
height: 100%;
103-
/* Ensures shadow covers the entire footer */
104-
background-image: linear-gradient(to top,
105-
rgba(255, 0, 0, 0),
106-
theme(colors.gray.900));
107-
/* Creates the red gradient shadow */
108-
z-index: -1;
109-
/* Place the shadow behind the footer content */
110-
}
111-
11297
/* loading*/
11398
.loader {
11499
width: 80px;

src/layouts/Footer.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ const socialLinks = [
1212
const Footer = memo(function Footer({ setCursorVariant }) {
1313
return (
1414
<footer
15-
className="relative mt-20 w-full min-h-[220px]"
15+
className="relative mt-20 w-full min-h-[220px] border-border/60 border-t-[1px]"
1616
style={{ clipPath: "polygon(0% 0, 100% 0%, 100% 100%, 0 100%)" }}
1717
>
18-
<div className="footer-shadow" />
18+
<div className="absolute top-0 left-0 w-full h-full bg-gradient-to-b from-black/25 to-transparent z-[-1]" />
1919
<div className="relative h-[calc(100vh+220px)] -top-[100vh]">
2020
<div className="h-[220px] sticky top-[calc(100vh-220px)]">
2121
<Content setCursorVariant={setCursorVariant} />
@@ -27,14 +27,14 @@ const Footer = memo(function Footer({ setCursorVariant }) {
2727

2828
const Content = ({ setCursorVariant }) => {
2929
return (
30-
<div className="relative bg-secondary/40 overflow-hidden py-8 px-12 w-full h-full flex flex-col items-center gap-3 border-border/50 border-2">
30+
<div className="relative bg-secondary/40 overflow-hidden py-8 px-12 w-full h-full flex flex-col items-center gap-3 ">
3131
<p className="self-start text-4xl sm:text-7xl max-w-full md:max-w-8xl font-bold text-gray-500/60">
3232
Awesome React js Projects
3333
</p>
3434

3535
<div className="flex flex-col gap-3 justify-end h-full w-full">
3636
<div className="flex justify-center w-full gap-1 text-xs sm:text-sm">
37-
<p>Made with &lt;3 by No0ne</p>
37+
<p>Made with &lt;3 by No0ne003</p>
3838
<p className="text-gray-400 text-sm leading-5">
3939
| &copy; {new Date().getFullYear()} No0ne003.
4040
</p>

0 commit comments

Comments
 (0)