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
42 changes: 23 additions & 19 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

import './styles/LandingPage.css'

import React, { useContext, useEffect } from 'react';
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import axios from 'axios';
Expand Down Expand Up @@ -47,27 +49,29 @@ function App() {
}

return (
<div>
<LandingPage />

<BrowserRouter>
<div className="App">
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/login" element={<LoginPage />} />
<Route path="/register" element={<RegisterPage />} />
<Route path="/home" element={<HomePage />} />
{/* Add the following route with the authentication check */}
<Route
path="/createNew"
element=<CreateBlogPage />
/>
<Route path="/created" element={<CreatedBlogPage />} />
<Route path="/profile" element={<ProfilePage />} />
<Route path="/blogs/:id" element={<BlogsDetailPage />} />
</Routes>
<Toaster />
<BrowserRouter>
<div className="App">
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/login" element={<LoginPage />} />
<Route path="/register" element={<RegisterPage />} />
<Route path="/home" element={<HomePage />} />
{/* Add the following route with the authentication check */}
<Route
path="/createNew"
element= <CreateBlogPage />
/>
<Route path="/created" element={<CreatedBlogPage />} />
<Route path="/profile" element={<ProfilePage />} />
<Route path="/blogs/:id" element={<BlogsDetailPage />} />
</Routes>
<Toaster />
</div>
</BrowserRouter>
</div>
</BrowserRouter>

);
}

Expand Down
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/components/LandingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { MDBBtn } from 'mdb-react-ui-kit';
function LandingPage() {
return (
<div className="downPage">
<header className="lp_header">
<div className="header_logo"></div>
<h3>IEEEBlogs</h3>
</header>
<nav className="lp_navbar">
{/* <img src={logo} alt="logo" className="logo" /> */}
<div className="lp_buttons">
Expand All @@ -21,6 +25,10 @@ function LandingPage() {
</div>
<footer className="lp_footer">
&copy; 2023 Career Development Website
<div className="links">
<a href="https://www.youtube.com/watch?v=oHg5SJYRHA0">Youtube</a>
<a href="https://github.com/IEEE-BlogApp/frontend">Github</a>
</div>
</footer>
</div>
);
Expand Down
5 changes: 4 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* <<<<<<< HEAD */

body {
font-family: Roboto, Helvetica, Arial, sans-serif;
}
Expand Down Expand Up @@ -26,6 +26,9 @@ body {
position: fixed;
}




*/


Expand Down
40 changes: 37 additions & 3 deletions src/styles/LandingPage.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,49 @@
}

.lp_footer {
background-color: black;
background-color: rgb(12, 12, 12);
color: white;
padding: 1rem;
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
}

.lp_a{
color:white;
}
}

.lp_header {
background-color: rgb(12, 12, 12);
color: white;
padding: 1rem;
position: absolute;
top: 0;
width: 100%;
display: flex;
flex-direction: row;

}

.lp_header > .header_logo {
background-image: url("../assets/logo.png");
background-size:cover;
padding: 1.5rem;
margin-top: -10px;
margin-left: -10px;
}

.lp_header > h3 {
margin-left: 30px;
}

.links > a {
margin-left: 40px;
margin-right: 20px;
}