-
Notifications
You must be signed in to change notification settings - Fork 446
Arnau's auth app #342
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
Open
vidalhuix
wants to merge
14
commits into
Technigo:master
Choose a base branch
from
vidalhuix:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Arnau's auth app #342
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6e18d4f
Delete netlify.toml
AntonellaMorittu 6002ffa
start with the frontend, add dependencies, created components header,…
4a7d6e0
add changes in the styling component SignIn
44ae1c8
add loginform and style it, got to go with the backend
e91eaba
did all authentication code along with Van
2303fe1
add express-list-endopoints and changed /sessions function
4bbc06c
removed dubble app.get('/'...
db7d311
add endpoints and express-list-endpoints
46a4b75
uppdate Readme file
1dcddc1
add pablo escobar
b397f8a
add zustand and start adding onClick to the buttons on HomePage
adabfd8
add onClick functions, zustand gloval store and styling components
e9d4816
add vite svg
cc437d6
unsaved changes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,2 +1,3 @@ | ||
| node_modules | ||
| package-lock.json | ||
| package-lock.json | ||
| .env |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hidden or 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,6 @@ | ||
| .app-container { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| width: 100%; | ||
| } |
This file contains hidden or 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,14 @@ | ||
| import { Footer } from "./Components/Footer"; | ||
| import { HomePage } from "./Components/HomePage"; | ||
| import { Header } from "./Components/Header"; | ||
| import "./App.css" | ||
|
|
||
| export const App = () => { | ||
| return <div>Find me in src/app.jsx!</div>; | ||
| return ( | ||
| <div className="app-container"> | ||
| <Header /> | ||
| <HomePage /> | ||
| <Footer /> | ||
| </div> | ||
| ) | ||
| }; |
This file contains hidden or 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,14 @@ | ||
| .button-container button { | ||
| padding: 8px 16px; | ||
| background-color: #007bff; | ||
| color: #fff; | ||
| border: none; | ||
| border-radius: 6px; | ||
| cursor: pointer; | ||
| margin: 5px 0; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .button-container button:hover { | ||
| background-color: #0056b3; | ||
| } |
This file contains hidden or 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,31 @@ | ||
| import "./Buttons.css"; | ||
|
|
||
| export const BtnSignIn = ({ onClick }) => { | ||
| return ( | ||
| <div className="button-container"> | ||
| <button onClick={onClick} type="button"> | ||
| Sign In | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sign in and Login are synonyms, it's sign up or register if you prefer :) |
||
| </button> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export const BtnLogin = ({ onClick }) => { | ||
| return ( | ||
| <div className="button-container"> | ||
| <button onClick={onClick} type="button"> | ||
| Login | ||
| </button> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export const BtnSubmit = ({ onClick }) => { | ||
| return ( | ||
| <div className="button-container"> | ||
| <button onClick={onClick} type="submit"> | ||
| Submit | ||
| </button> | ||
| </div> | ||
| ); | ||
| }; | ||
This file contains hidden or 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,22 @@ | ||
| .footer-container { | ||
| position: fixed; | ||
| bottom: 0; | ||
| margin-top: auto; | ||
| display: flex; | ||
| flex-direction: row; | ||
| justify-content: space-between; | ||
| align-items: center; | ||
| padding: 5px; | ||
| background-color: #303030; | ||
| color: rgb(255, 255, 255); | ||
| width: 100%; | ||
| } | ||
|
|
||
| .footer-container p { | ||
| margin: 10px; | ||
| font-size: 0.85rem; | ||
| } | ||
|
|
||
| .logo { | ||
| height: 30px; | ||
| } |
This file contains hidden or 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,10 @@ | ||
| import "./Footer.css" | ||
|
|
||
| export const Footer = () => { | ||
| return ( | ||
| <footer className="footer-container"> | ||
| <p>2024 by Arnau Vidal </p> | ||
| <img src="/technigo-logo.svg" alt="Technigo logo" className="logo" /> | ||
| </footer> | ||
| ) | ||
| } |
This file contains hidden or 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,32 @@ | ||
| .header-container { | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| color: white; | ||
| font-size: 1.5rem; | ||
| width: 100%; | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| .header-container h1 { | ||
| text-align: center; | ||
| font-size: 2rem; | ||
| backdrop-filter: blur(2px); | ||
| margin: 20px; | ||
| padding: 0px 15px; | ||
| border-radius: 15px; | ||
| } | ||
|
|
||
| /* TABLET SCREENS min 745px ------------------------------------------------------------ */ | ||
|
|
||
| @media (min-width: 745px) { | ||
| .header-container { | ||
| min-height: 300px; | ||
| } | ||
|
|
||
| .header-container h1 { | ||
| font-size: 4rem; | ||
| backdrop-filter: blur(5px); | ||
| } | ||
| } |
This file contains hidden or 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,9 @@ | ||
| import "./Header.css"; | ||
|
|
||
| export const Header = () => { | ||
| return ( | ||
| <div className="header-container"> | ||
| <h1>Arnau's Authentication Project</h1> | ||
| </div> | ||
| ); | ||
| }; |
This file contains hidden or 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,49 @@ | ||
| .home-page-container { | ||
| text-align: center; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: center; | ||
| align-items: center; | ||
| width: 95%; | ||
| color: white; | ||
| background-color: rgba(0, 0, 0, 0.443); | ||
| box-shadow: 2px 2px 20px 10px rgba(0, 0, 0, 0.15); | ||
| padding: 10px; | ||
| backdrop-filter: blur(4px); | ||
| border-radius: 12px; | ||
| top: 0; | ||
| left: 0; | ||
| border: 2px solid white; | ||
| padding-bottom: 45px; | ||
| } | ||
|
|
||
| .nav { | ||
| position: relative; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: space-between; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .button-container button { | ||
| padding: 8px 16px; | ||
| background-color: #007bff; | ||
| color: #fff; | ||
| border: none; | ||
| border-radius: 6px; | ||
| cursor: pointer; | ||
| margin: 5px 0; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .button-container button:hover { | ||
| background-color: #0056b3; | ||
| } | ||
|
|
||
| /* TABLET SCREENS min 745px ------------------------------------------------------------ */ | ||
|
|
||
| @media (min-width:745px){ | ||
| .home-page-container { | ||
| width: 500px; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're not really listing the endpoints urls, try with:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry Antonella, I forgot to tell that I couldn't finish the auth project. I got stuck first on getting the endpoints to work on postman and later trying to deploy to Netlify, so I had no time to connect the FE to the BE. I will try to work on it in another moment. Just now I'm working on the FP.