Compare commits

..

6 Commits

Author SHA1 Message Date
81e19866ff update all depends
All checks were successful
Publish Docker Image / docker (push) Successful in 1m49s
2024-08-29 22:50:10 +01:00
42f631da08 fix background image
All checks were successful
Publish Docker Image / docker (push) Successful in 2m27s
2024-08-29 22:45:47 +01:00
Lee
db6ecf5c6a Merge pull request 'fix(deps): update dependency use-lanyard to v1.5.2' (#23) from renovate/use-lanyard-1.x-lockfile into master
All checks were successful
Publish Docker Image / docker (push) Successful in 1m4s
Reviewed-on: #23
2024-01-16 23:23:35 +00:00
Lee
9281f02688 Merge pull request 'fix(deps): update font awesome to v6.5.1' (#26) from renovate/font-awesome into master
All checks were successful
Publish Docker Image / docker (push) Successful in 1m50s
Reviewed-on: #26
2024-01-16 23:21:01 +00:00
85324c1398 fix(deps): update font awesome to v6.5.1 2024-01-16 23:18:12 +00:00
c8ad2055e6 fix(deps): update dependency use-lanyard to v1.5.2 2024-01-16 23:17:59 +00:00
7 changed files with 734 additions and 8575 deletions

8009
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -10,26 +10,26 @@
"update-depends": "npm-check -u"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-brands-svg-icons": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@types/node": "^20.8.6",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"autoprefixer": "^10.4.16",
"eslint": "^8.51.0",
"eslint-config-next": "^14.0.0",
"next": "^14.0.0",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/free-regular-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@types/node": "^22.5.1",
"@types/react": "^18.3.4",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.9.1",
"eslint-config-next": "^14.2.7",
"next": "^14.2.7",
"next-plugin-yaml": "^1.0.1",
"npm-check": "^6.0.1",
"postcss": "^8.4.31",
"react": "18.2.0",
"react-dom": "18.2.0",
"sharp": "^0.33.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"use-lanyard": "^1.4.4"
"postcss": "^8.4.41",
"react": "18.3.1",
"react-dom": "18.3.1",
"sharp": "^0.33.5",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4",
"use-lanyard": "^1.5.2"
}
}

85
pnpm-lock.yaml generated

