-
Notifications
You must be signed in to change notification settings - Fork 3
Issue 77 incorporate playable games into individual game pages #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Issue 77 incorporate playable games into individual game pages #85
Conversation
…rporate_playable_games_into_individual_game_pages
…ividual_game_pages
|
|
||
| return ( | ||
| <div | ||
| className={`flex items-center justify-center border-[26px] border-accent bg-background [clip-path:polygon(20px_20px,calc(100%-20px)_20px,100%_32px,100%_30%,calc(100%-20px)_45%,calc(100%-20px)_calc(100%-8px),80%_calc(100%-8px),75%_calc(100%-20px),20px_calc(100%-20px),0%_60%,0%_30%,20px_25%)]`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the exact same border that is used in the landing page frame? If so, can we refactor it out to avoid repeating it?
| {gameEmbedID != "0" ? ( | ||
| <div className="flex justify-center"> | ||
| <GameEmbed | ||
| embedID={gameEmbedID} | ||
| gameWidth={gameWidth} | ||
| gameHeight={gameHeight} | ||
| gameImage={gameCover} | ||
| /> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible that we can supply a game embed but not a gameWidth, height or image? If this is possible, is there a case to catch this?
Change Summary
The cover image on the game page is now replaced by an iframe linked to itch. Database now stores values for game embed id, game width and game height. If there is no value for game embed id, the game page will still show the cover image
Change Form
Other Information
Game scaling may not be an exact match to itch, but this shouldn't be a problem for most games
Related issue