Skip to content

Commit

Permalink
Update page.tsx update link defenders
Browse files Browse the repository at this point in the history
  • Loading branch information
a1exalexander authored Dec 25, 2024
1 parent 14f9346 commit ac0c1fa
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,26 +98,24 @@ const getNumberOfYearsAndMonthsFromMay2022 = () => {
const years = Math.floor(diffInMonths / 12);
const months = diffInMonths % 12;

const yearsText = years === 1 ? '1 year' : `${years} years`;
const monthsText = months === 1 ? '1 month' : `${months} months`;
const yearsText = years === 1 ? '1 YEAR' : `${years} YEARS`;
const monthsText = months === 1 ? '1 MONTH' : `${months} MONTHS`;

if (years === 0) {
return monthsText;
} else if (months === 0) {
return yearsText;
} else {
return `${yearsText} and ${monthsText}`;
return `${yearsText} AND ${monthsText}`;
}
};


export default function Home() {
return (
<>
<Ticker href="https://www.savedefenders.info/">
For <strong>{getNumberOfYearsAndMonthsFromMay2022()}</strong>, Russia has
been hiding the condition and location of more than 800 captured defenders of
<strong> Azovstal and Mariupol</strong>
<Ticker href="https://www.savemariupolheroes.org/">
FOR <strong>{getNumberOfYearsAndMonthsFromMay2022()}</strong>, ABOUT <strong>1500</strong> AZOVSTEEL SOLDIERS OF ALL UNITS ARE STILL CAPTURED, INCLUDING <strong>700+</strong> AZOV SOLDIERS.
</Ticker>

<main className={styles.main}>
Expand Down

0 comments on commit ac0c1fa

Please sign in to comment.