@ -36,11 +36,11 @@ dependencies:
specifier: ^8.51.0
version: 8.51.0
eslint-config-next:
specifier: ^14.0.0
version: 14.0.4(eslint@8.51.0)(typescript@5.2.2)
specifier: ^13.5.4
version: 13.5.4(eslint@8.51.0)(typescript@5.2.2)
next:
specifier: ^14.0.0
version: 14.0.4(react-dom@18.2.0)(react@18.2.0)
specifier: ^13.5.4
version: 13.5.4(react-dom@18.2.0)(react@18.2.0)
next-plugin-yaml:
specifier: ^1.0.1
version: 1.0.1
@ -542,18 +542,18 @@ packages:
'@jridgewell/sourcemap-codec': 1.4.15
dev: false
/@next/env@14.0.4:
resolution: {integrity: sha512-irQnbMLbUNQpP1wcE5NstJtbuA/69kRfzBrpAD7Gsn8zm/CY6YQYc3HQBz8QPxwISG26tIm5afvvVbu508oBeQ==}
/@next/env@13.5.4:
resolution: {integrity: sha512-LGegJkMvRNw90WWphGJ3RMHMVplYcOfRWf2Be3td3sUa+1AaxmsYyANsA+znrGCBjXJNi4XAQlSoEfUxs/4kIQ==}
dev: false
/@next/eslint-plugin-next@14.0.4:
resolution: {integrity: sha512-U3qMNHmEZoVmHA0j/57nRfi3AscXNvkOnxDmle/69Jz/G0o/gWjXTDdlgILZdrxQ0Lw/jv2mPW8PGy0EGIHXhQ==}
/@next/eslint-plugin-next@13.5.4:
resolution: {integrity: sha512-vI94U+D7RNgX6XypSyjeFrOzxGlZyxOplU0dVE5norIfZGn/LDjJYPHdvdsR5vN1eRtl6PDAsOHmycFEOljK5A==}
dependencies:
glob: 7.1.7
dev: false
/@next/swc-darwin-arm64@14.0.4:
resolution: {integrity: sha512-mF05E/5uPthWzyYDyptcwHptucf/jj09i2SXBPwNzbgBNc+XnwzrL0U6BmPjQeOL+FiB+iG1gwBeq7mlDjSRPg==}
/@next/swc-darwin-arm64@13.5.4:
resolution: {integrity: sha512-Df8SHuXgF1p+aonBMcDPEsaahNo2TCwuie7VXED4FVyECvdXfRT9unapm54NssV9tF3OQFKBFOdlje4T43VO0w==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
@ -561,8 +561,8 @@ packages:
dev: false
optional: true
/@next/swc-darwin-x64@14.0.4:
resolution: {integrity: sha512-IZQ3C7Bx0k2rYtrZZxKKiusMTM9WWcK5ajyhOZkYYTCc8xytmwSzR1skU7qLgVT/EY9xtXDG0WhY6fyujnI3rw==}
/@next/swc-darwin-x64@13.5.4:
resolution: {integrity: sha512-siPuUwO45PnNRMeZnSa8n/Lye5ZX93IJom9wQRB5DEOdFrw0JjOMu1GINB8jAEdwa7Vdyn1oJ2xGNaQpdQQ9Pw==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
@ -570,8 +570,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-arm64-gnu@14.0.4:
resolution: {integrity: sha512-VwwZKrBQo/MGb1VOrxJ6LrKvbpo7UbROuyMRvQKTFKhNaXjUmKTu7wxVkIuCARAfiI8JpaWAnKR+D6tzpCcM4w==}
/@next/swc-linux-arm64-gnu@13.5.4:
resolution: {integrity: sha512-l/k/fvRP/zmB2jkFMfefmFkyZbDkYW0mRM/LB+tH5u9pB98WsHXC0WvDHlGCYp3CH/jlkJPL7gN8nkTQVrQ/2w==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@ -579,8 +579,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-arm64-musl@14.0.4:
resolution: {integrity: sha512-8QftwPEW37XxXoAwsn+nXlodKWHfpMaSvt81W43Wh8dv0gkheD+30ezWMcFGHLI71KiWmHK5PSQbTQGUiidvLQ==}
/@next/swc-linux-arm64-musl@13.5.4:
resolution: {integrity: sha512-YYGb7SlLkI+XqfQa8VPErljb7k9nUnhhRrVaOdfJNCaQnHBcvbT7cx/UjDQLdleJcfyg1Hkn5YSSIeVfjgmkTg==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
@ -588,8 +588,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-x64-gnu@14.0.4:
resolution: {integrity: sha512-/s/Pme3VKfZAfISlYVq2hzFS8AcAIOTnoKupc/j4WlvF6GQ0VouS2Q2KEgPuO1eMBwakWPB1aYFIA4VNVh667A==}
/@next/swc-linux-x64-gnu@13.5.4:
resolution: {integrity: sha512-uE61vyUSClnCH18YHjA8tE1prr/PBFlBFhxBZis4XBRJoR+txAky5d7gGNUIbQ8sZZ7LVkSVgm/5Fc7mwXmRAg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@ -597,8 +597,8 @@ packages:
dev: false
optional: true
/@next/swc-linux-x64-musl@14.0.4:
resolution: {integrity: sha512-m8z/6Fyal4L9Bnlxde5g2Mfa1Z7dasMQyhEhskDATpqr+Y0mjOBZcXQ7G5U+vgL22cI4T7MfvgtrM2jdopqWaw==}
/@next/swc-linux-x64-musl@13.5.4:
resolution: {integrity: sha512-qVEKFYML/GvJSy9CfYqAdUexA6M5AklYcQCW+8JECmkQHGoPxCf04iMh7CPR7wkHyWWK+XLt4Ja7hhsPJtSnhg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
@ -606,8 +606,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-arm64-msvc@14.0.4:
resolution: {integrity: sha512-7Wv4PRiWIAWbm5XrGz3D8HUkCVDMMz9igffZG4NB1p4u1KoItwx9qjATHz88kwCEal/HXmbShucaslXCQXUM5w==}
/@next/swc-win32-arm64-msvc@13.5.4:
resolution: {integrity: sha512-mDSQfqxAlfpeZOLPxLymZkX0hYF3juN57W6vFHTvwKlnHfmh12Pt7hPIRLYIShk8uYRsKPtMTth/EzpwRI+u8w==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
@ -615,8 +615,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-ia32-msvc@14.0.4:
resolution: {integrity: sha512-zLeNEAPULsl0phfGb4kdzF/cAVIfaC7hY+kt0/d+y9mzcZHsMS3hAS829WbJ31DkSlVKQeHEjZHIdhN+Pg7Gyg==}
/@next/swc-win32-ia32-msvc@13.5.4:
resolution: {integrity: sha512-aoqAT2XIekIWoriwzOmGFAvTtVY5O7JjV21giozBTP5c6uZhpvTWRbmHXbmsjZqY4HnEZQRXWkSAppsIBweKqw==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
@ -624,8 +624,8 @@ packages:
dev: false
optional: true
/@next/swc-win32-x64-msvc@14.0.4:
resolution: {integrity: sha512-yEh2+R8qDlDCjxVpzOTEpBLQTEFAcP2A8fUFLaWNap9GitYKkKv1//y2S6XY6zsR4rCOPRpU7plYDR+az2n30A==}
/@next/swc-win32-x64-msvc@13.5.4:
resolution: {integrity: sha512-cyRvlAxwlddlqeB9xtPSfNSCRy8BOa4wtMo0IuI9P7Y0XT2qpDrpFKRyZ7kUngZis59mPVla5k8X1oOJ8RxDYg==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
@ -1725,8 +1725,8 @@ packages:
engines: {node: '>=10'}
dev: false
/eslint-config-next@14.0.4(eslint@8.51.0)(typescript@5.2.2):
resolution: {integrity: sha512-9/xbOHEQOmQtqvQ1UsTQZpnA7SlDMBtuKJ//S4JnoyK3oGLhILKXdBgu/UO7lQo/2xOykQULS1qQ6p2+EpHgAQ==}
/eslint-config-next@13.5.4(eslint@8.51.0)(typescript@5.2.2):
resolution: {integrity: sha512-FzQGIj4UEszRX7fcRSJK6L1LrDiVZvDFW320VVntVKh3BSU8Fb9kpaoxQx0cdFgf3MQXdeSbrCXJ/5Z/NndDkQ==}
peerDependencies:
eslint: ^7.23.0 || ^8.0.0
typescript: '>=3.3.1'
@ -1734,7 +1734,7 @@ packages:
typescript:
optional: true
dependencies:
'@next/eslint-plugin-next': 14.0.4
'@next/eslint-plugin-next': 13.5.4
'@rushstack/eslint-patch': 1.5.1
'@typescript-eslint/parser': 6.7.5(eslint@8.51.0)(typescript@5.2.2)
eslint: 8.51.0
@ -3163,9 +3163,9 @@ packages:
js-yaml-loader: 1.2.2
dev: false
/next@14.0.4(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-qbwypnM7327SadwFtxXnQdGiKpkuhaRLE2uq62/nRul9cj9KhQ5LhHmlziTNqUidZotw/Q1I9OjirBROdUJNgA==}
engines: {node: '>=18.17.0'}
/next@13.5.4(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-+93un5S779gho8y9ASQhb/bTkQF17FNQOtXLKAj3lsNgltEcF0C5PMLLncDmH+8X1EnJH1kbqAERa29nRXqhjA==}
engines: {node: '>=16.14.0'}
hasBin: true
peerDependencies:
'@opentelemetry/api': ^1.1.0
@ -3178,26 +3178,25 @@ packages:
sass:
optional: true
dependencies:
'@next/env': 14.0.4
'@next/env': 13.5.4
'@swc/helpers': 0.5.2
busboy: 1.6.0
caniuse-lite: 1.0.30001549
graceful-fs: 4.2.11
postcss: 8.4.31
react: 18.2.0
react-dom: 18.2.0(react@18.2.0)
styled-jsx: 5.1.1(react@18.2.0)
watchpack: 2.4.0
optionalDependencies:
'@next/swc-darwin-arm64': 14.0.4
'@next/swc-darwin-x64': 14.0.4
'@next/swc-linux-arm64-gnu': 14.0.4
'@next/swc-linux-arm64-musl': 14.0.4
'@next/swc-linux-x64-gnu': 14.0.4
'@next/swc-linux-x64-musl': 14.0.4
'@next/swc-win32-arm64-msvc': 14.0.4
'@next/swc-win32-ia32-msvc': 14.0.4
'@next/swc-win32-x64-msvc': 14.0.4
'@next/swc-darwin-arm64': 13.5.4
'@next/swc-darwin-x64': 13.5.4
'@next/swc-linux-arm64-gnu': 13.5.4
'@next/swc-linux-arm64-musl': 13.5.4
'@next/swc-linux-x64-gnu': 13.5.4
'@next/swc-linux-x64-musl': 13.5.4
'@next/swc-win32-arm64-msvc': 13.5.4
'@next/swc-win32-ia32-msvc': 13.5.4
'@next/swc-win32-x64-msvc': 13.5.4
transitivePeerDependencies:
- '@babel/core'
- babel-plugin-macros

@ -5,7 +5,7 @@ import Image from "next/image";
import { Fragment } from "react";
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 }) {
return <Fragment>{props.children}</Fragment>;
@ -13,7 +13,7 @@ function LanyardWrapper(props: { children: any }) {
export default function Avatar(props: any) {
const { avatar } = props;
const { discord }: any = Config;
const { discord }: any = config;
return (
<div className="relative inline-block">

@ -1,21 +1,18 @@
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 { Inter } from "next/font/google";
import "./globals.css";
import { ReactNode } from "react";
const Config: Config = require("../../config.yml") as any;
config.autoAddCss = false;
const config: Config = require("../../config.yml") as any;
fontAwesomeConfig.autoAddCss = false;
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({
children,
}: {
children: React.ReactNode;
}) {
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>

@ -8,7 +8,7 @@ import Image from "next/image";
import Link from "next/link";
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
@ -23,7 +23,7 @@ export default function Home() {
options,
description,
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
// 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)
return (
<>
<main
className={`flex flex-col items-center justify-center w-screen h-screen ${selectedTheme.backgroundColor} ${selectedTheme.textColor}`}
>
<div className={"relative"}>
{/* Background Image */}
{background.showBackground && background.backgroundImage && (
<Image
// eslint-disable-next-line @next/next/no-img-element
<img
alt="Background image"
src={background.backgroundImage}
fill={true}
style={{
zIndex: 0,
filter: `${background.blur && "blur(4px)"} brightness(${
background.darken.enabled && background.darken.amount / 2
})`,
}}
className={`absolute z-0 object-cover w-full h-full ${background.blur && "blur-sm"} brightness-${background.darken.enabled && background.darken.amount / 2}`}
/>
)}
<main
className={`flex flex-col items-center justify-center w-screen h-screen ${selectedTheme.backgroundColor} ${selectedTheme.textColor}`}
>
{/* Info Card */}
<div
className={`${
infoCard.transparency != 0
? `${selectedTheme.infoCardColor} shadow-lg rounded-lg`
: ``
} text-center`}
className={`${infoCard.transparency != 0 && `${selectedTheme.infoCardColor} shadow-lg rounded-lg`} text-center`}
style={{
zIndex: 1,
opacity: infoCard.transparency != 0 ? infoCard.transparency : 1,
@ -184,6 +175,6 @@ export default function Home() {
)}
</div>
</main>
</>
</div>
);
}

1119
yarn.lock

File diff suppressed because it is too large Load Diff