Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60,531 changes: 37,816 additions & 22,715 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
"@changesets/cli": "^2.23.0",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@storybook/addon-actions": "^6.5.9",
"@storybook/addon-essentials": "^6.5.9",
"@storybook/addon-interactions": "^6.5.9",
Expand All @@ -46,11 +47,15 @@
"react-use": "17.4.0",
"ts-jest": "^28.0.6",
"ts-node": "^10.8.2",
"typescript": "^4.7.4",
"@changesets/cli": "^2.23.0"
"typescript": "^4.7.4"
},
"dependencies": {
"classnames": "^2.3.1"
"@fontsource/pixelify-sans": "^5.0.1",
"@fontsource/roboto": "^5.0.8",
"@mui/icons-material": "^5.14.19",
"@mui/material": "^5.14.20",
"classnames": "^2.3.1",
"react-hexgrid": "^2.0.1"
},
"files": [
"lib/",
Expand Down
20 changes: 19 additions & 1 deletion src/HexGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,40 @@ type Props = {} & React.SVGProps<SVGSVGElement>
* @param {string} SVGProps.viewBox - the container's internal coordinate system
* @returns
*/

const ShadowFilter = () => (
<filter id="hexShadow" height="130%">
<feGaussianBlur in="SourceAlpha" stdDeviation="2.5" /> {/* Adjust blur */}
<feOffset dx="2" dy="2" result="offsetblur" /> {/* Adjust shadow offset */}
<feComponentTransfer>
<feFuncA type="linear" slope="0.5"/> {/* Adjust shadow opacity */}
</feComponentTransfer>
<feMerge>
<feMergeNode />
<feMergeNode in="SourceGraphic" /> {/* Combine blur with original graphic */}
</feMerge>
</filter>
);

export function HexGrid({
width = 800,
height = 600,
viewBox = "-50 -50 100 100",
...props
}: Props) {
return (
<svg
<svg

className="grid"
width={width}
height={height}
viewBox={viewBox}
version="1.1"
xmlns="http://www.w3.org/2000/svg"

{...props}
/>

)
}
export default HexGrid
Binary file added src/img/Timer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/img/background-color-1.svg
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/img/buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/img/hexagon-playfield.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/img/line-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/img/line-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/img/line-3.svg
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/img/log.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/img/player-ranking-game-stats.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/img/player-ship.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/img/playfield.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/img/polygon-2.svg
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/img/punkships-3.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/img/ship-status.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading