diff --git a/src/pages/Home/index.tsx b/src/pages/Home/index.tsx index 8b8db38..2619355 100644 --- a/src/pages/Home/index.tsx +++ b/src/pages/Home/index.tsx @@ -40,7 +40,7 @@ function Home() { {data.new_places.map((x: NewPlaces) => (
- {x.name} + {x.name}

{x.name}

@@ -49,7 +49,7 @@ function Home() {

{x.critic_rating}

-
+
@@ -77,12 +77,12 @@ function Home() {
{news.data.map((x: News) => (
-
- +
+
{x.link.split("/")[2].replace(/www\./, '')}

{x.header}

-
+

{x.likes_count}

@@ -105,7 +105,7 @@ function Home() { {popular.data.map((x) => (
- +

{x.name}

{x.location}

diff --git a/src/pages/Home/style.css b/src/pages/Home/style.css index 0a9e2c6..3a2162c 100644 --- a/src/pages/Home/style.css +++ b/src/pages/Home/style.css @@ -17,6 +17,13 @@ margin-top: 5px; } +.news-img { + width: 100%; + height: 100%; + object-fit: cover; + object-position: top; +} + .location-title { white-space: nowrap; text-overflow: ellipsis; @@ -56,6 +63,12 @@ margin-top: 0.75rem; } +.image-news-container { + height: 250px; + overflow: hidden; + border-radius: 7px; +} + @media screen and (max-width: 1300px) { .recently-added-section-card { width: 24.3%; @@ -79,6 +92,30 @@ .recently-added-section-card { width: 50%; } + + + .news-card { + display: block; + width: 100%; + } + + .news-img { + width: 120px; + height: 68px; + float: left; + } + + .image-news-container { + height: 68px; + float: left; + padding: 0 10px; + } + + .user-engagement { + margin-left: 140px; + border: none; + padding: 0; + } } @media screen and (max-width: 425px) {