diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b07b888 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +# Use a lightweight Node.js image +FROM node:22-alpine AS builder + +# Set the working directory +WORKDIR /app + +# Copy package.json and install dependencies +COPY package*.json ./ +RUN npm install + +# Copy the rest of the application code +COPY . . + +# Build the Next.js application +RUN npm run build + +# Use a new image for the production environment +FROM node:22-alpine AS runner + +# Set the working directory +WORKDIR /app + +# Copy built files from the builder stage +COPY --from=builder /app ./ + +# Expose the application port +EXPOSE 3000 + +# Command to run the application +CMD ["npm", "start"] diff --git a/data/config.json b/data/config.json index 23986a9..868a1fb 100644 --- a/data/config.json +++ b/data/config.json @@ -1,5 +1,5 @@ { - "title": "Blog Winderickx.me", + "title": "Blog Tuxonauts.be", "description": "Technologie blog vol informatie", "repositoryUrl": "https://gitlab.com/eliwinderickx/blog2024" } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 6d0f676..34a29a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "brevifolia-next", "dependencies": { - "@next/font": "13.0.4", + "@next/font": "^13.0.4", "glob": "^8.0.3", "gray-matter": "^4.0.3", "next": "13.0.4", @@ -190,6 +190,8 @@ }, "node_modules/@next/font": { "version": "13.0.4", + "resolved": "https://registry.npmjs.org/@next/font/-/font-13.0.4.tgz", + "integrity": "sha512-csZhVqe870p7XE03WfbDLzjVwdBAWxe6/lWGQosfqY/XN5tsmfDLpj442veicfCiiuF7/ydSnAAJxH8PQVBVWQ==", "license": "MIT" }, "node_modules/@next/swc-android-arm-eabi": { diff --git a/package.json b/package.json index fe47659..af57179 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "lint": "next lint" }, "dependencies": { - "@next/font": "13.0.4", + "@next/font": "^13.0.4", + "glob": "^8.0.3", "gray-matter": "^4.0.3", "next": "13.0.4", - "glob": "^8.0.3", "raw-loader": "^4.0.2", "react": "18.2.0", "react-dom": "18.2.0", @@ -20,5 +20,10 @@ "devDependencies": { "eslint": "8.27.0", "eslint-config-next": "13.0.4" + }, + "scripts": { + "dev": "next dev -p 5000", + "start": "next start -p 5000" } + } diff --git a/pages/_app.js b/pages/_app.js index 62ff4f5..72e958f 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -1,13 +1,13 @@ import "../styles/globals.css" -import { Work_Sans } from "@next/font/google" +import localFont from "@next/font/local" -// importing the Work Sans font with -// the Next.js 13 Font Optimization Feature -const workSans = Work_Sans({ - weight: ["400", "700"], - style: ["normal", "italic"], - subsets: ["latin"], -}) +const workSans = localFont({ src: '../public/fonts/WorkSans.ttf' }) + +// const workSans = Work_Sans({ +// weight: ["400", "700"], +// style: ["normal", "italic"], +// subsets: ["latin"], +// }) function MyApp({ Component, pageProps }) { return
diff --git a/public/fonts/WorkSans-Black.ttf b/public/fonts/WorkSans-Black.ttf new file mode 100644 index 0000000..4ddbd0a Binary files /dev/null and b/public/fonts/WorkSans-Black.ttf differ diff --git a/public/fonts/WorkSans-BlackItalic.ttf b/public/fonts/WorkSans-BlackItalic.ttf new file mode 100644 index 0000000..690950c Binary files /dev/null and b/public/fonts/WorkSans-BlackItalic.ttf differ diff --git a/public/fonts/WorkSans-Bold.ttf b/public/fonts/WorkSans-Bold.ttf new file mode 100644 index 0000000..5c97989 Binary files /dev/null and b/public/fonts/WorkSans-Bold.ttf differ diff --git a/public/fonts/WorkSans-BoldItalic.ttf b/public/fonts/WorkSans-BoldItalic.ttf new file mode 100644 index 0000000..54418b8 Binary files /dev/null and b/public/fonts/WorkSans-BoldItalic.ttf differ diff --git a/public/fonts/WorkSans-ExtraBold.ttf b/public/fonts/WorkSans-ExtraBold.ttf new file mode 100644 index 0000000..6dc6fca Binary files /dev/null and b/public/fonts/WorkSans-ExtraBold.ttf differ diff --git a/public/fonts/WorkSans-ExtraBoldItalic.ttf b/public/fonts/WorkSans-ExtraBoldItalic.ttf new file mode 100644 index 0000000..258233f Binary files /dev/null and b/public/fonts/WorkSans-ExtraBoldItalic.ttf differ diff --git a/public/fonts/WorkSans-ExtraLight.ttf b/public/fonts/WorkSans-ExtraLight.ttf new file mode 100644 index 0000000..a6d4617 Binary files /dev/null and b/public/fonts/WorkSans-ExtraLight.ttf differ diff --git a/public/fonts/WorkSans-ExtraLightItalic.ttf b/public/fonts/WorkSans-ExtraLightItalic.ttf new file mode 100644 index 0000000..d5f300c Binary files /dev/null and b/public/fonts/WorkSans-ExtraLightItalic.ttf differ diff --git a/public/fonts/WorkSans-Italic.ttf b/public/fonts/WorkSans-Italic.ttf new file mode 100644 index 0000000..40529b6 Binary files /dev/null and b/public/fonts/WorkSans-Italic.ttf differ diff --git a/public/fonts/WorkSans-Light.ttf b/public/fonts/WorkSans-Light.ttf new file mode 100644 index 0000000..1fe1fd1 Binary files /dev/null and b/public/fonts/WorkSans-Light.ttf differ diff --git a/public/fonts/WorkSans-LightItalic.ttf b/public/fonts/WorkSans-LightItalic.ttf new file mode 100644 index 0000000..d70036f Binary files /dev/null and b/public/fonts/WorkSans-LightItalic.ttf differ diff --git a/public/fonts/WorkSans-Medium.ttf b/public/fonts/WorkSans-Medium.ttf new file mode 100644 index 0000000..2168073 Binary files /dev/null and b/public/fonts/WorkSans-Medium.ttf differ diff --git a/public/fonts/WorkSans-MediumItalic.ttf b/public/fonts/WorkSans-MediumItalic.ttf new file mode 100644 index 0000000..dc6944c Binary files /dev/null and b/public/fonts/WorkSans-MediumItalic.ttf differ diff --git a/public/fonts/WorkSans-Regular.ttf b/public/fonts/WorkSans-Regular.ttf new file mode 100644 index 0000000..d24586c Binary files /dev/null and b/public/fonts/WorkSans-Regular.ttf differ diff --git a/public/fonts/WorkSans-SemiBold.ttf b/public/fonts/WorkSans-SemiBold.ttf new file mode 100644 index 0000000..a75721c Binary files /dev/null and b/public/fonts/WorkSans-SemiBold.ttf differ diff --git a/public/fonts/WorkSans-SemiBoldItalic.ttf b/public/fonts/WorkSans-SemiBoldItalic.ttf new file mode 100644 index 0000000..7d07062 Binary files /dev/null and b/public/fonts/WorkSans-SemiBoldItalic.ttf differ diff --git a/public/fonts/WorkSans-Thin.ttf b/public/fonts/WorkSans-Thin.ttf new file mode 100644 index 0000000..a097d7c Binary files /dev/null and b/public/fonts/WorkSans-Thin.ttf differ diff --git a/public/fonts/WorkSans-ThinItalic.ttf b/public/fonts/WorkSans-ThinItalic.ttf new file mode 100644 index 0000000..1fe9f79 Binary files /dev/null and b/public/fonts/WorkSans-ThinItalic.ttf differ diff --git a/public/fonts/WorkSans.ttf b/public/fonts/WorkSans.ttf new file mode 100644 index 0000000..16293f1 Binary files /dev/null and b/public/fonts/WorkSans.ttf differ