mirror of
https://github.com/Lapikud/tipilan.git
synced 2026-05-08 10:00:46 +00:00
tournament page changes
This commit is contained in:
BIN
public/images/landing/cs2_tournament.jpg
Normal file
BIN
public/images/landing/cs2_tournament.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.3 MiB |
BIN
public/images/landing/lol_tournament.png
Normal file
BIN
public/images/landing/lol_tournament.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 MiB |
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user