some styling changes and cookie secret env var thingys, pretty much done rn
This commit is contained in:
parent
7049d0727b
commit
60f1beff17
|
@ -132,7 +132,14 @@ export default function Index() {
|
|||
border-b border-ctp-surface0 bg-gradient-to-r from-ctp-crust to-ctp-mantle px-12 py-4
|
||||
text-center shadow-lg md:flex-row md:space-y-0"
|
||||
>
|
||||
<h1 className="text-2xl tracking-tighter">Maakunta ranking</h1>
|
||||
<div className="flex flex-col text-left">
|
||||
<h1 className="bg-gradient-to-r from-ctp-pink to-ctp-yellow bg-clip-text text-4xl font-light leading-none tracking-tighter text-transparent">
|
||||
Maakunta ranking
|
||||
</h1>
|
||||
<span className="text-left text-xs font-extralight leading-none tracking-tighter">
|
||||
made by Juunas
|
||||
</span>
|
||||
</div>
|
||||
{data.me ? (
|
||||
<div className="flex flex-col items-center justify-center">
|
||||
<img
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
import { createCookieSessionStorage } from "@remix-run/node";
|
||||
|
||||
const secret = process.env.COOKIE_SECRET;
|
||||
|
||||
const { getSession, commitSession, destroySession } =
|
||||
createCookieSessionStorage({
|
||||
cookie: {
|
||||
maxAge: 86400,
|
||||
secrets: ["klgkmiokmwegki034", "kf09349kfg3dsadsa"],
|
||||
secrets: [secret],
|
||||
path: "/",
|
||||
secure: true,
|
||||
httpOnly: true,
|
||||
|
|
|
@ -6,13 +6,14 @@
|
|||
"build:css": "tailwindcss -m -i ./styles/app.css -o app/styles/app.css",
|
||||
"dev": "concurrently \"pnpm run dev:css\" \"remix dev\"",
|
||||
"dev:css": "tailwindcss -w -i ./styles/app.css -o app/styles/app.css",
|
||||
"start": "remix-serve build"
|
||||
"start": "dotenv remix-serve build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@prisma/client": "^4.9.0",
|
||||
"@remix-run/node": "^1.10.1",
|
||||
"@remix-run/react": "^1.10.1",
|
||||
"@remix-run/serve": "^1.10.1",
|
||||
"dotenv-cli": "^7.0.0",
|
||||
"isbot": "^3.6.5",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
|
|
|
@ -9,6 +9,7 @@ specifiers:
|
|||
'@remix-run/react': ^1.10.1
|
||||
'@remix-run/serve': ^1.10.1
|
||||
concurrently: ^7.6.0
|
||||
dotenv-cli: ^7.0.0
|
||||
eslint: ^8.27.0
|
||||
isbot: ^3.6.5
|
||||
prettier: ^2.8.3
|
||||
|
@ -23,6 +24,7 @@ dependencies:
|
|||
'@remix-run/node': 1.10.1_biqbaboplfbrettd7655fr4n2y
|
||||
'@remix-run/react': 1.10.1_biqbaboplfbrettd7655fr4n2y
|
||||
'@remix-run/serve': 1.10.1_biqbaboplfbrettd7655fr4n2y
|
||||
dotenv-cli: 7.0.0
|
||||
isbot: 3.6.5
|
||||
react: 18.2.0
|
||||
react-dom: 18.2.0_react@18.2.0
|
||||
|
@ -3011,7 +3013,6 @@ packages:
|
|||
path-key: 3.1.1
|
||||
shebang-command: 2.0.0
|
||||
which: 2.0.2
|
||||
dev: true
|
||||
|
||||
/cssesc/3.0.0:
|
||||
resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
|
||||
|
@ -3250,10 +3251,24 @@ packages:
|
|||
resolution: {integrity: sha512-8o+oVqLQZoruQPYy3uAAQtc6YbtSiRq5aPJBhJ82YTJRHvI6ofhYAkC81WmjFTnfUbqg6T3aCglIpU9p/5e7Cw==}
|
||||
dev: true
|
||||
|
||||
/dotenv-cli/7.0.0:
|
||||
resolution: {integrity: sha512-XfMzVdpdDTRnlcgvFLg3lSyiLXqFxS4tH7RbK5IxkC4XIUuxPyrGoDufkfLjy/dA28EILzEu+mros6h8aQmyGg==}
|
||||
hasBin: true
|
||||
dependencies:
|
||||
cross-spawn: 7.0.3
|
||||
dotenv: 16.0.3
|
||||
dotenv-expand: 10.0.0
|
||||
minimist: 1.2.7
|
||||
dev: false
|
||||
|
||||
/dotenv-expand/10.0.0:
|
||||
resolution: {integrity: sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A==}
|
||||
engines: {node: '>=12'}
|
||||
dev: false
|
||||
|
||||
/dotenv/16.0.3:
|
||||
resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==}
|
||||
engines: {node: '>=12'}
|
||||
dev: true
|
||||
|
||||
/duplexify/3.7.1:
|
||||
resolution: {integrity: sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==}
|
||||
|
@ -5005,7 +5020,6 @@ packages:
|
|||
|
||||
/isexe/2.0.0:
|
||||
resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
|
||||
dev: true
|
||||
|
||||
/isobject/2.1.0:
|
||||
resolution: {integrity: sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==}
|
||||
|
@ -5781,7 +5795,6 @@ packages:
|
|||
|
||||
/minimist/1.2.7:
|
||||
resolution: {integrity: sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==}
|
||||
dev: true
|
||||
|
||||
/minipass-collect/1.0.2:
|
||||
resolution: {integrity: sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==}
|
||||
|
@ -6272,7 +6285,6 @@ packages:
|
|||
/path-key/3.1.1:
|
||||
resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/path-parse/1.0.7:
|
||||
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
|
||||
|
@ -7022,12 +7034,10 @@ packages:
|
|||
engines: {node: '>=8'}
|
||||
dependencies:
|
||||
shebang-regex: 3.0.0
|
||||
dev: true
|
||||
|
||||
/shebang-regex/3.0.0:
|
||||
resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
|
||||
engines: {node: '>=8'}
|
||||
dev: true
|
||||
|
||||
/shell-quote/1.7.4:
|
||||
resolution: {integrity: sha512-8o/QEhSSRb1a5i7TFR0iM4G16Z0vYB2OQVs4G3aAFXjn3T6yEx8AZxy1PgDF7I00LZHYA3WxaSYIf5e5sAX8Rw==}
|
||||
|
@ -7884,7 +7894,6 @@ packages:
|
|||
hasBin: true
|
||||
dependencies:
|
||||
isexe: 2.0.0
|
||||
dev: true
|
||||
|
||||
/word-wrap/1.2.3:
|
||||
resolution: {integrity: sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==}
|
||||
|
|
Loading…
Reference in New Issue