Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsiveness #51

Open
wants to merge 61 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
31673f6
minor styling changes to form component
ImieboGodson Aug 19, 2022
96810f4
Merge pull request #7 from ImieboGodson/layout-fixes
ImieboGodson Aug 19, 2022
164bd13
minor fixes to form input placeholder styling
ImieboGodson Aug 19, 2022
5038347
minor fixes to external page header
ImieboGodson Aug 19, 2022
6f65201
fixed faqs component
ImieboGodson Aug 20, 2022
91d6256
minor changes to the routeComponent
ImieboGodson Aug 20, 2022
59d068f
fix: fixed styling of contact form on landing page, and the other par…
ImieboGodson Aug 21, 2022
eb80767
Merge pull request #8 from ImieboGodson/layout-fixes
ImieboGodson Aug 21, 2022
e95f24d
Fix: fixed styling for sidebar components
ImieboGodson Aug 21, 2022
4de540f
fix: minor changes to sidebar
ImieboGodson Aug 21, 2022
85a3de9
added styling fixes to sidebar component
ImieboGodson Aug 22, 2022
3c74add
Merge pull request #9 from ImieboGodson/layout-fixes
ImieboGodson Aug 23, 2022
eab4588
feed components styling fixes
ImieboGodson Aug 23, 2022
727c984
Merge pull request #10 from ImieboGodson/layout-fixes
ImieboGodson Aug 23, 2022
2e70e28
Fix: styling fix for post comment feature
ImieboGodson Aug 23, 2022
5ec50fd
Fix: styling fix for post component
ImieboGodson Aug 23, 2022
c78a9c0
Merge pull request #11 from ImieboGodson/layout-fixes
ImieboGodson Aug 23, 2022
17bd459
fix: styling fixes for postAQuestion component button
ImieboGodson Aug 23, 2022
f9950d9
Fix: styling fix for createAPost Button
ImieboGodson Aug 23, 2022
6408f97
minor fixes to createAPost main part
ImieboGodson Aug 23, 2022
65beac5
adding text editor component to makeAPost feature
ImieboGodson Aug 25, 2022
0834926
feat: added Text Editor functionality
ImieboGodson Aug 27, 2022
bdf3960
Merge pull request #12 from ImieboGodson/layout-fixes
ImieboGodson Aug 27, 2022
afabc99
Text editor feature changes
ImieboGodson Aug 29, 2022
486d97e
Merge pull request #13 from ImieboGodson/layout-fixes
ImieboGodson Aug 29, 2022
399551e
feat: added community page
ImieboGodson Aug 29, 2022
9532af8
fixing community page
ImieboGodson Oct 1, 2022
2b8326d
added switch view state feature on community page
ImieboGodson Oct 2, 2022
1b619fa
minor style fixes and linked to community page
ImieboGodson Oct 2, 2022
a3577d6
added initail files for Cardwrapper component
ImieboGodson Oct 3, 2022
bd0040d
minor fix
ImieboGodson Oct 3, 2022
3eb5cee
major changes
ImieboGodson Oct 7, 2022
0c55a1f
Merge pull request #14 from ImieboGodson/community-page
ImieboGodson Oct 8, 2022
726b47b
progress with contributors component
ImieboGodson Oct 10, 2022
1cbef6f
Merge pull request #15 from ImieboGodson/community-page
ImieboGodson Oct 11, 2022
751b4e0
fixes: styling fix for faq component
ImieboGodson Oct 11, 2022
b8d84ff
minor style fix to header section of landing page
ImieboGodson Oct 11, 2022
2f6de34
minor styling fixes for contact us section on landing page
ImieboGodson Oct 11, 2022
fdc438a
Merge pull request #16 from ImieboGodson/layout-fixes
ImieboGodson Oct 11, 2022
7c90e5e
added icons and update react-icons package
ImieboGodson Oct 11, 2022
85ec122
major changes to profile page main area
ImieboGodson Oct 12, 2022
4dba5ea
Merge pull request #17 from ImieboGodson/layout-fixes
ImieboGodson Oct 12, 2022
a4d099c
feat: added SpaceCard and profileItemList component to enable user vi…
ImieboGodson Oct 12, 2022
c591762
Updated README.md
ImieboGodson Nov 4, 2022
1bb9fbb
Update README.md
ImieboGodson Nov 4, 2022
84b680e
feat: major features on profile page
ImieboGodson Nov 10, 2022
f0b6c22
Merge pull request #18 from ImieboGodson/profile-page-features
ImieboGodson Nov 10, 2022
e8d0d20
style: responsiveness
ImieboGodson Nov 12, 2022
775fc43
style: made landing page responsive on all screens
ImieboGodson Nov 12, 2022
453999a
style: minor style fix
ImieboGodson Nov 12, 2022
d7cf4f3
Merge pull request #19 from ImieboGodson/dev
ImieboGodson Nov 12, 2022
09c03b8
style: minor fix
ImieboGodson Nov 12, 2022
ceff111
style: added responsiveness to signin and register page
ImieboGodson Nov 12, 2022
e52eb87
Merge pull request #20 from ImieboGodson/dev
ImieboGodson Nov 12, 2022
dc4e5ab
style: homepage responsiveness progress
ImieboGodson Nov 13, 2022
a589d3a
style: minor style fixes on homepage
ImieboGodson Nov 13, 2022
2e417d9
Merge pull request #21 from ImieboGodson/dev
ImieboGodson Nov 13, 2022
313256e
fix: updated packages and fixed console errors
ImieboGodson May 10, 2023
681e15b
fix: added AuthLayout component and change the layout of the auth pages
ImieboGodson May 25, 2023
0df158c
feat: added search on click feature to in-app header
ImieboGodson Jun 2, 2023
03bd646
feat: added mobile-menu, inAppHeader and LandingPageHeader components
ImieboGodson Jun 4, 2023
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ This project is centered on enabling people within the tech ecosystem to share/g
<!-- PROJECT LINKS -->
### Project Links

- Project Documentation - https://docs.google.com/document/d/1lgoH_PtHqetFhnvqx-dK8v78pIeqiglOnmbXwsw72Eg/edit
<!-- - Project Documentation - https://docs.google.com/document/d/1lgoH_PtHqetFhnvqx-dK8v78pIeqiglOnmbXwsw72Eg/edit -->
<!-- - Design Link - https://www.figma.com/file/SR7xS1DbOfIOwpqa1MpDHv/?node-id=0%3A1 -->
- Frontend Github Repo - https://github.com/zuri-training/creer-fe-pjt-105
- Backend Github Repo - https://github.com/zuri-training/MyIssue-be-pjt-105
<!-- - Backend Github Repo - https://github.com/zuri-training/MyIssue-be-pjt-105 -->



<!-- INSTALLATION -->
## Installation
## Run Locally

- After cloning the files, Navigate into the project folder (For you to have the file locally on your machine you will have to follow the steps below.)
```javascript
Expand Down Expand Up @@ -85,11 +85,11 @@ This project is centered on enabling people within the tech ecosystem to share/g

This project is only possible thanks to the wonderful people that carried it from just an idea all the way to a live product that is making life a lot easier.

Below is a list of these wonderful people;
Below is a list of the wonderful people;

- [Imiebo Godson](https://github.com/ImieboGodson) - Frontend Developer
- [Adekola Mariam](https://github.com/Marrockx) - Frontend Developer
- [Okoroafor Daniel](https://github.com/OkoroaforDaniel) -Frontend Developer
- [Praise Odoh](https://github.com/odohpraise) - Frontend Developer
- [Praise Odoh](https://github.com/odohpraise) - Frontend Developer


35,218 changes: 13,808 additions & 21,410 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.10.0",
"@mantine/core": "^5.2.3",
"@mantine/hooks": "^5.2.3",
"@mantine/rte": "^5.2.3",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.2.0",
"react-icons": "^4.4.0",
"react-router-dom": "^6.3.0",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
"react-scripts": "^5.0.1",
"web-vitals": "^3.0.0"
},
"scripts": {
"predeploy": "npm run build",
Expand Down
Binary file added public/assets/communityBackgroundImage1.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 public/assets/communityBackgroundImage2.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 public/assets/communitySmallerImage.png
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 public/favicon.ico
Binary file not shown.
38 changes: 15 additions & 23 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
import { useState } from 'react';
import './App.css'
import RoutingComponent from './containers/routingComponent';
import Header from './components/Header/Header';
import { useLocation } from 'react-router-dom';
import { useState } from "react";
import { MantineProvider } from "@mantine/core";
import "./App.css";
import RoutingComponent from "./containers/routingComponent";
import Header from "./components/Header/Header";
import { useLocation } from "react-router-dom";

function App() {

const [isAuth, setIsAuth] = useState(false);

const routeName = useLocation().pathname.split('/')[1];
const isFormPage = routeName === 'signup' || routeName === 'signin';
console.log(isFormPage);
const routeName = useLocation().pathname.split("/")[1];
const isFormPage = routeName === "signup" || routeName === "signin";

const onAuth = () => {
setIsAuth(true);
}
};

return (
<div className="App">
<>
{
(!isFormPage) ?
(
<Header isAuth={isAuth}/>
)
:
('')
}
</>
<RoutingComponent setAuth={onAuth} isUserAuth={isAuth}/>
</div>
<MantineProvider>
<div className="App">
<>{!isFormPage ? <Header isAuth={isAuth} /> : ""}</>
<RoutingComponent setAuth={onAuth} isUserAuth={isAuth} />
</div>
</MantineProvider>
);
}

Expand Down
Empty file.
21 changes: 21 additions & 0 deletions src/components/AboutCommunity/AboutCommunity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import './AboutCommunity.css'
import ContentWrapper from '../ContentWrapper/ContentWrapper'

const AboutCommunity = () => {
return (
<ContentWrapper>
<header className='contentWrapper-header'>
<p className='contentWrapper-title'>About</p>
</header>
<div className='contentWrapper-main'>
<p>Google Question Hub is a Platform to gather a lot of Knowledge.<br></br><br></br>
There are two main Goals here: <br></br><br></br>
1. To spread interesting content: Any content that might be interesting for people to see is welcome in this space. It could be in any format: a link, a share of another Quora answer, or an answer to a question already in this space, but it shouldn’t be of excessively low quality.<br></br><br></br>
2. Invite and Sharing: Make sure to invite your followers to this space, click on any ads you see, and otherwise simply be engaged in the space.
</p>
</div>
</ContentWrapper>
)
}

export default AboutCommunity
15 changes: 15 additions & 0 deletions src/components/AuthLayout/AuthLayout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#layoutWrapper {
max-width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background-color: rgb(240, 240, 240);
}

@media (max-width: 640px) {
#layoutWrapper {
background-color: rgb(255, 255, 255);
}
}
7 changes: 7 additions & 0 deletions src/components/AuthLayout/AuthLayout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import "./AuthLayout.css";

const AuthLayout = ({ children }) => {
return <div id="layoutWrapper">{children}</div>;
};

export default AuthLayout;
49 changes: 37 additions & 12 deletions src/components/Comment/Comment.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
.comment {
padding: 10px 0;
border-top: 1px solid rgba(0, 0, 0, 0.207);
border-bottom: 1px solid rgba(0, 0, 0, 0.207);
/* border-bottom: 1px solid rgba(0, 0, 0, 0.207); */
background-color: rgba(204, 204, 204, 0.138);
/* background-color: rgba(204, 204, 204, 0.138); */
background-color: rgba(252, 253, 253, 0.927);
}


Expand Down Expand Up @@ -37,22 +38,31 @@
}

.commentInfo .userName {
font-size: 0.7rem;
line-height: 15px;
font-weight: bold;
cursor: pointer;
}

.userTitle {
margin-right: 10px;
font-size: 0.6rem;
font-weight: 300;
}

.commentBody {
padding: 5px 35px 5px 70px;
cursor: pointer;
/* cursor: pointer; */
}

.commentBody p {
margin: 10px 0;
margin: 5px 0;
}

.commentBody .commentBodyText {
font-size: 14px;
font-size: 0.75rem;
font-weight: 400;
line-height: 20px;
}

.commentFooter {
Expand All @@ -65,7 +75,7 @@

.commentFooter p {
margin: 0 0 0 5px;
font-size: 16px;
font-size: 0.8rem;
font-weight: 400;
}

Expand All @@ -86,6 +96,7 @@
cursor: pointer;
color: rgba(0, 0, 0, 0.713);
border-radius: 5px;
background-color: rgba(227, 226, 226, 0.333);
}

.likeIcon.liked,
Expand All @@ -99,7 +110,7 @@

.commentLikes:hover,
.commentReply:hover {
background-color: rgba(55, 87, 255, 0.05);
background-color: rgba(227, 226, 226, 0.694);
}

.commentReplies.noDisplay {
Expand All @@ -125,16 +136,30 @@
}

.postAReply textarea {
width: 65%;
width: 68% !important;
height: 34px;
padding: 6px;
border-radius: 10px;
border-radius: 3px;
box-sizing: border-box;
padding: 8px 10px;
background: #FFFFFF;
border: 1px solid #9C9797;
font-size: 0.8rem;
font-weight: 500;
border: 1px solid #9C9797;
}

.postAReplyBtn {
padding: 10px 15px;
border: none;
padding: 15px;
border-radius: 10px;
border-radius: 3px;
font-size: 0.7rem;
font-weight: 500;
color: #fff;
background-color: #516df8;
cursor: pointer;
transition: .2s;
}

.postAReplyBtn:hover {
background-color: #3757FF;
}
8 changes: 4 additions & 4 deletions src/components/Comment/Comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import './Comment.css';
import { BiLike } from 'react-icons/bi';
import { RiReplyLine } from 'react-icons/ri';
import { Users } from '../../dummyData';
import { Users } from '../../db';

const Comment = ({ comment }) => {

Expand All @@ -28,7 +28,7 @@ const Comment = ({ comment }) => {
<img alt="user" src={process.env.PUBLIC_URL + Users.filter(u => u.id === comment.userId)[0].profilePicture} className='userprofileImage'/>
<div className='commentInfo'>
<p className='userName'>{Users.filter(u => u.id === comment.userId)[0].username}</p>
<p className='userTitle'>{Users.filter(u => u.id === comment.userId)[0].jobRole}</p>
<p className='userTitle'>{Users.filter(u => u.id === comment.userId)[0].jobRole}<span> · </span><span className='postTimeStamp'>5 days ago</span></p>
</div>
</div>
</div>
Expand All @@ -38,11 +38,11 @@ const Comment = ({ comment }) => {
<div className='commentFooter'>
<div className='commentfooterLeftSide'>
<div className='commentLikes' onClick={likeHandler}>
<BiLike className={`likeIcon ${isLiked ? 'liked' : ''}`} size='1.5em'/>
<BiLike className={`likeIcon ${isLiked ? 'liked' : ''}`} size='1.2rem'/>
<p className={`likeCounter ${isLiked ? 'liked' : ''}`}>{likes}</p>
</div>
<div className='commentReply' onClick={commentDisplayHandler}>
<RiReplyLine className='replyIcon' size='1.5em'/>
<RiReplyLine className='replyIcon' size='1.2rem'/>
<p>Reply</p>
</div>
</div>
Expand Down
14 changes: 8 additions & 6 deletions src/components/CommunitiesToFollow/CommunitiesToFollow.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
.communitiesToFollow {
margin-top: 20px;
width: 100%;
/* padding-bottom: 20px; */
background-color: #fff;
box-sizing: border-box;
border-radius: 5px;
border-radius: 3px;
border: 1px solid #ccc;
box-shadow: 0 1px 1px rgb(0 0 0 / 4%);
}

.communitiesToFollowHeader {
padding: 5px 10px;
padding: 10px;
border-bottom: 1px solid #ccc;
}

.communitiesToFollowHeaderText {
margin: 0;
font-size: 0.88rem;
font-size: 0.8rem;
font-weight: 700;
color: rgba(0, 0, 0, 0.85);
cursor: pointer;
Expand All @@ -42,11 +42,13 @@

.communitiesToFollowListItem p {
margin: 0;
font-size: 0.85rem;
font-size: 0.7rem;
font-weight: 500;
color: rgba(0, 0, 0, 0.775);
}

.communitiesToFollowListItem:hover {
background-color: rgba(250, 250, 241, 0.849);
/* background-color: rgba(250, 250, 241, 0.849); */
/* color: #000; */
background-color: rgba(227, 226, 226, 0.734);
}
Loading