Skip to content

Commit

Permalink
react-ecs template setup
Browse files Browse the repository at this point in the history
  • Loading branch information
karooolis committed May 28, 2024
1 parent 9fc40b5 commit 6efa430
Show file tree
Hide file tree
Showing 13 changed files with 1,340 additions and 4,568 deletions.
2 changes: 1 addition & 1 deletion packages/create-mud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"test:ci": "pnpm run test",
"test:phaser": "dist/cli.js test-project --template phaser && rimraf test-project",
"test:react": "dist/cli.js test-project --template react && rimraf test-project",
"test:react-ecs": "dist/cli.js test-project --template react-ecs && rimraf test-project",
"test:react-ecs": "dist/cli.js test-project --template react-ecs",
"test:threejs": "dist/cli.js test-project --template threejs && rimraf test-project",
"test:vanilla": "dist/cli.js test-project --template vanilla && rimraf test-project"
},
Expand Down
5 changes: 4 additions & 1 deletion packages/worlds-explorer-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@
"start": "next start"
},
"dependencies": {
"better-sqlite3": "^8.6.0",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18"
"react-dom": "^18",
"sqlite3": "^5.1.7"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.4",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
77 changes: 0 additions & 77 deletions packages/worlds-explorer-next/src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,77 +0,0 @@
:root {
--max-width: 1100px;
--border-radius: 12px;
--font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", "Oxygen Mono",
"Ubuntu Monospace", "Source Code Pro", "Fira Mono", "Droid Sans Mono", "Courier New", monospace;

--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;

--primary-glow: conic-gradient(
from 180deg at 50% 50%,
#16abff33 0deg,
#0885ff33 55deg,
#54d6ff33 120deg,
#0071ff33 160deg,
transparent 360deg
);
--secondary-glow: radial-gradient(rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));

--tile-start-rgb: 239, 245, 249;
--tile-end-rgb: 228, 232, 233;
--tile-border: conic-gradient(#00000080, #00000040, #00000030, #00000020, #00000010, #00000010, #00000080);

--callout-rgb: 238, 240, 241;
--callout-border-rgb: 172, 175, 176;
--card-rgb: 180, 185, 188;
--card-border-rgb: 131, 134, 135;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;

--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
--secondary-glow: linear-gradient(to bottom right, rgba(1, 65, 255, 0), rgba(1, 65, 255, 0), rgba(1, 65, 255, 0.3));

--tile-start-rgb: 2, 13, 46;
--tile-end-rgb: 2, 5, 19;
--tile-border: conic-gradient(#ffffff80, #ffffff40, #ffffff30, #ffffff20, #ffffff10, #ffffff10, #ffffff80);

--callout-rgb: 20, 20, 20;
--callout-border-rgb: 108, 108, 108;
--card-rgb: 100, 100, 100;
--card-border-rgb: 200, 200, 200;
}
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

html,
body {
max-width: 100vw;
overflow-x: hidden;
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}

a {
color: inherit;
text-decoration: none;
}

@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}
4 changes: 2 additions & 2 deletions packages/worlds-explorer-next/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import "./globals.css";
const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Worlds Explorer",
description: "Worlds Explorer",
};

export default function RootLayout({
Expand Down
224 changes: 0 additions & 224 deletions packages/worlds-explorer-next/src/app/page.module.css

This file was deleted.

Loading

0 comments on commit 6efa430

Please sign in to comment.