Skip to content

Commit

Permalink
Modify some details for the new login style
Browse files Browse the repository at this point in the history
  • Loading branch information
Dachrono committed Nov 7, 2023
1 parent 630db02 commit 5403bf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Components/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useDispatch } from 'react-redux';
import { Link, useNavigate } from 'react-router-dom';
import { validateUser } from '../Redux/Slices/usersSlice';
import '../Style/Login.css';
import logo from '../img/logo.jpg';

function LoginPage() {
const navigate = useNavigate();
Expand Down Expand Up @@ -30,7 +31,8 @@ function LoginPage() {
return (
<div className="loginPage">
<h1>Welcome to the best experiences app</h1>
<h3>What are you waiting???, some experiences are waiting for you</h3>
<img src={logo} alt="logo" />
<h3>What are you waiting???, a lot of experiences are waiting for you</h3>
<form className="loginForm" onSubmit={tryLogin}>
{errorMessage && <div className="error-message">{errorMessage}</div>}
<input
Expand All @@ -41,7 +43,7 @@ function LoginPage() {
onChange={InputChange}
/>
<button className="btn" type="submit">Log In</button>
<Link className="d-flex-col " to="/Register"><button className="btn-non" type="button">Register</button></Link>
<Link className="d-flex-col " to="./Register"><button className="btn-non" type="button">Register</button></Link>
</form>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Components/MainPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function MainPage() {
<swiper-container slides-per-view={slidesPerView} navigation="true" class="swiper-container">
{DataExperiences.experiences.map((item) => (
<swiper-slide key={item.id}>
<Link className="cardlink" to={`./experiences/${item.id}`}>
<Link className="cardlink" to={`/experiences/${item.id}`}>
<div className="card">
<h2>{item.name}</h2>
<img src={item.image} alt="ExperiencePicture" />
Expand Down

0 comments on commit 5403bf0

Please sign in to comment.