-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from HasangerGames/grid-to-flexbox
Grid to flexbox
- Loading branch information
Showing
28 changed files
with
224 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
vendor | ||
.git | ||
.github | ||
.next | ||
.vscode | ||
node_modules | ||
*.md | ||
package.json | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
export default function ArticleLayout({ children }: React.PropsWithChildren) { | ||
return ( | ||
<main className="flex flex-col-reverse gap-4 sm:grid sm:grid-cols-6 lg:grid-cols-8"> | ||
{children} | ||
</main> | ||
<main className="flex flex-col-reverse gap-4 md:flex-row">{children}</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
import { getSuroiItem, getSuroiKillfeedImageLink } from "@/lib/util/suroi" | ||
import Image from "next/image" | ||
import { getSuroiItem, getSuroiKillfeedImageLink } from "@/lib/util/suroi"; | ||
import Image from "next/image"; | ||
|
||
export default function KillFeedImage({weaponID, width, height, rotation}: KillFeedImageProps) { | ||
return ( | ||
<Image | ||
width={width ?? 100} | ||
height={height ?? 100} | ||
style={{ | ||
"rotate": `${rotation ?? 0}deg` | ||
}} | ||
src={getSuroiKillfeedImageLink(getSuroiItem(weaponID))} | ||
alt={getSuroiItem(weaponID)?.name} | ||
/> | ||
) | ||
export default function KillFeedImage({ | ||
weaponID, | ||
width, | ||
height, | ||
rotation, | ||
}: KillFeedImageProps) { | ||
return ( | ||
<Image | ||
width={width ?? 100} | ||
height={height ?? 100} | ||
style={{ | ||
rotate: `${rotation ?? 0}deg`, | ||
}} | ||
src={getSuroiKillfeedImageLink(getSuroiItem(weaponID))} | ||
alt={getSuroiItem(weaponID)?.name} | ||
/> | ||
); | ||
} | ||
|
||
export interface KillFeedImageProps extends React.PropsWithChildren { | ||
weaponID: string, | ||
width?: number, | ||
height?: number, | ||
rotation?: number, | ||
weaponID: string; | ||
width?: number; | ||
height?: number; | ||
rotation?: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,41 @@ | ||
import { getSuroiImageLink, getSuroiItem } from "@/lib/util/suroi" | ||
import Image from "next/image" | ||
import { getSuroiImageLink, getSuroiItem } from "@/lib/util/suroi"; | ||
import Image from "next/image"; | ||
|
||
export default function SuroiItemImage({itemID, width, height, rotation, variation, append, dual}: SuroiItemImageProps) { | ||
return ( | ||
<Image | ||
width={width ?? 100} | ||
height={height ?? 100} | ||
style={{ | ||
"rotate": `${rotation ?? 0}deg` | ||
}} | ||
src={getSuroiImageLink(getSuroiItem(itemID, variation ?? undefined, append ?? "", dual ?? false))} | ||
alt={getSuroiItem(itemID)?.name} | ||
/> | ||
) | ||
export default function SuroiItemImage({ | ||
itemID, | ||
width, | ||
height, | ||
rotation, | ||
variation, | ||
append, | ||
dual, | ||
}: SuroiItemImageProps) { | ||
return ( | ||
<Image | ||
width={width ?? 100} | ||
height={height ?? 100} | ||
style={{ | ||
rotate: `${rotation ?? 0}deg`, | ||
}} | ||
src={getSuroiImageLink( | ||
getSuroiItem( | ||
itemID, | ||
variation ?? undefined, | ||
append ?? "", | ||
dual ?? false, | ||
), | ||
)} | ||
alt={getSuroiItem(itemID)?.name} | ||
/> | ||
); | ||
} | ||
|
||
export interface SuroiItemImageProps extends React.PropsWithChildren { | ||
itemID: string, | ||
width?: number, | ||
height?: number, | ||
rotation?: number, | ||
variation?: number, | ||
append?: string, | ||
dual?: boolean | ||
itemID: string; | ||
width?: number; | ||
height?: number; | ||
rotation?: number; | ||
variation?: number; | ||
append?: string; | ||
dual?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.