Skip to content

Commit

Permalink
fix: latest news
Browse files Browse the repository at this point in the history
  • Loading branch information
pataruco committed Dec 10, 2024
1 parent 9dac52d commit 2d9ddb8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
4 changes: 4 additions & 0 deletions website/src/components/banner/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
@include breakpoints.medium-screen {
@include text-styles.header-1--mobile;
}

@include breakpoints.small-screen {
@include text-styles.header-1--mobile;
}
}

p {
Expand Down
3 changes: 3 additions & 0 deletions website/src/components/homepage-hero/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
@include text-styles.header-1;
margin: 0;
margin-block-end: var(--spacing-6);
@include breakpoints.from-small-to-medium-screen {
@include text-styles.header-1--mobile;
}
}
h3 {
@include text-styles.header-2;
Expand Down
17 changes: 14 additions & 3 deletions website/src/components/latest-news/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
@include breakpoints.medium-screen {
@include text-styles.header-1--mobile;
}
@include breakpoints.small-screen {
@include text-styles.header-1--mobile;
}
}

&__articles {
Expand All @@ -36,6 +39,11 @@
margin: 0;
padding: 0;
margin-block-end: var(--spacing-12);
@include breakpoints.small-screen {
flex-wrap: unset;
align-items: center;
flex-direction: column;
}

/* Last two */
& li:nth-last-of-type(-n + 2) {
Expand Down Expand Up @@ -63,14 +71,17 @@
border: 1px solid var(--grey-300);
min-width: 300px;
flex: 1 0 0;
overflow: hidden;

@include breakpoints.small-screen {
min-width: 100%;
}

& a {
text-decoration: none;
}

&__img {
border-top-left-radius: var(--border-radius-xl);
border-top-right-radius: var(--border-radius-xl);
height: var(--spacing-56);
background-size: cover;
background-repeat: no-repeat;
Expand All @@ -81,7 +92,7 @@
}
}

& > div {
& div {
padding: var(--spacing-4);
}

Expand Down
2 changes: 1 addition & 1 deletion website/src/components/latest-news/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Card: React.FC<CardProps> = ({ title, date, imageUrl, lang, slug }) => {
return (
<li className={styles.article}>
<Link href={`/blog/${slug}`}>
<article className={styles.article}>
<article>
<div
className={styles.article__img}
style={{
Expand Down

0 comments on commit 2d9ddb8

Please sign in to comment.