generated from casrpg/spa-netlify-ts-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #8 from casrpg/cca/use-lcars-css-style
Modify look and feel to use TheLCARS.com style
- Loading branch information
Showing
42 changed files
with
3,971 additions
and
2,762 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
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 |
---|---|---|
|
@@ -28,3 +28,4 @@ dist-ssr | |
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
.examples/* |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import globals from "globals" | ||
import pluginJs from "@eslint/js" | ||
import tseslint from "typescript-eslint" | ||
import pluginReact from "eslint-plugin-react" | ||
import love from 'eslint-config-love' | ||
|
||
|
||
export default [ | ||
{files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"]}, | ||
{languageOptions: { globals: globals.browser }}, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
pluginReact.configs.flat.recommended, | ||
{ | ||
...love, | ||
files: ['**/*.js', '**/*.ts'], | ||
}, | ||
{ | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
}, | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-misused-promises': 'off', | ||
'@typescript-eslint/promise-function-async': 'off', | ||
'react/react-in-jsx-scope': 'off' | ||
} | ||
} | ||
]; |
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 was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,42 +1,3 @@ | ||
#root { | ||
max-width: 1280px; | ||
margin: 0 auto; | ||
padding: 2rem; | ||
text-align: center; | ||
} | ||
|
||
.logo { | ||
height: 6em; | ||
padding: 1.5em; | ||
will-change: filter; | ||
transition: filter 300ms; | ||
} | ||
.logo:hover { | ||
filter: drop-shadow(0 0 2em #646cffaa); | ||
} | ||
.logo.react:hover { | ||
filter: drop-shadow(0 0 2em #61dafbaa); | ||
} | ||
|
||
@keyframes logo-spin { | ||
from { | ||
transform: rotate(0deg); | ||
} | ||
to { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
@media (prefers-reduced-motion: no-preference) { | ||
a:nth-of-type(2) .logo { | ||
animation: logo-spin infinite 20s linear; | ||
} | ||
} | ||
|
||
.card { | ||
padding: 2em; | ||
} | ||
|
||
.read-the-docs { | ||
color: #888; | ||
.content-panel--main-area { | ||
min-width: 60vw; | ||
} |
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,49 +1,62 @@ | ||
import React from 'react' | ||
import { BrowserRouter as Router, Route, Routes, Link } from 'react-router-dom' | ||
import { Rocket, Users } from 'lucide-react' | ||
import { NPCGenerator } from './components/NPCGenerator' | ||
import { PlanetDecoder } from './components/PlanetDecoder' | ||
import { NPCGenerator } from './features/NPCGenerator' | ||
import { PlanetDecoder } from './features/PlanetDecoder' | ||
import { BarRunner } from './lcars/BarRunner' | ||
import { Spacer } from './lcars/Spacer' | ||
import { Panel } from './lcars/Panel' | ||
import { CollapsibleLabel } from './lcars/CollapsibleLabel' | ||
import { Home } from './features/Home' | ||
import './App.css' | ||
|
||
const App: React.FC = () => { | ||
const nav = ( | ||
<nav id="secondary-nav"> | ||
<Link to="/">Tool Index</Link> | ||
<Link to="/planet-decoder">Planet Decoder</Link> | ||
<Link to="/npc-generator">NPC generator</Link> | ||
</nav> | ||
) | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const routes = ( | ||
<Routes> | ||
<Route path="/npc-generator" element={<NPCGenerator />} /> | ||
<Route path="/planet-decoder" element={<PlanetDecoder />} /> | ||
<Route path="/" element={<Home />} /> | ||
</Routes> | ||
) | ||
|
||
return ( | ||
<Router> | ||
<div className="min-h-screen bg-black text-[#ff9900]"> | ||
<header className="bg-[#000033] p-4"> | ||
<nav className="container mx-auto flex justify-between items-center"> | ||
<h1 className="text-2xl font-bold text-[#ff9900]">Traveller RPG Tools</h1> | ||
<ul className="flex space-x-4"> | ||
<li> | ||
<Link to="/npc-generator" className="lcars-button"> | ||
<Users className="inline-block mr-2" /> | ||
NPC Generator | ||
</Link> | ||
</li> | ||
<li> | ||
<Link to="/planet-decoder" className="lcars-button"> | ||
<Rocket className="inline-block mr-2" /> | ||
Planet Decoder | ||
</Link> | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
<main className="container mx-auto p-4"> | ||
<Routes> | ||
<Route path="/npc-generator" element={<NPCGenerator />} /> | ||
<Route path="/planet-decoder" element={<PlanetDecoder />} /> | ||
<Route path="/" element={<Home />} /> | ||
</Routes> | ||
</main> | ||
<div className="wrap-everything"> | ||
<div className="wrap" id="column-3"> | ||
<div className="left-frame" data-id-test="menu-container"> | ||
<div> | ||
<Panel kind="3">Traveller RPG <span className="hop">Tools</span></Panel> | ||
{nav} | ||
</div> | ||
<Panel kind="4">04<CollapsibleLabel>-41969</CollapsibleLabel></Panel> | ||
<Panel kind="5">05<CollapsibleLabel>-1701D</CollapsibleLabel></Panel> | ||
<Panel kind="6">06<CollapsibleLabel>-071984</CollapsibleLabel></Panel> | ||
<Panel kind="7">07<CollapsibleLabel>-47148</CollapsibleLabel></Panel> | ||
<div className="panel-wrapper"> | ||
<Panel kind="8">08<span className="hop">-091966</span></Panel> | ||
</div> | ||
</div> | ||
<div className="right-frame"> | ||
<BarRunner bars={[1, 2, 3, 4, 5]} /> | ||
<Spacer spacers={[1, 2, 3, 4]}/> | ||
|
||
<main className="content-panel--main-area"> | ||
{routes} | ||
</main> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</Router> | ||
) | ||
} | ||
|
||
const Home: React.FC = () => ( | ||
<div className="text-center lcars-panel"> | ||
<h2 className="text-4xl font-bold mb-4 lcars-header">Welcome to Traveller RPG Tools</h2> | ||
<p className="mb-4 lcars-content">Select a tool from the navigation menu to get started.</p> | ||
</div> | ||
) | ||
|
||
export default App |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { FC } from 'react' | ||
import { Panel } from '../lcars/Panel' | ||
|
||
export const Home: FC = () => ( | ||
<Panel kind="1"> | ||
<img src="/sfcmd.png" className="sfc" /> | ||
<div className="lcars-heading">Traveller RPG Tools</div> | ||
<div className="lcars-access"> | ||
user authorization code <span className="blink medium-dark-blue">accepted</span> | ||
</div> | ||
</Panel> | ||
) |
1 change: 0 additions & 1 deletion
1
app/src/components/NPCGenerator.tsx → app/src/features/NPCGenerator.tsx
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.