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
import React from "react"; | |
const AppContext = React.createContext(); | |
export default AppContext; |
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
import React, { useEffect, useContext } from "react"; | |
import { makeStyles } from "@material-ui/core/styles"; | |
import { LinearProgress, Typography, Box } from "@material-ui/core"; | |
import Question from "./Question"; | |
import AppContext from "../AppContext"; | |
import Resume from "./Resume"; | |
const useStyles = makeStyles((theme) => ({ | |
root: { | |
display: "flex", |
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
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import "./index.css"; | |
import * as serviceWorker from "./serviceWorker"; | |
import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; | |
import { | |
Navigation, | |
Footer, | |
Home, | |
About, |
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
import React, { useEffect } from "react"; | |
import { useParams } from "react-router"; | |
function Post() { | |
let { postSlug } = useParams(); | |
useEffect(() => { | |
// Fetch post using the postSlug | |
}, [postSlug]); |
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
import React from "react"; | |
import { Link } from "react-router-dom"; | |
function Posts() { | |
return ( | |
<div className="home"> | |
<div class="container"> | |
<Link to="/blog/this-is-a-post-title"> | |
<div class="row align-items-center my-5"> | |
<div class="col-lg-7"> |
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
import React from "react"; | |
import { Outlet } from "react-router-dom"; | |
function Blog() { | |
return ( | |
<div className="home"> | |
<div class="container"> | |
<h1 className="text-center mt-5">Blog page</h1> | |
<Outlet /> | |
</div> |
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
export { default as Navigation } from "./Navigation"; | |
export { default as Footer } from "./Footer"; | |
export { default as Home } from "./Home"; | |
export { default as About } from "./About"; | |
export { default as Contact } from "./Contact"; | |
export { default as Blog } from "./blog/Blog"; | |
export { default as Posts } from "./blog/Posts"; | |
export { default as Post } from "./blog/Post"; |
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
import Navigation from "../components/Navigation"; | |
export default function Home() { | |
return ( | |
<div> | |
<Navigation /> | |
{/* Dummy data */} | |
<div style={{ marginTop: "7rem" }}> | |
<section id="home"> |
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
import "../styles/globals.css"; | |
import "bootstrap/dist/css/bootstrap.css"; | |
function MyApp({ Component, pageProps }) { | |
return <Component {...pageProps} />; | |
} | |
export default MyApp; |
NewerOlder