File tree Expand file tree Collapse file tree 5 files changed +43
-7
lines changed Expand file tree Collapse file tree 5 files changed +43
-7
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ const About = () => {
48
48
return (
49
49
< >
50
50
{ showOriginal && (
51
- < div className = { `overlay_about overflow-hidden` } >
52
51
< div className = " font-disket min-w-screen relative h-fit overflow-hidden bg-[#020202] px-2 text-center text-[35px] font-black text-[#9CE79ACC] md:px-10 md:text-[100px]" >
53
52
< span className = "relative block" > DEVSOC’24</ span >
54
53
ignites the tech scene with a blaze of innovation, where
@@ -92,15 +91,14 @@ const About = () => {
92
91
Join the fray as we smash barriers and redefine what's
93
92
possible.
94
93
</ div >
95
- </ div >
96
94
) }
97
95
{ showGlitchImage && (
98
96
< Image
99
97
src = { glitch }
100
98
alt = "glitch"
101
99
height = { 0 }
102
100
width = { 0 }
103
- className = "absolute -z-10 min-h-screen w-screen"
101
+ className = "absolute z-50 min-h-screen w-screen"
104
102
/>
105
103
) }
106
104
{ showGlitch && (
Original file line number Diff line number Diff line change
1
+ "use client" ;
2
+ import { motion } from "framer-motion" ;
3
+ import styles from "@/styles/btnToPortal.module.css" ;
4
+ import Image from "next/image" ;
5
+ import type { StaticImport } from "next/dist/shared/lib/get-img-props" ;
6
+ import DSLogo from "@/assets/images/DSLogo.svg" ;
7
+
8
+ const ActionButton = ( props : { link : string ; body : string } ) => {
9
+ return (
10
+ < >
11
+ < motion . a
12
+ href = { props . link }
13
+ className = { `${ styles . btn } font-disket px-3 py-1 text-xl tracking-tighter` }
14
+ whileHover = { { backgroundPosition : "-100%,100%" } }
15
+ >
16
+ { props . body }
17
+ </ motion . a >
18
+ </ >
19
+ ) ;
20
+ } ;
21
+
22
+ export default ActionButton ;
Original file line number Diff line number Diff line change @@ -3,8 +3,13 @@ import Image from "next/image";
3
3
import pattern from "@/assets/images/pattern.svg" ;
4
4
import glitch from "@/assets/images/footer_glitch.gif" ;
5
5
import Link from "next/link" ;
6
+ import { useLenis } from "@studio-freight/react-lenis" ;
6
7
7
8
const Footer = ( ) => {
9
+ const lenis = useLenis ( ( { scroll } ) => {
10
+ // console.log(scroll);
11
+ } ) ;
12
+
8
13
return (
9
14
< >
10
15
< Image
@@ -33,7 +38,12 @@ const Footer = () => {
33
38
width = { 0 }
34
39
className = "w-[100%]"
35
40
/>
36
- < div className = "font-vcr absolute right-0 flex h-[100%] w-fit items-center justify-center border-l-2 border-black bg-[#7F32DA] p-1 hover:cursor-pointer hover:bg-black hover:text-white" >
41
+ < div
42
+ className = "font-vcr absolute right-0 flex h-[100%] w-fit items-center justify-center border-l-2 border-black bg-[#7F32DA] p-1 hover:cursor-pointer hover:bg-black hover:text-white"
43
+ onClick = { ( ) =>
44
+ lenis ?. scrollTo ( "#Main" , { lerp : 0.1 , duration : 1 } )
45
+ }
46
+ >
37
47
X
38
48
</ div >
39
49
</ div >
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ function Main() {
68
68
} , [ ] ) ;
69
69
return (
70
70
< >
71
- < motion . div style = { { y : - y } } >
71
+ < motion . div style = { { y : - y } } className = "" >
72
72
< div style = { { opacity : scrollOpacity } } >
73
73
< div className = { className } >
74
74
< Image src = { glitch as StaticImageData } alt = "glitch" fill />
@@ -177,7 +177,7 @@ function Main() {
177
177
</ div >
178
178
</ div >
179
179
</ motion . div >
180
- < motion . div style = { { y : y } } className = "relative z-50 " >
180
+ < motion . div style = { { y : y } } className = "relative z-30 " >
181
181
< div className = "flex h-[1000px] items-center justify-center overflow-hidden bg-[#020202]" >
182
182
< div className = "bg-logo font-disket overflow-hidden bg-[#020202]" >
183
183
< motion . span style = { { y : y } } className = "relative block" >
Original file line number Diff line number Diff line change 1
1
import Timeline from "@/components/Timeline" ;
2
2
import About from "@/components/about" ;
3
+ import ActionButton from "@/components/actionButton" ;
3
4
import Main from "@/components/main" ;
4
5
import SmoothScrolling from "@/components/smoothscrolling" ;
5
6
6
7
export default function Home ( ) {
7
8
return (
8
9
< >
9
10
< SmoothScrolling >
10
- < Main />
11
+ < section id = "Main" >
12
+ < Main />
13
+ </ section >
11
14
12
15
< About />
16
+ < div className = "fixed bottom-0 z-40 mb-10 flex w-full justify-center" >
17
+ < ActionButton body = "Kuch toh" link = "/" />
18
+ </ div >
13
19
</ SmoothScrolling >
14
20
</ >
15
21
) ;
You can’t perform that action at this time.
0 commit comments