Skip to content

Commit

Permalink
last changes CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorGuyo committed Nov 16, 2023
1 parent 565dc94 commit a09a37a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frontend/src/components/CardDish.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
.title-dish-mobile-container {
color: #323232;
}
@media screen and (min-width: 700px) {
.title-dish-mobile-container {
display: none;
}
}

.image-card-dish-button {
width: 100%;
Expand Down Expand Up @@ -80,6 +85,7 @@
align-items: flex-end;
transition: all 0.3s ease-in-out;
}

.card-dish:hover {
scale: 1.02;
}
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/pages/Country.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useLoaderData } from "react-router-dom";
import { useState } from "react";
import { useEffect, useState } from "react";
import CardDish from "../components/CardDish";
import "./Country.css";

Expand All @@ -16,6 +16,10 @@ export default function Country() {
setDishes([...filteredDishes]);
}

useEffect(() => {
setDishes([...countryDishes]);
}, [country]);

return (
<div className="container-country-page">
<h1>{country.strArea}</h1>
Expand Down

0 comments on commit a09a37a

Please sign in to comment.