-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from Terrabuzz/SAIF-Remove-Warnings-For-Vercel
Saif remove warnings for vercel - testing with vercel
- Loading branch information
Showing
25 changed files
with
410 additions
and
38,241 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
data/ | ||
node_modules/* | ||
serviceWorker.js | ||
serviceWorker.js | ||
client/src/serviceWorker.js | ||
client/build/* | ||
client/node_modules/* |
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 |
---|---|---|
@@ -1,18 +1,29 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
commonjs: true, | ||
es2021: true, | ||
}, | ||
settings: { | ||
react: { | ||
version: '16.13.1', | ||
}, | ||
}, | ||
extends: [ | ||
'airbnb-base', | ||
'plugin:react/recommended', | ||
'airbnb', | ||
], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
}, | ||
plugins: [ | ||
'react', | ||
], | ||
rules: { | ||
'no-unused-vars': ['error', { argsIgnorePattern: 'next' }], | ||
'no-console': 'off', | ||
'import/no-cycle': [2, { maxDepth: 1 }], | ||
'no-console': 0, | ||
}, | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
src/serviceWorker.js |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,101 +1,149 @@ | ||
import React from 'react'; | ||
import ComponentStyling from '../../style/FirstLogin/MainContent.module.css'; | ||
|
||
const MainContent = ({ children, style }) => { | ||
const MainContent = () => { | ||
const activationArr = []; | ||
for (let i = 0; i < 8; i += 1) activationArr[i] = false; | ||
|
||
let activationArr = []; | ||
for (let i = 0; i < 8; ++i) | ||
activationArr[i] = false; | ||
|
||
return ( | ||
<div className={ComponentStyling.content}> | ||
<h1>Welcome!</h1> | ||
<h2>This looks like your first login!</h2> | ||
<h4>To get your started with your profile, let's go to some basic information</h4> | ||
<form className={ComponentStyling.formlogin}> | ||
<div className={`${ComponentStyling.FieldBox} ${ComponentStyling.Bio}`}> | ||
<label>What should your biography look like?<span>( 200 characters max )</span></label> | ||
<br /> | ||
<textarea | ||
type="text" | ||
name="biography" | ||
aria-placeholder='I like sports! Or I’m a website designer!' | ||
placeholder='I like sports! Or I’m a website designer!' | ||
className={ComponentStyling.ForBioTextArea} | ||
maxLength="200" | ||
rows='4' cols='50' | ||
autoFocus | ||
></textarea> | ||
</div> | ||
<div className={`${ComponentStyling.FieldBox}`}> | ||
<label>Activities</label> | ||
<br /> | ||
<textarea | ||
type="text" | ||
name="activities" | ||
placeholder="swimming, hiking, writing" | ||
aria-placeholder='swimming, hiking, writing' | ||
className={ComponentStyling.ForActivities} | ||
|
||
maxLength="50" | ||
></textarea> | ||
</div> | ||
<div className={`${ComponentStyling.FieldBox}`}> | ||
<label>Interests</label> | ||
<div className={ComponentStyling.GridSystemForInterests}> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[0] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
console.log(activationArr[0]); | ||
activationArr[0] = !activationArr[0]; | ||
console.log(activationArr[0]); | ||
}}>#philosophy</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[1] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
activationArr[1] = !activationArr[1]; | ||
}}>#food</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[2] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
activationArr[2] = !activationArr[2]; | ||
}}>#fast</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[3] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
activationArr[3] = !activationArr[3]; | ||
}}>#web</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[4] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
activationArr[4] = !activationArr[4]; | ||
}}>#cloud</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[5] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
activationArr[5] = !activationArr[5]; | ||
}}>#humor</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[6] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
activationArr[6] = !activationArr[6]; | ||
}}>#football</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button type='button' className={activationArr[7] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} onClick={() => { | ||
activationArr[7] = !activationArr[7]; | ||
}}>#karachi</button> | ||
</div> | ||
</div> | ||
</div> | ||
<input | ||
className={ComponentStyling.login} | ||
type="button" | ||
value="Submit!" | ||
/> | ||
</form> | ||
return ( | ||
<div className={ComponentStyling.content}> | ||
<h1>Welcome!</h1> | ||
<h2>This looks like your first login!</h2> | ||
<h4>To get your started with your profile, let's go to some basic information</h4> | ||
<form className={ComponentStyling.formlogin}> | ||
<div className={`${ComponentStyling.FieldBox} ${ComponentStyling.Bio}`}> | ||
<label> | ||
What should your biography look like? | ||
<span>( 200 characters max )</span> | ||
</label> | ||
<br /> | ||
<textarea | ||
type="text" | ||
name="biography" | ||
aria-placeholder="I like sports! Or I’m a website designer!" | ||
placeholder="I like sports! Or I’m a website designer!" | ||
className={ComponentStyling.ForBioTextArea} | ||
maxLength="200" | ||
rows="4" | ||
cols="50" | ||
/> | ||
</div> | ||
<div className={`${ComponentStyling.FieldBox}`}> | ||
<label>Activities</label> | ||
<br /> | ||
<textarea | ||
type="text" | ||
name="activities" | ||
placeholder="swimming, hiking, writing" | ||
aria-placeholder="swimming, hiking, writing" | ||
className={ComponentStyling.ForActivities} | ||
maxLength="50" | ||
/> | ||
</div> | ||
<div className={`${ComponentStyling.FieldBox}`}> | ||
<label>Interests</label> | ||
<div className={ComponentStyling.GridSystemForInterests}> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[0] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
// console.log(activationArr[0]); | ||
activationArr[0] = !activationArr[0]; | ||
// console.log(activationArr[0]); | ||
}} | ||
> | ||
#philosophy | ||
</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[1] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
activationArr[1] = !activationArr[1]; | ||
}} | ||
> | ||
#food | ||
</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[2] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
activationArr[2] = !activationArr[2]; | ||
}} | ||
> | ||
#fast | ||
</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[3] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
activationArr[3] = !activationArr[3]; | ||
}} | ||
> | ||
#web | ||
</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[4] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
activationArr[4] = !activationArr[4]; | ||
}} | ||
> | ||
#cloud | ||
</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[5] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
activationArr[5] = !activationArr[5]; | ||
}} | ||
> | ||
#humor | ||
</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[6] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
activationArr[6] = !activationArr[6]; | ||
}} | ||
> | ||
#football | ||
</button> | ||
</div> | ||
<div className={ComponentStyling.OuterToggleInterest}> | ||
<button | ||
type="button" | ||
className={activationArr[7] ? `${ComponentStyling.AddColorToClickedButton}` : `${ComponentStyling.RemoveColorToClickedButton}`} | ||
onClick={() => { | ||
activationArr[7] = !activationArr[7]; | ||
}} | ||
> | ||
#karachi | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
// </div> | ||
); | ||
<input | ||
className={ComponentStyling.login} | ||
type="button" | ||
value="Submit!" | ||
/> | ||
</form> | ||
</div> | ||
// </div> | ||
); | ||
}; | ||
|
||
export default MainContent; | ||
export default MainContent; |
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
Oops, something went wrong.