Skip to content

Commit ce03e3a

Browse files
authored
Merge pull request #28 from Naetffy/Mateo
Mateo
2 parents a1d3b44 + 604d1f5 commit ce03e3a

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
REACT_APP_API_URL=https://clothcraft.azurewebsites.net
1+
REACT_APP_API_URL=https://clothcraft.azurewebsites.net

src/components/Navbar/NavBar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const NavBar = () => {
1010
const [selectedLink, setSelectedLink] = useState('');
1111
const location = useLocation();
1212
const isInitialMount = useRef(true);
13-
13+
1414
const [username, setUsername] = useState('');
1515
const [profileImage, setProfileImage] = useState(null); // Modified to handle image loading
1616

@@ -68,7 +68,7 @@ const NavBar = () => {
6868

6969
return (
7070
<Navbar expand="md" className="my-navbar">
71-
<Container>
71+
<Container className="mt-1">
7272
<Navbar.Brand href="/">
7373
<div className="navbar-brand">
7474
<img src="./images/logo.png" alt="" width="55" height="55" className="d-inline-block align-text-center" />

src/components/OutfitOfDay/Daily.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ const Daily = ({ day, handleSubmmit }) => {
2828

2929
return (
3030
<div className='daily-container'>
31-
<h3>Outfits for {day.toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' })}</h3>
31+
3232
<div className='outfit-list'>
3333
{outfits.map((outfit, index) => (
3434
<div
3535
key={index}
3636
className={`outfit-item ${index === selectedOutfitIndex ? 'selected' : ''}`}
3737
onClick={() => handleSelectOutfit(index)}
3838
>
39-
<img src={`data:image/jpeg;base64,${outfit.image}`} alt={`Outfit ${index + 1}`} />
39+
<img className={outfit.type} src={`data:image/jpeg;base64,${outfit.image}`} alt={`Outfit ${index + 1}`} />
4040
</div>
4141
))}
4242
</div>

src/pages/Login/Login.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function SignInSide() {
4646
}
4747
} catch (error) {
4848
if (error.response && error.response.status === 400) {
49-
setErrorMessage('Incorrect email or password');
49+
setErrorMessage(error.response.data);
5050
} else {
5151
setErrorMessage('Error en inicio de sesión');
5252
}

src/pages/Wardrobe/Wardrobe.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Botón de acción flotante */
2+
.fab {
3+
position: fixed;
4+
bottom: 20px;
5+
right: 20px;
6+
color: white;
7+
background-color: #A4826D;
8+
border-radius: 50%;
9+
width: 56px;
10+
height: 56px;
11+
display: flex;
12+
align-items: center;
13+
justify-content: center;
14+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
15+
font-size: 24px;
16+
}

src/pages/Wardrobe/Wardrobe.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Modal from '../../components/Wardrobe/modal';
44
import ProductListing from '../../components/Wardrobe/productListing';
55
import apiClient from '../../services/apiClient';
66
import { FiPlus } from "react-icons/fi";
7+
import './Wardrobe.css';
78

89
// This is the main page of the wardrobe. It will display the products in the wardrobe and allow the user to filter, sort and view the products.
910
const Wardrobe = () => {
@@ -81,7 +82,7 @@ const Wardrobe = () => {
8182
<button className="btn btn-primary me-4" onClick={() => openModal('view')} style={{ backgroundColor: '#A4826D', borderColor: '#A4826D' }}>
8283
View
8384
</button>
84-
<a href='/Wardrobe/FormGetClothing'><FiPlus size={35} style={{ color: '#A4826D' }} /></a>
85+
<a href='/Wardrobe/FormGetClothing' className="fab"><FiPlus size={35} /></a>
8586
</div>
8687
</div>
8788
<div className="row">

0 commit comments

Comments
 (0)