generated from Fascinated/nextjs-13-template-with-tailwindcss
Compare commits
1 Commits
master
...
renovate/a
Author | SHA1 | Date | |
---|---|---|---|
231da6abd2 |
@ -24,7 +24,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Restore Docker Cache
|
- name: Restore Docker Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
id: docker-cache
|
id: docker-cache
|
||||||
with:
|
with:
|
||||||
path: /usr/bin/docker
|
path: /usr/bin/docker
|
||||||
@ -48,7 +48,7 @@ jobs:
|
|||||||
password: ${{ secrets.REPO_TOKEN }}
|
password: ${{ secrets.REPO_TOKEN }}
|
||||||
|
|
||||||
- name: Restore Docker Build Cache
|
- name: Restore Docker Build Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v4
|
||||||
id: build-cache
|
id: build-cache
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache
|
path: /tmp/.buildx-cache
|
||||||
|
8012
package-lock.json
generated
Normal file
8012
package-lock.json
generated
Normal file
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.6.0",
|
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
||||||
"@fortawesome/free-brands-svg-icons": "^6.6.0",
|
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
||||||
"@fortawesome/free-regular-svg-icons": "^6.6.0",
|
"@fortawesome/free-regular-svg-icons": "^6.4.2",
|
||||||
"@fortawesome/free-solid-svg-icons": "^6.6.0",
|
"@fortawesome/free-solid-svg-icons": "^6.4.2",
|
||||||
"@fortawesome/react-fontawesome": "^0.2.2",
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
||||||
"@types/node": "^22.5.1",
|
"@types/node": "^20.8.6",
|
||||||
"@types/react": "^18.3.4",
|
"@types/react": "^18.2.28",
|
||||||
"@types/react-dom": "^18.3.0",
|
"@types/react-dom": "^18.2.13",
|
||||||
"autoprefixer": "^10.4.20",
|
"autoprefixer": "^10.4.16",
|
||||||
"eslint": "^9.9.1",
|
"eslint": "^8.51.0",
|
||||||
"eslint-config-next": "^14.2.7",
|
"eslint-config-next": "^13.5.4",
|
||||||
"next": "^14.2.7",
|
"next": "^13.5.4",
|
||||||
"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.41",
|
"postcss": "^8.4.31",
|
||||||
"react": "18.3.1",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.3.1",
|
"react-dom": "18.2.0",
|
||||||
"sharp": "^0.33.5",
|
"sharp": "^0.33.0",
|
||||||
"tailwindcss": "^3.4.10",
|
"tailwindcss": "^3.3.3",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.2.2",
|
||||||
"use-lanyard": "^1.5.2"
|
"use-lanyard": "^1.4.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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,18 +1,21 @@
|
|||||||
import { Config } from "@/src/types/config";
|
import { Config } from "@/src/types/config";
|
||||||
import { config as fontAwesomeConfig } from "@fortawesome/fontawesome-svg-core";
|
import { config } 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;
|
||||||
fontAwesomeConfig.autoAddCss = false;
|
config.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({ children }: { children: ReactNode }) {
|
export default function RootLayout({
|
||||||
|
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 the settings pulled from the config file
|
} = Config; // All of 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,23 +54,32 @@ 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={`${infoCard.transparency != 0 && `${selectedTheme.infoCardColor} shadow-lg rounded-lg`} text-center`}
|
className={`${
|
||||||
|
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,
|
||||||
@ -175,6 +184,6 @@ export default function Home() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user