Skip to content

Commit e9dec39

Browse files
committed
Updated styles
1 parent 30f07d9 commit e9dec39

18 files changed

Lines changed: 91 additions & 281 deletions

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"html-webpack-plugin": "^5.6.7",
5757
"mini-css-extract-plugin": "^2.10.2",
5858
"postcss": "^8.5.23",
59+
"postcss-import": "^16.1.1",
5960
"postcss-loader": "^8.2.1",
6061
"prettier": "^3.9.6",
6162
"sass": "^1.101.7",

‎postcss.config.mjs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
/** @type {import('postcss-load-config').Config} */
22
const config = {
33
plugins: {
4+
'postcss-import': {},
45
'@tailwindcss/postcss': {},
6+
'tailwindcss': {},
7+
'autoprefixer': {},
58
// autoprefixer: {},
69
},
710
};

‎src/app/error.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Clock from "@components/clock/Clock";
77
//import dynamic from "next/dynamic";
88
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
99
import { faBug } from "@fortawesome/free-solid-svg-icons";
10-
import "@styles/global.css";
10+
import "@styles/global.scss";
1111
import "./not-found.css";
1212

1313
//const Clock = dynamic(() => import('@components/clock/Clock'));

‎src/app/layout.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { fas } from '@fortawesome/free-solid-svg-icons';
88
import { fab } from '@fortawesome/free-brands-svg-icons';
99
import Providers from "@app/providers";
1010
import '@fortawesome/fontawesome-svg-core/styles.css';
11-
import "@styles/global.css";
11+
import "@styles/global.scss";
1212
//import localFont from 'next/font/local';
1313

1414
config.autoAddCss = false;
@@ -50,7 +50,7 @@ export default function RootLayout({
5050
}>) {
5151
return (
5252
<html lang="en">
53-
<body className={`${inter.className} text-white`}>
53+
<body id="body" className={`${inter.className} text-white`}>
5454
<Suspense>
5555
<Providers>
5656
{children}

‎src/app/not-found.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import Clock from "@components/clock/Clock";
99
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
1010
import { faBug } from "@fortawesome/free-solid-svg-icons";
1111
import sh404 from "public/image/404.png";
12-
import "@styles/global.css";
1312
import "./not-found.css";
13+
import "@styles/global.scss";
1414

1515
//const Clock = dynamic(() => import('@components/clock/Clock'));
1616

‎src/components/modal/Modal.tsx‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use client"
1+
"use client";
22

33
import React, { useState } from "react";
44
import { ReadonlyURLSearchParams, useRouter, useSearchParams } from "next/navigation";
@@ -15,6 +15,7 @@ import { useGamepads } from 'awesome-react-gamepads';
1515
import ControllerIcon from "@components/icons/ControllerIcon";
1616
import { useAudio } from '@context/AudioContext';
1717
import accounts from "@src/config/accounts.json";
18+
import { SecretsView } from "./views/secrets";
1819
import "./modal.css";
1920

2021
const AUDIO_SRC = '/audio/nav.mp3';
@@ -37,6 +38,8 @@ export default function Modal() {
3738
console.log("Gamepad disconnected:", gamepad);
3839
setGamepadConnected(false);
3940
},
41+
onStart: onEsc,
42+
onB: onEsc,
4043
});
4144

4245
const [modal, setModal] = useState<string | null>(modalParam);
@@ -79,6 +82,9 @@ export default function Modal() {
7982
} else if (modal === 'about') {
8083
title = 'About';
8184
view = <AboutView />;
85+
} else if (modal === 'secrets') {
86+
title = 'Secrets';
87+
view = <SecretsView title="Secrets" />;
8288
}
8389

8490
return (
@@ -121,7 +127,7 @@ export default function Modal() {
121127
)}
122128
{!gamepadConnected && mobileDetect.isDesktop() && (
123129
<div className="justify-between w-auto mt-4 text-lg hover:animate-pulse">
124-
<kbd className="px-2 py-1.5 text-gray-800 bg-gray-100 mx-[3px] border border-gray-200 rounded-lg dark:bg-gray-400/25 dark:text-white dark:border-gray-500/25">Esc</kbd>
130+
<kbd className="px-2 py-1.5 text-gray-800 bg-gray-100 mx-0.75 border border-gray-200 rounded-lg dark:bg-gray-400/25 dark:text-white dark:border-gray-500/25">Esc</kbd>
125131
<span className="mx-2 my-auto">close</span>
126132
</div>
127133
)}

‎src/components/modal/views/Secrets.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import React from "react";
44
import { useSecret } from "@context/SecretContext";
5-
import "./xmb.scss";
65
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
76
import { faQuestionCircle, faLock, faLockOpen, faUnlock, faUnlockAlt } from "@fortawesome/free-solid-svg-icons";
87

@@ -26,7 +25,7 @@ export const SecretsView = ({ title, description }: SecretsViewProps) => {
2625
</label>
2726
{description && (
2827
<FontAwesomeIcon icon={faQuestionCircle} className="w-5 h-5 mb-1 opacity-25 hover:opacity-100 align-self-end justify-self-end text-white justify-right"
29-
title={description} />
28+
aria-label={description} />
3029
)}
3130
</div>
3231
<div className="grid grid-cols-2 grid-rows-1 relative w-fit max-w-150 text-ellipsis">

‎src/components/xmb-menu/xmb-menu-item.css‎

Lines changed: 0 additions & 4 deletions
This file was deleted.

‎src/components/xmb-menu/xmb.css‎

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)