Commit 5fad389 1 parent 7688a2b commit 5fad389 Copy full SHA for 5fad389
File tree 10 files changed +176
-22
lines changed
10 files changed +176
-22
lines changed Original file line number Diff line number Diff line change 23
23
"@types/react-dom" : " ^18.2.7" ,
24
24
"@vitejs/plugin-react" : " ^4.0.3" ,
25
25
"autoprefixer" : " ^10.4.16" ,
26
+ "daisyui" : " ^4.12.8" ,
26
27
"eslint" : " ^8.45.0" ,
27
28
"eslint-plugin-react" : " ^7.32.2" ,
28
29
"eslint-plugin-react-hooks" : " ^4.6.0" ,
Original file line number Diff line number Diff line change 1
- import { BrowserRouter , Route , Routes } from ' react-router-dom'
2
- import About from ' ../src/components/about/About'
3
- import Banner from ' ../src/components/hero/Banner'
4
- import Contact from ' ../src/components/contact/Contact'
1
+ import { BrowserRouter , Route , Routes } from " react-router-dom" ;
2
+ import About from " ../src/components/about/About" ;
3
+ import Banner from " ../src/components/hero/Banner" ;
4
+ import Contact from " ../src/components/contact/Contact" ;
5
5
// import Header from '../src/components/header/Header'
6
- import Work from ' ../src/components/works/Work'
7
- import ' ./App.css'
8
- import NavBar from ' ./components/navbar/NavBar'
9
- import Footer from ' ./components/footer/Footer'
10
-
6
+ import Work from " ../src/components/works/Work" ;
7
+ import " ./App.css" ;
8
+ import NavBar from " ./components/navbar/NavBar" ;
9
+ import Footer from " ./components/footer/Footer" ;
10
+ import CaseStudyPage from "./pages/CaseStudyPage" ;
11
11
12
12
function App ( ) {
13
13
// bg-site bg-no-repeat bg-cover overflow-hidden
14
14
return (
15
- < div className = ' body' >
15
+ < div className = " body" >
16
16
< BrowserRouter >
17
17
{ /* <Header /> */ }
18
18
< Routes >
19
- < Route > </ Route >
19
+ < Route exact path = "/work/CaseStudyPage" element = { < CaseStudyPage /> } />
20
+ < Route
21
+ exact
22
+ path = "/"
23
+ element = {
24
+ < >
25
+ < Banner />
26
+ < NavBar />
27
+ < About />
28
+ < Work />
29
+ < Contact />
30
+ < Footer />
31
+ </ >
32
+ }
33
+ />
20
34
</ Routes >
21
35
</ BrowserRouter >
22
- < Banner />
23
- < NavBar />
24
- < About />
25
- < Work />
26
- < Contact />
27
- < Footer />
28
36
{ /* <div className='h-[135px]'></div> */ }
29
37
</ div >
30
- )
38
+ ) ;
31
39
}
32
40
33
- export default App
41
+ export default App ;
Original file line number Diff line number Diff line change
1
+ import { Link } from "react-router-dom" ;
2
+
3
+ const HeaderCaseStudy = ( ) => {
4
+ return (
5
+ < header className = " bg-black/20 h-[80px] backdrop-blur-2xl w-full fixed top-0 z-50" >
6
+ < div className = "container mx-auto h-full flex justify-center items-center" >
7
+ < div className = "navbar bg-black/20 backdrop-blur-2xl" >
8
+ < div className = "flex-1" >
9
+ < h1 className = "text-white hidden text-3xl sm:block font-bold font-primary text-center" >
10
+ Case Study Page
11
+ </ h1 >
12
+ </ div >
13
+ < div className = "flex-none mr-20" >
14
+ < ul className = "menu menu-horizontal px-1" >
15
+ < li >
16
+ < Link
17
+ to = "/"
18
+ className = "text-white sm:text-xl text-sm font-primary text-center hover:text-accent hover:scale-105 transition duration-300"
19
+ >
20
+ Home
21
+ </ Link >
22
+ </ li >
23
+ < li >
24
+ < details >
25
+ < summary className = "text-white sm:text-xl text-sm font-primary text-center" >
26
+ Parent
27
+ </ summary >
28
+ < ul className = "bg-black/20 backdrop-blur-xl rounded-t-none p-2 w-[250px]" >
29
+ < li >
30
+ < Link
31
+ to = "/case-study"
32
+ className = "text-white sm:text-xl text-xs font-primary text-center hover:text-accent hover:scale-105 transition duration-300"
33
+ >
34
+ Overview
35
+ </ Link >
36
+ </ li >
37
+ < li >
38
+ < Link
39
+ to = "/case-study"
40
+ className = "text-white sm:text-xl text-xs font-primary text-center hover:text-accent hover:scale-105 transition duration-300"
41
+ >
42
+ Desing Process
43
+ </ Link >
44
+ </ li >
45
+ < li >
46
+ < Link
47
+ to = "/case-study"
48
+ className = "text-white sm:text-xl text-xs font-primary text-center hover:text-accent hover:scale-105 transition duration-300"
49
+ >
50
+ Final Result
51
+ </ Link >
52
+ </ li >
53
+ </ ul >
54
+ </ details >
55
+ </ li >
56
+ </ ul >
57
+ </ div >
58
+ </ div >
59
+ </ div >
60
+ </ header >
61
+ ) ;
62
+ } ;
63
+
64
+ export default HeaderCaseStudy ;
Original file line number Diff line number Diff line change 4
4
FaFigma ,
5
5
FaBehance ,
6
6
} from "react-icons/fa" ;
7
+ import { Link } from "react-router-dom" ;
7
8
8
9
export const WorkCards = ( { projects } ) => {
9
10
/* console.log(projects) */
@@ -21,7 +22,7 @@ export const WorkCards = ({ projects }) => {
21
22
{ projects . name }
22
23
</ h4 >
23
24
< p className = "text-justify m-2 text-xl" > { projects . description } </ p >
24
- < div className = "flex mt-2" >
25
+ < div className = "flex mt-2 items-center gap-4 " >
25
26
{ projects . type === "Frontend Developer" ? (
26
27
< >
27
28
< a
@@ -55,10 +56,13 @@ export const WorkCards = ({ projects }) => {
55
56
href = { projects . behance }
56
57
target = "_blank"
57
58
rel = "noopener noreferrer"
58
- className = "text-gray-300 hover:text-accent hover:scale-105 transition duration-300"
59
+ className = "text-gray-300 hover:text-accent hover:scale-105 mr-4 transition duration-300"
59
60
>
60
61
< FaBehance size = { 40 } />
61
62
</ a >
63
+ < Link to = "/work/CaseStudyPage" >
64
+ < h3 className = "text-gray-300 text-xl hover:text-accent hover:scale-105 transition duration-300 text-bold" > View Case Study</ h3 >
65
+ </ Link >
62
66
</ >
63
67
) }
64
68
</ div >
Original file line number Diff line number Diff line change 4
4
FaFigma ,
5
5
FaBehance ,
6
6
} from "react-icons/fa" ;
7
+ import { Link } from "react-router-dom" ;
7
8
8
9
export const WorkCardsleft = ( { projects } ) => {
9
10
/* console.log(projects) */
@@ -68,6 +69,9 @@ export const WorkCardsleft = ({ projects }) => {
68
69
>
69
70
< FaBehance size = { 40 } />
70
71
</ a >
72
+ < Link to = "/work/CaseStudyPage" >
73
+ < h3 className = "text-gray-300 text-xl hover:text-accent hover:scale-105 transition duration-300 text-bold" > View Case Study</ h3 >
74
+ </ Link >
71
75
</ >
72
76
) }
73
77
</ div >
Original file line number Diff line number Diff line change
1
+ import HeaderCaseStudy from "../components/header/HeaderCaseStudy" ;
2
+ const CaseStudyPage = ( ) => {
3
+ return (
4
+ < >
5
+ < div className = "w-full min-h-screen" >
6
+ < HeaderCaseStudy />
7
+ < div className = " bg-black/50 backdrop-blur-2xl container mx-auto w-full min-h-screen" >
8
+ < h1 className = "text-white text-3xl font-bold font-primary text-center mt-20" >
9
+ Case Study Page
10
+ </ h1 >
11
+ </ div >
12
+ </ div >
13
+ </ >
14
+ ) ;
15
+ } ;
16
+
17
+ export default CaseStudyPage ;
Original file line number Diff line number Diff line change
1
+ import React from 'react'
2
+
3
+ const HomePage = ( ) => {
4
+ return (
5
+ < div > HomePage</ div >
6
+ )
7
+ }
8
+
9
+ export default HomePage
Original file line number Diff line number Diff line change @@ -32,5 +32,7 @@ module.exports = {
32
32
} ,
33
33
} ,
34
34
} ,
35
- plugins : [ ] ,
35
+ plugins : [
36
+ require ( 'daisyui' )
37
+ ] ,
36
38
} ;
You can’t perform that action at this time.
0 commit comments