-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to About Us, Project Details, and Dashboard (#88)
* Added footer to About Us page * Refactored redundant code in nav ui * Added project details route * Added new text to landing page * Refactored project card as a separate component * Added class names to project-info component and updated general styling * Add window reload to trigger Auth0 * Added config to add default title and responsive meta tag to index.html * Added method to force reload browser to trigger login * Added callback and dashboard edit routes * Added profile input fields and form component * Moved nav bar to app.js * Refactored project detail component to business and volunteer views * Updated text content on landing page and general styling * Updated base styling * Added profile component * Added conditional rendering for profile form fields based on user type * Changed svg fill color to prevent blending with white background * Moved footer to app.js and added logout route * Add redirect to dashboard on profile form submission * Changed About Us component to functional component * Replaced remaining elements in project pane with project card components * Added new profile form, business and volunteer profile edit forms * Removed form component * Abstracted Posed button into its own component * Updated button styling * Added project editing and new project form routes * Moved profile forms to profile form folder * Moved profile component to its own folder * Updated styling to make footer stay at bottom of window * Added form component for creating new projects * Added sign up and edit project buttons to project info component * Renamed existingSite to businessSite * Updated input labels * Added general form styling * Removed unneeded fields * Removed unnecessary statements * Moved sign up button to ProjectInfo component * Added links to edit project and create project buttons * Updated project card styling * Updated with latest changes from voluntech repo * Connecting latest projects endpoint to home page latest projects. #83
- Loading branch information
1 parent
ba2535c
commit efbb366
Showing
42 changed files
with
1,460 additions
and
334 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react'; | ||
import posed from 'react-pose'; | ||
|
||
const Posedbutton = posed.button({ | ||
hoverable: true, | ||
pressable: true, | ||
init: { scale: 1 }, | ||
hover: { scale: 1.2 }, | ||
press: { scale: 1.1 }, | ||
}); | ||
|
||
const Button = (props) => { | ||
return ( | ||
<Posedbutton {...props}/> | ||
); | ||
}; | ||
|
||
export default Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
|
||
import AuthRedirect from '../auth-redirect/auth-redirect'; | ||
|
||
const Callback = (props) => { | ||
return ( | ||
<AuthRedirect /> | ||
); | ||
}; | ||
|
||
export default Callback; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// packages | ||
import React from 'react'; | ||
import { Redirect } from 'react-router-dom'; | ||
|
||
import NewProfileForm from '../profile-form/new-profile-form'; | ||
import BusinessProfileEdit from '../profile-form/business-profile-edit'; | ||
import VolunteerProfileEdit from '../profile-form/volunteer-profile-edit'; | ||
|
||
// styles | ||
import './dashboard-edit.scss'; | ||
/* TODO Add redux for conditional rendering */ | ||
class DashboardEdit extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
userExist: null, | ||
userType: null, | ||
} | ||
} | ||
|
||
render() { | ||
const { location } = this.props; | ||
|
||
return ( | ||
<React.Fragment> | ||
{this.state.userType === null && <NewProfileForm />} | ||
{this.state.userType === 'business' && <BusinessProfileEdit />} | ||
{this.state.userType === 'volunteer' && <VolunteerProfileEdit />} | ||
</React.Fragment> | ||
); | ||
} | ||
} | ||
|
||
export default DashboardEdit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
@import '../../../style/variables.scss'; | ||
|
||
/*.profile-form { | ||
padding-top: 100px; | ||
position: static; | ||
display: flex; | ||
flex-flow: row wrap; | ||
justify-content: center; | ||
margin: auto; | ||
} | ||
.form-container { | ||
display: flex; | ||
flex-flow: row wrap; | ||
justify-content: center; | ||
} | ||
.profile-container { | ||
width: 60vw; | ||
display: flex; | ||
flex-flow: row wrap; | ||
justify-content: center; | ||
align-items: center; | ||
margin: 0 0 20px 0; | ||
color: $color-primary; | ||
} | ||
.profile-container > h2, h3 { | ||
width: 100%; | ||
text-align: center; | ||
} | ||
.profile-container > span > p { | ||
color: $color-primary; | ||
} | ||
.profile-container > h2 { | ||
background-color: $color-quaternary; | ||
margin: 0; | ||
padding: 18px 0 18px 0; | ||
border-radius: 10px 10px 0 0; | ||
color: $color-primary; | ||
} | ||
.profile-form p { | ||
color: $color-octonary; | ||
} | ||
.profile-edit-fields { | ||
display: flex; | ||
flex-flow: column wrap; | ||
margin: 20px 0 0 0; | ||
width: 80%; | ||
justify-content: center; | ||
font-weight: bold; | ||
} | ||
.profile-edit-fields > label { | ||
padding: 1em 0 1em 0; | ||
} | ||
.profile-edit-fields input[type='text'], input[type='email'], input[type='url'], textarea { | ||
font-family: $raleway; | ||
font-size: 18px; | ||
} | ||
.user-type label { | ||
font-size: 20px; | ||
} | ||
.user-type > label:nth-of-type(2) { | ||
padding-left: 2em; | ||
} | ||
.profile-edit-fields button { | ||
width: 80px; | ||
background-color: $color-quaternary; | ||
margin: 20px 0 20px 0; | ||
font-size: 16px; | ||
align-self: center; | ||
color: $color-primary; | ||
} | ||
button:disabled { | ||
background-color: #dddddd; | ||
color: #666666; | ||
} | ||
.skills-group { | ||
margin: 30px 0 0 0; | ||
} | ||
.skills-checkbox { | ||
display: grid; | ||
grid-gap: 20px; | ||
grid-template-columns: [label] 40% [input] 2em ; | ||
max-height: 270px; | ||
padding-left: 22%; | ||
} | ||
.skills-checkbox > li { | ||
border: 1px transparent solid; | ||
display:inline-block; | ||
width: 12em; | ||
align-self: center; | ||
} | ||
.invalid-feedback { | ||
color: red; | ||
}*/ |
Oops, something went wrong.