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

added profile info update card #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules/
public/
public/
rules: { ... 'react/prop-types': ['off'],
}
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"import/no-extraneous-dependencies": 0,
"react/jsx-filename-extension": 0,
// proptypes is not required :
"react/prop-types": 2,
"react/prop-types":0,
"no-unused-vars":0,
"react/jsx-props-no-spreading":0,
// Label must have a htmlFor attr
Expand Down
4 changes: 3 additions & 1 deletion src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ import LoadingSimple from '../UI/LoadingSimple/LoadingSimple'
// Routes and Layout for public/unauthorized user
import Layout from '../Layouts/PublicLayout'

import ProfilePage from '../../pages/Profile/ProfilePage'

const App = ({ title }) => {
// Get current location. if it's homepage => rendering landing
const location = useLocation()

let layoutToDisplay = ''

if (location.pathname === '/') {
layoutToDisplay = <Layout />
layoutToDisplay = <ProfilePage />
}
return <div className={styles.Container}>{layoutToDisplay}</div>
}
Expand Down
35 changes: 35 additions & 0 deletions src/pages/Profile/Components/ProfileInfoUpdate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react'
import styles from './ProfileInfoUpdate.module.scss'
import TickMark from '../assets/TickMark.svg'
import close from '../assets/close.svg'

export default () => (
<div className={styles.CoursesContainer}>
<div className={styles.CompleteMark}>
<img src={TickMark} alt="Your imformation is saved" />
</div>
<div className={styles.title}>
<p>Success!</p>
</div>
<div className={styles.description}>
<span>Your profile information was updated</span>
</div>
<div className={styles.closeApp}>
<img src={close} alt="close application" />
</div>
</div>
)

/* <div className={styles.closeApp}>
<img src={close} alt="close application" />
</div>
<div className={styles.completedMark}>
<img src={complete} alt="attandance complete" />
</div>
<p>Take attandance sucessfully</p>
<div className={styles.bottom}>
<button className={styles.btn}>Live Lecture</button>
<h6>Historic Attandance</h6>
</div>

*/
61 changes: 61 additions & 0 deletions src/pages/Profile/Components/ProfileInfoUpdate.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@import 'sass/variables';

* {
box-sizing: border-box;
}
body {
background-image: url('../assets/Group\ 1595.png');// delete this when the profile page is made , it will pop up over that page
background-size: 720px 1010px; // delete this when the profile page is made
background-repeat: no-repeat;// delete this when the profile page is made
background-position-x: center;// delete this when the profile page is made

display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
}

.CoursesContainer {

background-color:$secondary-color;
border-radius: 5px;
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
max-width: 100%;
padding: 20px;
overflow: hidden;
width: 440px;
height: 120px;
display: inline-grid;
grid-template-columns: 47px 1fr 24px;
grid-template-rows: 50% 50%;
grid-template-areas:
'tickmark Title closeApp'
'tickmark description closeApp';
.CompleteMark {
grid-area: tickmark;
align-self: center;
> img {
height: 34px;
width: 47px;
padding-right: 10px;
}
}

.title {
grid-area: Title;
font-size: 18px;
color: $primary-color;
align-self: end;
}
.closeApp {
grid-area: closeApp;
}
.description {
grid-area: description;
font-size: 16px;
color: #707070;
align-self: start;
}
}

15 changes: 15 additions & 0 deletions src/pages/Profile/ProfilePage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'
import ProfileInfoUpdated from './Components/ProfileInfoUpdate'
import styles from './ProfilePage.module.scss'

const ProfilePage = props => {
return (
<div className={styles.mainBody}>
<ProfileInfoUpdated />
</div>
)
}

ProfilePage.propTypes = {}

export default ProfilePage
4 changes: 4 additions & 0 deletions src/pages/Profile/ProfilePage.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.mainBody{
padding: 3rem;
}

Binary file added src/pages/Profile/assets/Group 1595.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/pages/Profile/assets/TickMark.svg
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/pages/Profile/assets/close.svg
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 src/pages/Profile/assets/icons8-checked-96@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading