Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37,332 changes: 37,332 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
"@types/node": "^12.0.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-router-dom": "^5.1.7",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"typescript": "^4.1.2",
"web-vitals": "^1.0.1"
Expand Down
36 changes: 25 additions & 11 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
import React from "react";
import "./assets/css/App.css";
import Header from "./components/Header";
import Sidebar from "./components/Sidebar";
import Main from "./components/Main";
import Footer from "./components/Footer";

import About from "./components/About"
import Home from "./components/Home"
import Projects from "./components/Projects"
import {
BrowserRouter as Router,
Switch,
Route
} from "react-router-dom";

function App() {
return (
<div>
<Header />
<div className="row">
<Sidebar />
<Main />
<Router>
<div>
<Switch>
<Route path="/about">
<About />
</Route>
<Route path="/projects">
<Projects />
</Route>
<Route path="/">
<Home />
</Route>

</Switch>
</div>
<Footer />
</div>
</Router>
);
}

Expand Down
Binary file added src/assets/img/header1.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/header2.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/sylvy.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/components/About.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";
import Header from "./Header";
import NavBar from "./Navbar";

const About = () => {
return(
<div>
<Header />
<NavBar />
<h3>About Sylvia Boonabaana</h3>
</div>
)
}

export default About;
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

const Footer = () => (
<div className="footer">
Awesome footer <p> copyright 2021</p>
Sylvia Boonabaana Inc. <p> @Copyright 2021</p>
</div>
);

Expand Down
6 changes: 4 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from "react";
// import header1 from "../assets/img/header1.JPG"

const Header = () => {
return (
<div className="header">
<h1>Cypher Bits</h1>
<p>code eat sleep.</p>
<h1>Sylvia Boonabaana</h1>
<p>Life is what you make it</p>
{/* <img src={header1} alt="" /> */}
</div>
);
};
Expand Down
24 changes: 24 additions & 0 deletions src/components/Home.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

import React from "react";
import Header from "./Header";
import Sidebar from "./Sidebar";
import Main from "./Main";
import Footer from "./Footer";
import NavBar from "./Navbar";

const Home = () => {
return (
<div>
<Header />
<NavBar />
<div className="row">
<Sidebar />
<Main />
</div>
<Footer />

</div>
);
};

export default Home;
30 changes: 17 additions & 13 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import React from 'react';
import { Link } from 'react-router-dom'
const NavBar = () => {
return (
<div className="navbar">
<a href="#link">Link</a>
<a href="#link">Link</a>
<a href="#link">Link</a>
<a href="#link" className="right">
Link
</a>
</div>
);
};

export default NavBar;
return (
<div className="navbar">

<Link to="/">Home</Link>
<Link to="/about">About</Link>
<Link to="/projects">Projects</Link>
<Link to="/blog" className="right">
Blog
</Link>

</div>
);
};

export default NavBar;
15 changes: 15 additions & 0 deletions src/components/Projects.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from "react";
import Header from "./Header";
import NavBar from "./Navbar";

const Projects = () => {
return(
<div>
<Header />
<NavBar />
<h3>Project By Sylvia Boonabaana</h3>
</div>
)
}

export default Projects;
11 changes: 7 additions & 4 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import React from "react";
import myprofile from "../assets/img/sylvy.jpg"

const Sidebar = () => {
return (
<div className="side">
<h2>About Me</h2>
<h5>Photo of me:</h5>
<div className="images">
<img src="https://picsum.photos/300/200" width="auto" alt="" />
<img src={myprofile} width="300" alt="" />
</div>
<p>Some text about me in culpa qui officia deserunt mollit anim..</p>
<h3>More Text</h3>
<p>Lorem ipsum dolor sit ame.</p>
<p>A dynamic software developer. Analytical problem solver with a talent for thinking outside the box for creative solutions. </p>
<h3>Projects Completed</h3>
<p>Massajja Division Ufarm</p>
<p>African Money Tracker</p>
<p>Ultimate Blog App</p>
<div className="images">
<img src="https://picsum.photos/301/60" width="auto" alt="" />
</div>
Expand Down
24 changes: 12 additions & 12 deletions src/variables/articles.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
export const articles = [
{
user: "John Doe",
sub_text: "Some lorem text",
title: "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
body: "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto",
user: "Sylvia Boonabaana",
sub_text: "A Web App",
title: "Massajja Division Ufarm",
body: "A platform to promote and support urban farming practice while easing market access and improving on the family earnings and livelihoods.",
image: "https://picsum.photos/853/200",
},
{
user: "Johnathan Doe",
title: "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
sub_text: "Some lorem text",
body: "est rerum tempore vitae\nsequi sint nihil reprehenderit dolor beatae ea dolores neque\nfugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\nqui aperiam non debitis possimus qui neque nisi nulla",
user: "Sylvia, Emma",
title: "African Money Tracker",
sub_text: "A Mobile App",
body: "A mobile app to help users track their spending habits so as to better manage expenses and incomes",
image: "https://picsum.photos/852/200",
},
{
user: "Johnathan Doe",
title: "sunt aut facere repellat provident occaecati excepturi optio reprehenderit",
sub_text: "Some lorem text",
body: "est rerum tempore vitae\nsequi sint nihil reprehenderit dolor beatae ea dolores neque\nfugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\nqui aperiam non debitis possimus qui neque nisi nulla",
user: "Sylvia Boonabaana",
title: "Ultimate Blog",
sub_text: "A Web App",
body: "Allows users to publish their blogs, update them. Readers can make reviews and writers may respond.",
image: "https://picsum.photos/850/200",
},
];
Loading