Skip to content

Commit

Permalink
Merge pull request #44 from ImieboGodson/homepage-fix
Browse files Browse the repository at this point in the history
added a create-a-space button. Issue #41
  • Loading branch information
ImieboGodson authored Apr 17, 2022
2 parents abfc91e + 6326432 commit 7dedf1d
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 2 deletions.
33 changes: 33 additions & 0 deletions src/components/CreateASpace/createASpace.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.createASpace {
margin-bottom: 20px;
padding: 5px 10px;
display: flex;
/* justify-content: space-around; */
align-items: center;
border-radius: 6px;
color: rgba(0, 0, 0, 0.734);
background-color: rgba(227, 226, 226, 0.734);
/* border: 1px solid #ccc; */
cursor: pointer;
}

.createASpace:hover {
background-color: rgba(55, 88, 255, 0.096);
}

.createASpaceIcon {
margin-right: 15px;
padding: 2px;
border-radius: 50%;
background-color: rgba(205, 205, 205, 0.726);
}

.createASpaceIcon:hover {

}

.createASpace p {
margin: 0;
padding: 0;
font-size: 0.85rem;
}
16 changes: 16 additions & 0 deletions src/components/CreateASpace/createASpace.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from 'react'
import './createASpace.css'
import { BsPlus } from "react-icons/bs";



const createASpace = () => {
return (
<div className='createASpace'>
<BsPlus className='createASpaceIcon'/>
<p>Create Space</p>
</div>
)
}

export default createASpace
2 changes: 1 addition & 1 deletion src/components/Post/Post.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.post {
margin-bottom: 30px;
margin-bottom: 20px;
padding-top: 20px;
background-color: #fff;
border-radius: 5px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostAQuestion/PostAQuestion.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

.postAQuestionBtn p {
font-size: 19px;
font-size: 1rem;
font-weight: 700;
color: rgba(0, 0, 0, 0.5);
}
Expand Down
4 changes: 4 additions & 0 deletions src/components/SideBar/SideBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
height: fit-content;
/* padding: 10px 0; */
/* background-color: #fff; */

}

.mainSideBarOptions {
border-radius: 6px;
color: rgba(0, 0, 0, 0.734);
border: 1px solid #ccc;
Expand Down
2 changes: 2 additions & 0 deletions src/components/SideBar/SideBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { FaRegBookmark } from 'react-icons/fa';
import { FiHash } from 'react-icons/fi';
import { BsPeople } from 'react-icons/bs';
import { MdKeyboardArrowDown } from 'react-icons/md';
import CreateASpace from '../CreateASpace/createASpace';


const SideBar = () => {
Expand All @@ -20,6 +21,7 @@ const SideBar = () => {

return (
<div className='sideBar'>
<CreateASpace />
<ul className='mainSideBarOptions'>
<li className='home'><AiOutlineHome className='sidebarIcons'/><p>Home</p></li>
<li className='savedPosts'><FaRegBookmark className='sidebarIcons' /><p>Saved posts</p></li>
Expand Down
1 change: 1 addition & 0 deletions src/pages/Homepage/Homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SideBar from '../../components/SideBar/SideBar';
import RightBar from '../../components/RightBar/RightBar';
import Feed from '../../components/Feed/Feed';


const Homepage = () => {
return (
<div className='homepage'>
Expand Down

0 comments on commit 7dedf1d

Please sign in to comment.