-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0276993
commit b84ed7b
Showing
11 changed files
with
344 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,37 @@ | ||
import "./App.css"; | ||
import Home from "./pages/Home"; | ||
import ReactGA from 'react-ga'; | ||
import React, {useEffect} from 'react' | ||
// import "./App.css"; | ||
// import Home from "./pages/Home"; | ||
// import ReactGA from 'react-ga'; | ||
// import React, { useEffect } from 'react' | ||
|
||
function App() { | ||
useEffect(() => { | ||
ReactGA.initialize('G-SW2KGM0L12'); | ||
ReactGA.pageview(window.location.pathname + window.location.search) | ||
},[]); | ||
// function App() { | ||
// useEffect(() => { | ||
// ReactGA.initialize('G-SW2KGM0L12'); | ||
// ReactGA.pageview(window.location.pathname + window.location.search) | ||
// }, []); | ||
// return ( | ||
// <Home /> | ||
// ); | ||
// } | ||
|
||
// export default App; | ||
// src/App.js | ||
import React from 'react'; | ||
import { BrowserRouter as Router, Route, Routes, Link } from 'react-router-dom'; | ||
import Home from './pages/Home'; // Adjust path based on your structure | ||
// import Projects from './pages/Projects'; | ||
import ProjectCard from './pages/projects'; | ||
|
||
const App = () => { | ||
return ( | ||
<Home /> | ||
<Router> | ||
|
||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/projects" element={<ProjectCard />} /> | ||
</Routes> | ||
</Router> | ||
|
||
); | ||
} | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* src/components/Header.css */ | ||
.Nav { | ||
background: transparent; | ||
height: 100px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
z-index: 10; | ||
} | ||
|
||
.NavLinkHome { | ||
color: rgb(119, 119, 121); | ||
display: flex; | ||
font-size: 1.2rem; | ||
align-items: center; | ||
height: 100%; | ||
cursor: pointer; | ||
} | ||
|
||
.NavLinkHome:hover { | ||
color: #f6f6f6; | ||
} | ||
|
||
.NavLink { | ||
color: rgb(119, 119, 121); | ||
display: flex; | ||
font-size: 1.2rem; | ||
align-items: center; | ||
height: 100%; | ||
cursor: pointer; | ||
} | ||
|
||
.NavLink:hover { | ||
color: black; | ||
} | ||
|
||
.Logo img { | ||
width: 47px; | ||
height: 47px; | ||
border-radius: 50%; | ||
} | ||
|
||
.Bars { | ||
display: none; | ||
color: #fff; | ||
font-size: 1.8rem; | ||
cursor: pointer; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.Bars { | ||
display: block; | ||
} | ||
|
||
.NavMenu { | ||
display: none; | ||
} | ||
} | ||
|
||
.NavMenu { | ||
display: flex; | ||
align-items: center; | ||
margin-right: -24px; | ||
} | ||
|
||
.menu-item+.menu-item { | ||
margin-left: 1rem; | ||
} | ||
|
||
.NavBtn { | ||
display: flex; | ||
align-items: center; | ||
margin-right: 24px; | ||
} | ||
|
||
@media screen and (max-width: 768px) { | ||
.NavBtn { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import { ProjectList } from "../../data/ProjectData"; // Adjusted import path | ||
import ProjectCard from "./ProjectCard/ProjectCard"; // Adjust the import path as necessary | ||
|
||
function AllProjects() { | ||
return ( | ||
<div> | ||
<h1>All Projects</h1> | ||
<div style={{ display: 'flex', flexWrap: 'wrap' }}> | ||
{ProjectList.map((project, index) => ( | ||
<ProjectCard key={index} project={project} /> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default AllProjects; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.