Skip to content

Commit

Permalink
Added Kadu's new game banners
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Aug 20, 2023
1 parent 80fb377 commit 39ea75b
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 6 deletions.
Binary file added src/assets/Banner/Development.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Banner/Nightly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Banner/Stable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions src/components/Launch/LaunchPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ interface Props {
description: React.ReactNode,
websiteUrl: string,
icon: string,
banner: string,
}

const LaunchPage: React.FC<Props> = ({ version, releaseTag, playName, description, websiteUrl, icon }: Props) => {
const LaunchPage: React.FC<Props> = ({ version, releaseTag, playName, description, websiteUrl, icon, banner }: Props) => {
// If there isn't a version, something went wrong
if (!version) {
return <p>Error: No version.</p>;
}

return <>
<div className={styles.header}>
<div className={styles.header} style={{backgroundImage: `url("${banner}")`}}>
<div className={styles.icon_container}>
<img className={styles.icon} src={icon} alt="YARG" />
<div className={styles.game_info}>
YARG
<span className={styles.game_name}>
YARG
</span>
<div className={styles.version_badge}>
{releaseTag}
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Launch/LaunchPage/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
align-self: stretch;
flex-direction: column-reverse;

background-image: url("/src/assets/Background.png");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
Expand Down Expand Up @@ -57,6 +56,10 @@
text-transform: uppercase;
}

.game_name {
text-shadow: 0px 0px 6px rgba(0,0,0,0.5);
}

.version_badge {
display: flex;
padding: 3px 10px;
Expand Down
3 changes: 2 additions & 1 deletion src/routes/YARG/NewEngine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ function StableYARGPage() {
</strong>
</>}
websiteUrl="https://github.com/YARC-Official/YARG-NewEngine"
icon={DevYARGIcon}
icon={DevYARGIcon}
banner="/src/assets/Banner/Development.png"
/>
</>);
}
Expand Down
3 changes: 2 additions & 1 deletion src/routes/YARG/Nightly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ function NightlyYARGPage() {
If you do notice a bug, please be sure to report it on GitHub, or on our Discord.
</>}
websiteUrl="https://github.com/YARC-Official/YARG-BleedingEdge"
icon={NightlyYARGIcon}
icon={NightlyYARGIcon}
banner="/src/assets/Banner/Nightly.png"
/>
</>);
}
Expand Down
1 change: 1 addition & 0 deletions src/routes/YARG/Stable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function StableYARGPage() {
</>}
websiteUrl="https://github.com/YARC-Official/YARG"
icon={StableYARGIcon}
banner="/src/assets/Banner/Stable.png"
/>
</>);
}
Expand Down

0 comments on commit 39ea75b

Please sign in to comment.