tournament page changes

This commit is contained in:
Rene Arumetsa
2026-05-01 17:59:16 +03:00
parent 13d0a32521
commit e1bb17ee5a
3 changed files with 7 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 MiB

View File

@@ -8,6 +8,7 @@ interface TournamentCardProps {
buttonText: string; buttonText: string;
buttonHref: string; buttonHref: string;
backgroundImage: string; backgroundImage: string;
objectPosition?: string;
} }
function TournamentCard({ function TournamentCard({
@@ -15,6 +16,7 @@ function TournamentCard({
buttonText, buttonText,
buttonHref, buttonHref,
backgroundImage, backgroundImage,
objectPosition = "center",
}: TournamentCardProps) { }: TournamentCardProps) {
return ( return (
<div className="relative bg-[#0E0F19] border-r border-[#1F5673] flex flex-col items-center justify-center h-[818px]"> <div className="relative bg-[#0E0F19] border-r border-[#1F5673] flex flex-col items-center justify-center h-[818px]">
@@ -22,7 +24,8 @@ function TournamentCard({
src={backgroundImage} src={backgroundImage}
alt="" alt=""
fill fill
className="object-cover object-center opacity-50" className="object-cover opacity-50"
style={{ objectPosition }}
/> />
<div className="relative z-10 flex flex-col items-center text-center"> <div className="relative z-10 flex flex-col items-center text-center">
<h2 <h2
@@ -59,7 +62,7 @@ export default async function Tourney({
title="COUNTER-STRIKE 2" title="COUNTER-STRIKE 2"
buttonText={t("tournaments.clickButton")} buttonText={t("tournaments.clickButton")}
buttonHref="/turniirid/cs2" buttonHref="/turniirid/cs2"
backgroundImage="/images/landing/compete_teaser.jpg" backgroundImage="/images/landing/cs2_tournament.jpg"
/> />
{/* LoL */} {/* LoL */}
@@ -67,7 +70,8 @@ export default async function Tourney({
title="LEAGUE OF LEGENDS" title="LEAGUE OF LEGENDS"
buttonText={t("tournaments.clickButton")} buttonText={t("tournaments.clickButton")}
buttonHref="/turniirid/lol" buttonHref="/turniirid/lol"
backgroundImage="/images/landing/league_ticket.jpg" backgroundImage="/images/landing/lol_tournament.png"
objectPosition="bottom left"
/> />
</div> </div>
</div> </div>