diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 18d4d81..3122ceb 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -12,7 +12,10 @@ module.exports = { rules: { "no-unused-vars": "error", "no-undef": "off", + "prefer-const": "error", + "no-case-declarations": "off", }, + ignorePatterns: ["env.d.ts"], overrides: [ { files: ["*.astro"], @@ -22,6 +25,17 @@ module.exports = { extraFileExtensions: [".astro"], }, }, + { + files: ["*.ts", "*.tsx"], + parser: "@typescript-eslint/parser", + parserOptions: { + project: "./tsconfig.json", + }, + plugins: ["@typescript-eslint"], + extends: [ + "plugin:@typescript-eslint/recommended", + ], + }, { // Define the configuration for ` {title} @@ -110,6 +109,39 @@ const { title, optionalPreloads } = Astro.props; color: var(--text-color); } + .url-input-form { + border: none; + padding: 0; + } + + .url-input.search-results { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + border-bottom: 0; + } + + .url-input::placeholder { + color: var(--text-color); + } + + .url-input { + display: block; + background: transparent url(/img/search.svg) no-repeat 1rem center; + background-color: var(--dropdown-background-color); + color: var(--text-color); + border: 2px solid var(--text-color); + padding: 1rem; + border-radius: 10px; + width: 100%; + text-align: center; + transition: 0.25s ease-in-out; + outline: none; + font-family: + Varela Round, + sans-serif; + font-size: 16px; + } + [data-theme="mocha"] { /* Catppucin Mocha theme */ --background-color: #1e1e2e; @@ -266,7 +298,6 @@ const { title, optionalPreloads } = Astro.props; } .nav-container > img { - height: 32px; cursor: pointer; transition: 250ms ease-in-out; } diff --git a/src/pages/[lang]/games.astro b/src/pages/[lang]/games.astro index e45966f..398bc6f 100644 --- a/src/pages/[lang]/games.astro +++ b/src/pages/[lang]/games.astro @@ -29,15 +29,15 @@ export function getStaticPaths() {