This commit is contained in:
parent
729704984c
commit
4bd975796e
148 changed files with 4865 additions and 27561 deletions
22
src/components/SteamGame.astro
Normal file
22
src/components/SteamGame.astro
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
interface Props {
|
||||
id: string;
|
||||
postscript?: string
|
||||
}
|
||||
|
||||
const { id, postscript } = Astro.props;
|
||||
|
||||
const link = new URL(`https://store.steampowered.com/widget/${id}/`)
|
||||
|
||||
if (postscript) {
|
||||
link.searchParams.set("t", postscript)
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
<iframe
|
||||
src={link.toString()}
|
||||
frameborder="0"
|
||||
width="100%"
|
||||
height="190">
|
||||
</iframe>
|
Loading…
Add table
Add a link
Reference in a new issue