Initial Commit

This commit is contained in:
Anthony 2023-11-14 14:13:49 +00:00
parent 3fe87e8b00
commit 63c5982a1d
17 changed files with 5315 additions and 2 deletions

39
.gitignore vendored Normal file
View File

@ -0,0 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env*.local
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
# IDEA folder
/.idea/

View File

@ -1,2 +1,3 @@
# anthonyberg-website # Anthony Berg Portfolio
My portfolio website created in Next.js with Nextra
This is my own personal portfolio made with Next.js and the Nextra framework.

12
next.config.js Normal file
View File

@ -0,0 +1,12 @@
const withNextra = require('nextra')({
theme: 'nextra-theme-blog',
themeConfig: './theme.config.js',
// optional: add `unstable_staticImage: true` to enable Nextra's auto image import
})
/** @type {import('next').NextConfig} */
const nextConfig = {
// any configs you need
}
module.exports = withNextra(nextConfig)

5029
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

24
package.json Normal file
View File

@ -0,0 +1,24 @@
{
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@vercel/analytics": "^1.1.1",
"gray-matter": "^4.0.3",
"next": "latest",
"nextra": "^2.0.0-beta.5",
"nextra-theme-blog": "^2.0.0-beta.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rss": "^1.2.2"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/react": "^18.0.14",
"@types/react-dom": "^18.0.5",
"typescript": "^4.7.4"
}
}

21
pages/_app.tsx Normal file
View File

@ -0,0 +1,21 @@
import 'nextra-theme-blog/style.css'
import type { AppProps } from 'next/app'
import Head from 'next/head'
import '../styles/main.css'
export default function App({ Component, pageProps }: AppProps) {
return (
<>
<Head>
<link
rel="preload"
href="/fonts/Inter-roman.latin.var.woff2"
as="font"
type="font/woff2"
crossOrigin="anonymous"
/>
</Head>
<Component {...pageProps} />
</>
)
}

31
pages/_document.tsx Normal file
View File

@ -0,0 +1,31 @@
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
const meta = {
title: 'Anthony Berg Portfolio',
description: 'My own personal portfolio including for my own projects related to computer science',
image: 'https://assets.vercel.com/image/upload/q_auto/front/vercel/dps.png',
}
return (
<Html lang="en">
<Head>
<meta name="robots" content="follow, index" />
<meta name="description" content={meta.description} />
<meta property="og:site_name" content={meta.title} />
<meta property="og:description" content={meta.description} />
<meta property="og:title" content={meta.title} />
<meta property="og:image" content={meta.image} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@yourname" />
<meta name="twitter:title" content={meta.title} />
<meta name="twitter:description" content={meta.description} />
<meta name="twitter:image" content={meta.image} />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}

19
pages/index.mdx Normal file
View File

@ -0,0 +1,19 @@
---
type: page
title: Anthony Berg
date: 2023-11-14
---
# Anthony Berg
Hiya, I am in my 3rd year of university, studying Computer Science at Newcastle University.
I have a few open source projects that I have worked on that you can find in my [portfolio](/projects).
---
<div>
GitHub [@smyalygames](https://github.com/smyalygames)
<br />
LinkedIn [Profile](https://www.linkedin.com/in/anthony-berg-a512a9197/)
</div>

9
pages/posts/index.md Normal file
View File

@ -0,0 +1,9 @@
---
type: posts
title: Posts
date: 2023-11-14
---
# Posts
## This is currently under construction

11
pages/projects.mdx Normal file
View File

@ -0,0 +1,11 @@
---
type: page
title: Projects
date: 2023-11-14
---
# Projects
Here are some of my projects that I have worked on:
## This is currently under construction

13
pages/tags/[tag].mdx Normal file
View File

@ -0,0 +1,13 @@
---
type: tag
title: Tagged Posts
---
import { useRouter } from 'next/router'
export const TagName = () => {
const { tag } = useRouter().query
return tag || null
}
# Posts Tagged with “<TagName/>”

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Binary file not shown.

65
styles/main.css Normal file
View File

@ -0,0 +1,65 @@
@font-face {
font-family: 'Inter var';
font-style: normal;
font-weight: 100 900;
font-display: block;
src: url(/fonts/Inter-roman.latin.var.woff2) format('woff2');
}
@font-face {
font-family: 'Inter var';
font-style: italic;
font-weight: 100 900;
font-display: block;
src: url(/fonts/Inter-italic.latin.var.woff2) format('woff2');
font-named-instance: 'Italic';
}
body {
font-family: 'Inter var', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
-webkit-font-smoothing: subpixel-antialiased;
font-feature-settings: 'case' 1, 'cpsp' 1, 'dlig' 1, 'cv01' 1, 'cv02',
'cv03' 1, 'cv04' 1;
font-variation-settings: 'wght' 450;
font-variant: common-ligatures contextual;
letter-spacing: -0.02em;
}
b,
strong,
h3,
h4,
h5,
h6 {
font-variation-settings: 'wght' 650;
}
h1 {
font-variation-settings: 'wght' 850;
}
h2 {
font-variation-settings: 'wght' 750;
}
@media screen and (min-device-pixel-ratio: 1.5),
screen and (min-resolution: 1.5dppx) {
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
details summary {
cursor: pointer;
}
img.next-image {
margin: 0;
}
.prose a {
color: #0074de;
}
.nav-line .nav-link {
color: #69778c;
}

19
theme.config.js Normal file
View File

@ -0,0 +1,19 @@
const YEAR = new Date().getFullYear()
export default {
footer: (
<footer>
<small>
<time>{YEAR}</time> © Anthony Berg.
</small>
<style jsx>{`
footer {
margin-top: 8rem;
}
a {
float: right;
}
`}</style>
</footer>
),
}

20
tsconfig.json Normal file
View File

@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}