-
Notifications
You must be signed in to change notification settings - Fork 0
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 #31 from WildCodeSchool/feat-5410-sign_up_step
Add Correction PR
- Loading branch information
Showing
56 changed files
with
4,086 additions
and
520 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,61 +1,62 @@ | ||
{ | ||
"name": "frontend", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"preview": "vite preview", | ||
"generate": "graphql-codegen", | ||
"lint": "npx @biomejs/biome lint ./ ", | ||
"format": "npx @biomejs/biome format ./ --write", | ||
"test": "vitest --coverage", | ||
"test:e2e": "npx playwright test" | ||
}, | ||
"dependencies": { | ||
"@apollo/client": "^3.11.8", | ||
"@parcel/watcher": "^2.4.1", | ||
"classname": "^0.0.0", | ||
"classnames": "^2.5.1", | ||
"graphql": "^16.9.0", | ||
"i18next": "^23.16.2", | ||
"i18next-browser-languagedetector": "^8.0.0", | ||
"i18next-xhr-backend": "^3.2.2", | ||
"jwt-decode": "^4.0.0", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-hook-form": "^7.54.2", | ||
"react-i18next": "^15.1.0", | ||
"react-router-dom": "^6.27.0", | ||
"rollup": "^3.0.0", | ||
"swiper": "^11.1.15" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@graphql-codegen/cli": "^5.0.2", | ||
"@graphql-codegen/client-preset": "^4.3.3", | ||
"@playwright/test": "^1.49.1", | ||
"@testing-library/dom": "^10.4.0", | ||
"@testing-library/jest-dom": "^6.6.2", | ||
"@testing-library/react": "^16.0.1", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/classnames": "^2.3.0", | ||
"@types/i18next": "^12.1.0", | ||
"@types/i18next-browser-languagedetector": "^2.0.2", | ||
"@types/i18next-xhr-backend": "^1.4.1", | ||
"@types/jest": "^29.5.14", | ||
"@types/react": "^18.3.12", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-i18next": "^7.8.3", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"@vitest/coverage-v8": "^2.1.3", | ||
"globals": "^15.9.0", | ||
"jsdom": "^25.0.1", | ||
"sass": "^1.78.0", | ||
"typescript": "^5.5.3", | ||
"vite": "^5.4.1", | ||
"vitest": "^2.1.3" | ||
} | ||
"name": "frontend", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"preview": "vite preview", | ||
"generate": "graphql-codegen", | ||
"lint": "npx @biomejs/biome lint ./ ", | ||
"format": "npx @biomejs/biome format ./ --write", | ||
"test": "vitest", | ||
"test:coverage": "vitest --coverage", | ||
"test:e2e": "npx playwright test" | ||
}, | ||
"dependencies": { | ||
"@apollo/client": "^3.11.8", | ||
"@parcel/watcher": "^2.4.1", | ||
"classname": "^0.0.0", | ||
"classnames": "^2.5.1", | ||
"graphql": "^16.9.0", | ||
"i18next": "^23.16.2", | ||
"i18next-browser-languagedetector": "^8.0.0", | ||
"i18next-xhr-backend": "^3.2.2", | ||
"jwt-decode": "^4.0.0", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-hook-form": "^7.54.2", | ||
"react-i18next": "^15.1.0", | ||
"react-router-dom": "^6.27.0", | ||
"rollup": "^3.0.0", | ||
"swiper": "^11.1.15" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@graphql-codegen/cli": "^5.0.2", | ||
"@graphql-codegen/client-preset": "^4.3.3", | ||
"@playwright/test": "^1.49.1", | ||
"@testing-library/dom": "^10.4.0", | ||
"@testing-library/jest-dom": "^6.6.2", | ||
"@testing-library/react": "^16.0.1", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/classnames": "^2.3.0", | ||
"@types/i18next": "^12.1.0", | ||
"@types/i18next-browser-languagedetector": "^2.0.2", | ||
"@types/i18next-xhr-backend": "^1.4.1", | ||
"@types/jest": "^29.5.14", | ||
"@types/react": "^18.3.12", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-i18next": "^7.8.3", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"@vitest/coverage-v8": "^2.1.3", | ||
"globals": "^15.9.0", | ||
"jsdom": "^25.0.1", | ||
"sass": "^1.78.0", | ||
"typescript": "^5.5.3", | ||
"vite": "^5.4.1", | ||
"vitest": "^2.1.3" | ||
} | ||
} |
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,8 +1,8 @@ | ||
import "./App.css"; | ||
import Landing from "./pages/LandingPage"; | ||
import LandingPage from "@pages/LandingPage"; | ||
|
||
function App() { | ||
return <Landing />; | ||
return <LandingPage />; | ||
} | ||
|
||
export default App; |
55 changes: 43 additions & 12 deletions
55
frontend/src/components/atoms/BasicButton/BasicButton.scss
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,49 @@ | ||
@import "@assets/variables.scss"; | ||
|
||
.basic-button { | ||
@include h2-phone; | ||
cursor: pointer; | ||
background: $secondary; | ||
color: $white; | ||
border-radius: 10px; | ||
padding: 14px 24px; | ||
border: none; | ||
width: 300; | ||
height: 50; | ||
&--basic { | ||
@include h2-phone; | ||
cursor: pointer; | ||
background: $secondary; | ||
color: $white; | ||
border-radius: 10px; | ||
padding: 14px 24px; | ||
border: none; | ||
width: 300; | ||
height: 50; | ||
|
||
&:disabled { | ||
opacity: 0.5; | ||
border: 1px solid $white; | ||
&:disabled { | ||
opacity: 0.5; | ||
border: 1px solid $white; | ||
} | ||
} | ||
|
||
&--white { | ||
@include h2-phone; | ||
cursor: pointer; | ||
background: $white; | ||
color: $primary; | ||
border-radius: 10px; | ||
padding: 14px 24px; | ||
border: none; | ||
width: 300; | ||
height: 50; | ||
|
||
&--focus { | ||
&:focus { | ||
background-color: $tertiary; | ||
color: $white; | ||
} | ||
} | ||
|
||
&:hover { | ||
background-color: $tertiary; | ||
color: $white; | ||
} | ||
|
||
&[aria-pressed="true"] { | ||
background-color: $tertiary; | ||
color: $white; | ||
} | ||
} | ||
} |
8 changes: 5 additions & 3 deletions
8
frontend/src/components/atoms/BasicButton/BasicButton.type.ts
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,5 +1,7 @@ | ||
export interface BasicButtonProps | ||
extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
children: React.ReactNode; | ||
classnames?: string; | ||
extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
children: React.ReactNode; | ||
classnames?: string; | ||
typeButton?: "basic" | "white"; | ||
hasFocus?: boolean; | ||
} |
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,4 +1,4 @@ | ||
export interface LittleLogoProps { | ||
hasLabel?: boolean; | ||
size?: "mobile" | "giant" | "desktop"; | ||
hasLabel?: boolean; | ||
size?: "mobile" | "giant" | "desktop"; | ||
} |
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
30 changes: 0 additions & 30 deletions
30
frontend/src/components/atoms/WhiteButton/WhiteButton.scss
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
frontend/src/components/atoms/WhiteButton/WhiteButton.type.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
frontend/src/components/molecules/BodyStepQuestions/BodyStepQuestions.type.ts
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,9 +1,9 @@ | ||
import type { MouseEventHandler } from "react"; | ||
|
||
export interface BodyStepQuestionsProps | ||
extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
children: React.ReactNode; | ||
ctaExit: MouseEventHandler<HTMLButtonElement>; | ||
questionLabel: string; | ||
isDesktopView?: boolean; | ||
extends React.ButtonHTMLAttributes<HTMLButtonElement> { | ||
children: React.ReactNode; | ||
ctaExit: MouseEventHandler<HTMLButtonElement>; | ||
questionLabel: string; | ||
isDesktopView?: boolean; | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nts/ExitSignUpStep/ExitSignUpStep.type.ts → ...les/ExitSignUpStep/ExitSignUpStep.type.ts
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,3 @@ | ||
export interface ExitSignUpStepProps { | ||
isCompleted?: boolean; | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
...ignUp/components/ExitSignUpStep/index.tsx → ...onents/molecules/ExitSignUpStep/index.tsx
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
2 changes: 1 addition & 1 deletion
2
...p/components/SignUpStep4/SignUpStep4.scss → ...es/FitnessGoalsView/FitnessGoalsView.scss
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,6 +1,6 @@ | ||
@import "@assets/variables.scss"; | ||
|
||
.sign-up-step-4 { | ||
.fitness-goals-view { | ||
height: 100vh; | ||
|
||
&__container { | ||
|
Oops, something went wrong.