mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-04 02:15:18 +02:00
Initial commit
This commit is contained in:
commit
573814ddac
25 changed files with 18830 additions and 0 deletions
38
client/src/App.css
Normal file
38
client/src/App.css
Normal file
|
@ -0,0 +1,38 @@
|
|||
.App {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.App-logo {
|
||||
height: 40vmin;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.App-logo {
|
||||
animation: App-logo-spin infinite 20s linear;
|
||||
}
|
||||
}
|
||||
|
||||
.App-header {
|
||||
background-color: #282c34;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: calc(10px + 2vmin);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.App-link {
|
||||
color: #61dafb;
|
||||
}
|
||||
|
||||
@keyframes App-logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
11
client/src/App.tsx
Normal file
11
client/src/App.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import './App.css';
|
||||
import Themer from './components/Themer/Themer';
|
||||
|
||||
|
||||
const App = (): JSX.Element => {
|
||||
return (
|
||||
<Themer />
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
12
client/src/components/Themer/ThemePreview.tsx
Normal file
12
client/src/components/Themer/ThemePreview.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
import { Theme } from '../../interfaces/Theme';
|
||||
|
||||
const ThemePreview = (theme: Theme): JSX.Element => {
|
||||
return (
|
||||
<div>
|
||||
<p>Theme: {theme.name}</p>
|
||||
<p>{theme.colors.background}</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default ThemePreview;
|
14
client/src/components/Themer/Themer.tsx
Normal file
14
client/src/components/Themer/Themer.tsx
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { themes } from './themes.json';
|
||||
import { Theme } from '../../interfaces/Theme';
|
||||
import ThemePreview from './ThemePreview';
|
||||
|
||||
const Themer = (): JSX.Element => {
|
||||
return (
|
||||
<div>
|
||||
<h1>Themes</h1>
|
||||
{themes.map((theme: Theme): JSX.Element => <ThemePreview name={theme.name} colors={theme.colors} />)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Themer;
|
100
client/src/components/Themer/themes.json
Normal file
100
client/src/components/Themer/themes.json
Normal file
|
@ -0,0 +1,100 @@
|
|||
{
|
||||
"themes": [
|
||||
{
|
||||
"name": "blackboard",
|
||||
"colors": {
|
||||
"background": "#1a1a1a",
|
||||
"primary": "#FFFDEA",
|
||||
"accent": "#5c5c5c"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "gazette",
|
||||
"colors": {
|
||||
"background": "#F2F7FF",
|
||||
"primary": "#000000",
|
||||
"accent": "#5c5c5c"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "espresso",
|
||||
"colors": {
|
||||
"background": "#21211F",
|
||||
"primary": "#D1B59A",
|
||||
"accent": "#4E4E4E"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cab",
|
||||
"colors": {
|
||||
"background": "#F6D305",
|
||||
"primary": "#1F1F1F",
|
||||
"accent": "#424242"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "cloud",
|
||||
"colors": {
|
||||
"background": "#f1f2f0",
|
||||
"primary": "#35342f",
|
||||
"accent": "#37bbe4"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "lime",
|
||||
"colors": {
|
||||
"background": "#263238",
|
||||
"primary": "#AABBC3",
|
||||
"accent": "#aeea00"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "white",
|
||||
"colors": {
|
||||
"background": "#ffffff",
|
||||
"primary": "#222222",
|
||||
"accent": "#dddddd"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tron",
|
||||
"colors": {
|
||||
"background": "#242B33",
|
||||
"primary": "#EFFBFF",
|
||||
"accent": "#6EE2FF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "blues",
|
||||
"colors": {
|
||||
"background": "#2B2C56",
|
||||
"primary": "#EFF1FC",
|
||||
"accent": "#6677EB"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "passion",
|
||||
"colors": {
|
||||
"background": "#f5f5f5",
|
||||
"primary": "#12005e",
|
||||
"accent": "#8e24aa"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "chalk",
|
||||
"colors": {
|
||||
"background": "#263238",
|
||||
"primary": "#AABBC3",
|
||||
"accent": "#FF869A"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "paper",
|
||||
"colors": {
|
||||
"background": "#F8F6F1",
|
||||
"primary": "#4C432E",
|
||||
"accent": "#AA9A73"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
client/src/index.css
Normal file
13
client/src/index.css
Normal file
|
@ -0,0 +1,13 @@
|
|||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
||||
sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
||||
monospace;
|
||||
}
|
11
client/src/index.tsx
Normal file
11
client/src/index.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import './index.css';
|
||||
import App from './App';
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
8
client/src/interfaces/Theme.ts
Normal file
8
client/src/interfaces/Theme.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export interface Theme {
|
||||
name: string;
|
||||
colors: {
|
||||
background: string;
|
||||
primary: string;
|
||||
accent: string;
|
||||
}
|
||||
}
|
1
client/src/react-app-env.d.ts
vendored
Normal file
1
client/src/react-app-env.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/// <reference types="react-scripts" />
|
Loading…
Add table
Add a link
Reference in a new issue