generated from Fascinated/nextjs-13-template-with-tailwindcss
Compare commits
6 Commits
renovate/m
...
master
Author | SHA1 | Date | |
---|---|---|---|
81e19866ff | |||
42f631da08 | |||
db6ecf5c6a | |||
9281f02688 | |||
85324c1398 | |||
c8ad2055e6 |
8009
package-lock.json
generated
8009
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
38
package.json
38
package.json
@ -10,26 +10,26 @@
|
|||||||
"update-depends": "npm-check -u"
|
"update-depends": "npm-check -u"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
"@fortawesome/fontawesome-svg-core": "^6.6.0",
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
"@fortawesome/free-brands-svg-icons": "^6.6.0",
|
||||||
"@fortawesome/free-regular-svg-icons": "^6.4.2",
|
"@fortawesome/free-regular-svg-icons": "^6.6.0",
|
||||||
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
||||||
"@fortawesome/react-fontawesome": "^0.2.0",
|
"@fortawesome/react-fontawesome": "^0.2.2",
|
||||||
"@types/node": "^20.8.6",
|
"@types/node": "^22.5.1",
|
||||||
"@types/react": "^18.2.28",
|
"@types/react": "^18.3.4",
|
||||||
"@types/react-dom": "^18.2.13",
|
"@types/react-dom": "^18.3.0",
|
||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.20",
|
||||||
"eslint": "^8.51.0",
|
"eslint": "^9.9.1",
|
||||||
"eslint-config-next": "^14.0.0",
|
"eslint-config-next": "^14.2.7",
|
||||||
"next": "^14.0.0",
|
"next": "^14.2.7",
|
||||||
"next-plugin-yaml": "^1.0.1",
|
"next-plugin-yaml": "^1.0.1",
|
||||||
"npm-check": "^6.0.1",
|
"npm-check": "^6.0.1",
|
||||||
"postcss": "^8.4.31",
|
"postcss": "^8.4.41",
|
||||||
"react": "18.2.0",
|
"react": "18.3.1",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.3.1",
|
||||||
"sharp": "^0.33.0",
|
"sharp": "^0.33.5",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.4.10",
|
||||||
"typescript": "^5.2.2",
|
"typescript": "^5.5.4",
|
||||||
"use-lanyard": "^1.4.4"
|
"use-lanyard": "^1.5.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
85
pnpm-lock.yaml
generated
85
pnpm-lock.yaml
generated
@ -36,11 +36,11 @@ dependencies:
|
|||||||
specifier: ^8.51.0
|
specifier: ^8.51.0
|
||||||
version: 8.51.0
|
version: 8.51.0
|
||||||
eslint-config-next:
|
eslint-config-next:
|
||||||
specifier: ^14.0.0
|
specifier: ^13.5.4
|
||||||
version: 14.0.4(eslint@8.51.0)(typescript@5.2.2)
|
version: 13.5.4(eslint@8.51.0)(typescript@5.2.2)
|
||||||
next:
|
next:
|
||||||
specifier: ^14.0.0
|
specifier: ^13.5.4
|
||||||
version: 14.0.4(react-dom@18.2.0)(react@18.2.0)
|
version: 13.5.4(react-dom@18.2.0)(react@18.2.0)
|
||||||
next-plugin-yaml:
|
next-plugin-yaml:
|
||||||
specifier: ^1.0.1
|
specifier: ^1.0.1
|
||||||
version: 1.0.1
|
version: 1.0.1
|
||||||
@ -542,18 +542,18 @@ packages:
|
|||||||
'@jridgewell/sourcemap-codec': 1.4.15
|
'@jridgewell/sourcemap-codec': 1.4.15
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@next/env@14.0.4:
|
/@next/env@13.5.4:
|
||||||
resolution: {integrity: sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ==}
|
resolution: {integrity: sha512-LGegJkMvRNw90WWphGJ3RMHMVplYcOfRWf2Be3td3sUa+1AaxmsYyANsA+znrGCBjXJNi4XAQlSoEfUxs/4kIQ==}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@next/eslint-plugin-next@14.0.4:
|
/@next/eslint-plugin-next@13.5.4:
|
||||||
resolution: {integrity: sha512-U3qMNHmEZoVmHA0j/57nRfi3AscXNvkOnxDmle/69Jz/G0o/gWjXTDdlgILZdrxQ0Lw/jv2mPW8PGy0EGIHXhQ==}
|
resolution: {integrity: sha512-vI94U+D7RNgX6XypSyjeFrOzxGlZyxOplU0dVE5norIfZGn/LDjJYPHdvdsR5vN1eRtl6PDAsOHmycFEOljK5A==}
|
||||||
dependencies:
|
dependencies:
|
||||||
glob: 7.1.7
|
glob: 7.1.7
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/@next/swc-darwin-arm64@14.0.4:
|
/@next/swc-darwin-arm64@13.5.4:
|
||||||
resolution: {integrity: sha512-mF05E/5uPthWzyYDyptcwHptucf/jj09i2SXBPwNzbgBNc+XnwzrL0U6BmPjQeOL+FiB+iG1gwBeq7mlDjSRPg==}
|
resolution: {integrity: sha512-Df8SHuXgF1p+aonBMcDPEsaahNo2TCwuie7VXED4FVyECvdXfRT9unapm54NssV9tF3OQFKBFOdlje4T43VO0w==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
@ -561,8 +561,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-darwin-x64@14.0.4:
|
/@next/swc-darwin-x64@13.5.4:
|
||||||
resolution: {integrity: sha512-IZQ3C7Bx0k2rYtrZZxKKiusMTM9WWcK5ajyhOZkYYTCc8xytmwSzR1skU7qLgVT/EY9xtXDG0WhY6fyujnI3rw==}
|
resolution: {integrity: sha512-siPuUwO45PnNRMeZnSa8n/Lye5ZX93IJom9wQRB5DEOdFrw0JjOMu1GINB8jAEdwa7Vdyn1oJ2xGNaQpdQQ9Pw==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [darwin]
|
os: [darwin]
|
||||||
@ -570,8 +570,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-linux-arm64-gnu@14.0.4:
|
/@next/swc-linux-arm64-gnu@13.5.4:
|
||||||
resolution: {integrity: sha512-VwwZKrBQo/MGb1VOrxJ6LrKvbpo7UbROuyMRvQKTFKhNaXjUmKTu7wxVkIuCARAfiI8JpaWAnKR+D6tzpCcM4w==}
|
resolution: {integrity: sha512-l/k/fvRP/zmB2jkFMfefmFkyZbDkYW0mRM/LB+tH5u9pB98WsHXC0WvDHlGCYp3CH/jlkJPL7gN8nkTQVrQ/2w==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
@ -579,8 +579,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-linux-arm64-musl@14.0.4:
|
/@next/swc-linux-arm64-musl@13.5.4:
|
||||||
resolution: {integrity: sha512-8QftwPEW37XxXoAwsn+nXlodKWHfpMaSvt81W43Wh8dv0gkheD+30ezWMcFGHLI71KiWmHK5PSQbTQGUiidvLQ==}
|
resolution: {integrity: sha512-YYGb7SlLkI+XqfQa8VPErljb7k9nUnhhRrVaOdfJNCaQnHBcvbT7cx/UjDQLdleJcfyg1Hkn5YSSIeVfjgmkTg==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
@ -588,8 +588,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-linux-x64-gnu@14.0.4:
|
/@next/swc-linux-x64-gnu@13.5.4:
|
||||||
resolution: {integrity: sha512-/s/Pme3VKfZAfISlYVq2hzFS8AcAIOTnoKupc/j4WlvF6GQ0VouS2Q2KEgPuO1eMBwakWPB1aYFIA4VNVh667A==}
|
resolution: {integrity: sha512-uE61vyUSClnCH18YHjA8tE1prr/PBFlBFhxBZis4XBRJoR+txAky5d7gGNUIbQ8sZZ7LVkSVgm/5Fc7mwXmRAg==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
@ -597,8 +597,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-linux-x64-musl@14.0.4:
|
/@next/swc-linux-x64-musl@13.5.4:
|
||||||
resolution: {integrity: sha512-m8z/6Fyal4L9Bnlxde5g2Mfa1Z7dasMQyhEhskDATpqr+Y0mjOBZcXQ7G5U+vgL22cI4T7MfvgtrM2jdopqWaw==}
|
resolution: {integrity: sha512-qVEKFYML/GvJSy9CfYqAdUexA6M5AklYcQCW+8JECmkQHGoPxCf04iMh7CPR7wkHyWWK+XLt4Ja7hhsPJtSnhg==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [linux]
|
os: [linux]
|
||||||
@ -606,8 +606,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-win32-arm64-msvc@14.0.4:
|
/@next/swc-win32-arm64-msvc@13.5.4:
|
||||||
resolution: {integrity: sha512-7Wv4PRiWIAWbm5XrGz3D8HUkCVDMMz9igffZG4NB1p4u1KoItwx9qjATHz88kwCEal/HXmbShucaslXCQXUM5w==}
|
resolution: {integrity: sha512-mDSQfqxAlfpeZOLPxLymZkX0hYF3juN57W6vFHTvwKlnHfmh12Pt7hPIRLYIShk8uYRsKPtMTth/EzpwRI+u8w==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [arm64]
|
cpu: [arm64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
@ -615,8 +615,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-win32-ia32-msvc@14.0.4:
|
/@next/swc-win32-ia32-msvc@13.5.4:
|
||||||
resolution: {integrity: sha512-zLeNEAPULsl0phfGb4kdzF/cAVIfaC7hY+kt0/d+y9mzcZHsMS3hAS829WbJ31DkSlVKQeHEjZHIdhN+Pg7Gyg==}
|
resolution: {integrity: sha512-aoqAT2XIekIWoriwzOmGFAvTtVY5O7JjV21giozBTP5c6uZhpvTWRbmHXbmsjZqY4HnEZQRXWkSAppsIBweKqw==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [ia32]
|
cpu: [ia32]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
@ -624,8 +624,8 @@ packages:
|
|||||||
dev: false
|
dev: false
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
/@next/swc-win32-x64-msvc@14.0.4:
|
/@next/swc-win32-x64-msvc@13.5.4:
|
||||||
resolution: {integrity: sha512-yEh2+R8qDlDCjxVpzOTEpBLQTEFAcP2A8fUFLaWNap9GitYKkKv1//y2S6XY6zsR4rCOPRpU7plYDR+az2n30A==}
|
resolution: {integrity: sha512-cyRvlAxwlddlqeB9xtPSfNSCRy8BOa4wtMo0IuI9P7Y0XT2qpDrpFKRyZ7kUngZis59mPVla5k8X1oOJ8RxDYg==}
|
||||||
engines: {node: '>= 10'}
|
engines: {node: '>= 10'}
|
||||||
cpu: [x64]
|
cpu: [x64]
|
||||||
os: [win32]
|
os: [win32]
|
||||||
@ -1725,8 +1725,8 @@ packages:
|
|||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/eslint-config-next@14.0.4(eslint@8.51.0)(typescript@5.2.2):
|
/eslint-config-next@13.5.4(eslint@8.51.0)(typescript@5.2.2):
|
||||||
resolution: {integrity: sha512-9/xbOHEQOmQtqvQ1UsTQZpnA7SlDMBtuKJ//S4JnoyK3oGLhILKXdBgu/UO7lQo/2xOykQULS1qQ6p2+EpHgAQ==}
|
resolution: {integrity: sha512-FzQGIj4UEszRX7fcRSJK6L1LrDiVZvDFW320VVntVKh3BSU8Fb9kpaoxQx0cdFgf3MQXdeSbrCXJ/5Z/NndDkQ==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
eslint: ^7.23.0 || ^8.0.0
|
eslint: ^7.23.0 || ^8.0.0
|
||||||
typescript: '>=3.3.1'
|
typescript: '>=3.3.1'
|
||||||
@ -1734,7 +1734,7 @@ packages:
|
|||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@next/eslint-plugin-next': 14.0.4
|
'@next/eslint-plugin-next': 13.5.4
|
||||||
'@rushstack/eslint-patch': 1.5.1
|
'@rushstack/eslint-patch': 1.5.1
|
||||||
'@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
|
'@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
|
||||||
eslint: 8.51.0
|
eslint: 8.51.0
|
||||||
@ -3163,9 +3163,9 @@ packages:
|
|||||||
js-yaml-loader: 1.2.2
|
js-yaml-loader: 1.2.2
|
||||||
dev: false
|
dev: false
|
||||||
|
|
||||||
/next@14.0.4(react-dom@18.2.0)(react@18.2.0):
|
/next@13.5.4(react-dom@18.2.0)(react@18.2.0):
|
||||||
resolution: {integrity: sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA==}
|
resolution: {integrity: sha512-+93un5S779gho8y9ASQhb/bTkQF17FNQOtXLKAj3lsNgltEcF0C5PMLLncDmH+8X1EnJH1kbqAERa29nRXqhjA==}
|
||||||
engines: {node: '>=18.17.0'}
|
engines: {node: '>=16.14.0'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@opentelemetry/api': ^1.1.0
|
'@opentelemetry/api': ^1.1.0
|
||||||
@ -3178,26 +3178,25 @@ packages:
|
|||||||
sass:
|
sass:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
'@next/env': 14.0.4
|
'@next/env': 13.5.4
|
||||||
'@swc/helpers': 0.5.2
|
'@swc/helpers': 0.5.2
|
||||||
busboy: 1.6.0
|
busboy: 1.6.0
|
||||||
caniuse-lite: 1.0.30001549
|
caniuse-lite: 1.0.30001549
|
||||||
graceful-fs: 4.2.11
|
|
||||||
postcss: 8.4.31
|
postcss: 8.4.31
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
react-dom: 18.2.0(react@18.2.0)
|
react-dom: 18.2.0(react@18.2.0)
|
||||||
styled-jsx: 5.1.1(react@18.2.0)
|
styled-jsx: 5.1.1(react@18.2.0)
|
||||||
watchpack: 2.4.0
|
watchpack: 2.4.0
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@next/swc-darwin-arm64': 14.0.4
|
'@next/swc-darwin-arm64': 13.5.4
|
||||||
'@next/swc-darwin-x64': 14.0.4
|
'@next/swc-darwin-x64': 13.5.4
|
||||||
'@next/swc-linux-arm64-gnu': 14.0.4
|
'@next/swc-linux-arm64-gnu': 13.5.4
|
||||||
'@next/swc-linux-arm64-musl': 14.0.4
|
'@next/swc-linux-arm64-musl': 13.5.4
|
||||||
'@next/swc-linux-x64-gnu': 14.0.4
|
'@next/swc-linux-x64-gnu': 13.5.4
|
||||||
'@next/swc-linux-x64-musl': 14.0.4
|
'@next/swc-linux-x64-musl': 13.5.4
|
||||||
'@next/swc-win32-arm64-msvc': 14.0.4
|
'@next/swc-win32-arm64-msvc': 13.5.4
|
||||||
'@next/swc-win32-ia32-msvc': 14.0.4
|
'@next/swc-win32-ia32-msvc': 13.5.4
|
||||||
'@next/swc-win32-x64-msvc': 14.0.4
|
'@next/swc-win32-x64-msvc': 13.5.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@babel/core'
|
- '@babel/core'
|
||||||
- babel-plugin-macros
|
- babel-plugin-macros
|
||||||
|
@ -5,7 +5,7 @@ import Image from "next/image";
|
|||||||
import { Fragment } from "react";
|
import { Fragment } from "react";
|
||||||
import { useLanyardWS } from "use-lanyard";
|
import { useLanyardWS } from "use-lanyard";
|
||||||
|
|
||||||
const Config: Config = require("../../../config.yml") as any;
|
const config: Config = require("../../../config.yml") as any;
|
||||||
|
|
||||||
function LanyardWrapper(props: { children: any }) {
|
function LanyardWrapper(props: { children: any }) {
|
||||||
return <Fragment>{props.children}</Fragment>;
|
return <Fragment>{props.children}</Fragment>;
|
||||||
@ -13,7 +13,7 @@ function LanyardWrapper(props: { children: any }) {
|
|||||||
|
|
||||||
export default function Avatar(props: any) {
|
export default function Avatar(props: any) {
|
||||||
const { avatar } = props;
|
const { avatar } = props;
|
||||||
const { discord }: any = Config;
|
const { discord }: any = config;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative inline-block">
|
<div className="relative inline-block">
|
||||||
|
@ -1,21 +1,18 @@
|
|||||||
import { Config } from "@/src/types/config";
|
import { Config } from "@/src/types/config";
|
||||||
import { config } from "@fortawesome/fontawesome-svg-core";
|
import { config as fontAwesomeConfig } from "@fortawesome/fontawesome-svg-core";
|
||||||
import "@fortawesome/fontawesome-svg-core/styles.css";
|
import "@fortawesome/fontawesome-svg-core/styles.css";
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
|
import { ReactNode } from "react";
|
||||||
|
|
||||||
const Config: Config = require("../../config.yml") as any;
|
const config: Config = require("../../config.yml") as any;
|
||||||
config.autoAddCss = false;
|
fontAwesomeConfig.autoAddCss = false;
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
export const metadata = Config.metadata; // Site metadata from the config
|
export const metadata = config.metadata; // Site metadata from the config
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||||
children,
|
|
||||||
}: {
|
|
||||||
children: React.ReactNode;
|
|
||||||
}) {
|
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body className={inter.className}>{children}</body>
|
<body className={inter.className}>{children}</body>
|
||||||
|
@ -8,7 +8,7 @@ import Image from "next/image";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Avatar from "./components/Avatar";
|
import Avatar from "./components/Avatar";
|
||||||
|
|
||||||
const Config: Config = require("../../config.yml") as any;
|
const config: Config = require("../../config.yml") as any;
|
||||||
|
|
||||||
library.add(fab, far, fas); // Loading in the icons from FontAwesome
|
library.add(fab, far, fas); // Loading in the icons from FontAwesome
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ export default function Home() {
|
|||||||
options,
|
options,
|
||||||
description,
|
description,
|
||||||
theme,
|
theme,
|
||||||
} = Config; // All of the settings pulled from the config file
|
} = config; // All the settings pulled from the config file
|
||||||
|
|
||||||
// Theme colors to use when using the selected theme
|
// Theme colors to use when using the selected theme
|
||||||
// all used colors are from TailwindCSS
|
// all used colors are from TailwindCSS
|
||||||
@ -54,32 +54,23 @@ export default function Home() {
|
|||||||
const selectedTheme = themeColors[theme] || themeColors.dark; // The theme to use (fallback of dark)
|
const selectedTheme = themeColors[theme] || themeColors.dark; // The theme to use (fallback of dark)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={"relative"}>
|
||||||
|
{/* Background Image */}
|
||||||
|
{background.showBackground && background.backgroundImage && (
|
||||||
|
// eslint-disable-next-line @next/next/no-img-element
|
||||||
|
<img
|
||||||
|
alt="Background image"
|
||||||
|
src={background.backgroundImage}
|
||||||
|
className={`absolute z-0 object-cover w-full h-full ${background.blur && "blur-sm"} brightness-${background.darken.enabled && background.darken.amount / 2}`}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
<main
|
<main
|
||||||
className={`flex flex-col items-center justify-center w-screen h-screen ${selectedTheme.backgroundColor} ${selectedTheme.textColor}`}
|
className={`flex flex-col items-center justify-center w-screen h-screen ${selectedTheme.backgroundColor} ${selectedTheme.textColor}`}
|
||||||
>
|
>
|
||||||
{/* Background Image */}
|
|
||||||
{background.showBackground && background.backgroundImage && (
|
|
||||||
<Image
|
|
||||||
alt="Background image"
|
|
||||||
src={background.backgroundImage}
|
|
||||||
fill={true}
|
|
||||||
style={{
|
|
||||||
zIndex: 0,
|
|
||||||
filter: `${background.blur && "blur(4px)"} brightness(${
|
|
||||||
background.darken.enabled && background.darken.amount / 2
|
|
||||||
})`,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Info Card */}
|
{/* Info Card */}
|
||||||
<div
|
<div
|
||||||
className={`${
|
className={`${infoCard.transparency != 0 && `${selectedTheme.infoCardColor} shadow-lg rounded-lg`} text-center`}
|
||||||
infoCard.transparency != 0
|
|
||||||
? `${selectedTheme.infoCardColor} shadow-lg rounded-lg`
|
|
||||||
: ``
|
|
||||||
} text-center`}
|
|
||||||
style={{
|
style={{
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
opacity: infoCard.transparency != 0 ? infoCard.transparency : 1,
|
opacity: infoCard.transparency != 0 ? infoCard.transparency : 1,
|
||||||
@ -184,6 +175,6 @@ export default function Home() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user