Skip to content

Commit

Permalink
Change browser router ubication, Modify some display messages, change…
Browse files Browse the repository at this point in the history
… little issue with the main style
  • Loading branch information
Dachrono committed Nov 8, 2023
1 parent 38e90ba commit bbec2d4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Components/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function LoginPage() {

return (
<div className="loginPage">
<h1>Welcome to the best experiences app</h1>
<h1>Welcome to the best gourmet experiences app</h1>
<img src={logo} alt="logo" />
<h3>What are you waiting???, a lot of experiences are waiting for you</h3>
<h3>What are you waiting for??? A lot of experiences are waiting for you</h3>
<form className="loginForm" onSubmit={tryLogin}>
{errorMessage && <div className="error-message">{errorMessage}</div>}
<input
Expand Down
2 changes: 1 addition & 1 deletion src/Components/MainPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function MainPage() {
return (
<div className="mainContainer">
<h1>{`Welcome ${DataUser.user.name}`}</h1>
<p className="secondtitle">at the best experiences in the world</p>
<p className="secondtitle">at the best gourmet experiences in the world</p>
<swiper-container slides-per-view={slidesPerView} navigation="true" class="swiper-container">
{DataExperiences.experiences.map((item) => (
<swiper-slide key={item.id}>
Expand Down
6 changes: 6 additions & 0 deletions src/Style/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@
width: 90%;
height: 100%;
}

@media (max-width: 800px) {
.mainContainer h1 {
margin: 6rem 10px 15px 10px;
}
}
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter as Router } from 'react-router-dom';
import { Provider } from 'react-redux';
import store from './Redux/store';
import './index.css';
Expand All @@ -8,6 +9,8 @@ import App from './App';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<Provider store={store}>
<App />
<Router>
<App />
</Router>
</Provider>,
);

0 comments on commit bbec2d4

Please sign in to comment.