Skip to content

Commit

Permalink
Merge pull request #12 from BCIT-SSD-2020-21/11ShowPosts
Browse files Browse the repository at this point in the history
11 show posts
  • Loading branch information
jianmingtu authored Apr 15, 2021
2 parents 6369070 + 8ae233b commit 8bd3e24
Show file tree
Hide file tree
Showing 12 changed files with 2,606 additions and 55 deletions.
61 changes: 21 additions & 40 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added client/public/images/avatars/avatar.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: 7 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ import Main from "./components/main/Main";
import Navbar from "./components/navbar/Navbar";
import Sidebar from "./components/sidebar/Sidebar";


import LoginPage from "./layouts/LoginPage";
import SignOutPage from "./layouts/SignOutPage"
import NewPostPage from "./layouts/NewPostPage"
import Posts from "./layouts/PostsPage"


import * as token from './token'

Expand Down Expand Up @@ -43,7 +46,10 @@ const App = () => {
</Route>
<Route path="/newPost">
<NewPostPage></NewPostPage>
</Route>
</Route>
<Route path="/posts">
<Posts></Posts>
</Route>
<Route path="/">
<Main user={user}></Main>
</Route>
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/NewPost/NewPost.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CloseIcon from '@material-ui/icons/Close';
import { IconButton } from '@material-ui/core'
import Post from './Post'
import './NewPost.css'
import { BsFillPersonFill } from 'react-icons/bs';
import { BsForward, BsCameraVideo } from 'react-icons/bs';
import {IOSSwitch} from '../utils/ToggleSwitch'
import FormControlLabel from '@material-ui/core/FormControlLabel';

Expand Down Expand Up @@ -93,7 +93,7 @@ export default function NewPost({ submit, close, submitPost }) {
<input type="file" accept="image/*" name="image-upload" id="input" onChange={imageHandler} />
<div className="label">
<label className="image-upload" htmlFor="input">
<BsFillPersonFill size={30} />
<BsCameraVideo style={{marginRight: '0.5rem'}} size={30} />
<span>Add Photo</span>
</label>
</div>
Expand Down Expand Up @@ -151,7 +151,7 @@ export default function NewPost({ submit, close, submitPost }) {
</div>

<button className="submitButton">
<BsFillPersonFill size={30} />
<BsForward style={{marginRight: '0.5rem'}} size={30} />
<span>Add Photo</span>
</button>
</form>
Expand Down
1 change: 0 additions & 1 deletion client/src/components/navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const Navbar = ({ sidebarOpen, openSidebar, user }) => {
</div>
<div className="navbar__left">
<a href="#">Subscribers</a>
<a href="#">Video Management</a>
<a className="active_link" href="#">
Admin
</a>
Expand Down
Loading

0 comments on commit 8bd3e24

Please sign in to comment.