1
0
Fork 0

Initial commit

This commit is contained in:
Vojtěch Mareš 2021-11-17 12:08:15 +01:00
commit b8489a3de3
21 changed files with 3783 additions and 0 deletions

View file

@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}

37
sites/signpost.mareshq.com/.gitignore vendored Normal file
View file

@ -0,0 +1,37 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# 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
.env.development.local
.env.test.local
.env.production.local
# vercel
.vercel
# typescript
*.tsbuildinfo

View file

@ -0,0 +1,3 @@
node_modules
.next
out

View file

@ -0,0 +1,6 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 70
}

View file

@ -0,0 +1,7 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

View file

@ -0,0 +1,34 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
## Learn More
To learn more about Next.js, take a look at the following resources:
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
## Deploy on Vercel
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

View file

@ -0,0 +1,3 @@
# signpost.mareshq.com
Crossroad for all my services currently running

View file

@ -0,0 +1,46 @@
[
{
"name": "Main",
"items": [
{ "name": "GitLab", "url": "https://gitlab.mareshq.com" },
{ "name": "Post (mail)", "url": "https://post.mareshq.com" },
{ "name": "Sentry", "url": "https://sentry.mareshq.com" },
{ "name": "MailDev", "url": "https://maildev.mareshq.com" },
{
"name": "Google Workspace (admin)",
"url": "https://admin.google.com/"
}
]
},
{
"name": "Infra / Providers",
"items": [
{ "name": "Cloudflare", "url": "https://dash.cloudflare.com" },
{ "name": "Hetzner", "url": "https://console.hetzner.cloud" },
{
"name": "DigitalOcean",
"url": "https://cloud.digitalocean.com"
},
{ "name": "Netlify", "url": "https://netlify.com" }
]
},
{
"name": "Infra / Servers",
"items": [
{
"name": "Koala (koala.vxm.cz)",
"url": "https://koala.vxm.cz"
}
]
},
{
"name": "Infra / Domain registrars",
"items": [
{ "name": "Cloudflare", "url": "https://dash.cloudflare.com" },
{ "name": "Vercel", "url": "https://vercel.com" },
{ "name": "GoDaddy", "url": "https://godaddy.com" },
{ "name": "Netlify", "url": "https://netlify.com" },
{ "name": "Forpsi", "url": "https://forpsi.cz" }
]
}
]

View file

@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View file

@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
};

View file

@ -0,0 +1,28 @@
{
"name": "signpost.mareshq.com",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"fmt": "prettier --write .",
"fmt-check": "prettier --check ."
},
"dependencies": {
"next": "12.0.3",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"@types/node": "16.11.7",
"@types/react": "17.0.34",
"autoprefixer": "^10.4.0",
"eslint": "7",
"eslint-config-next": "12.0.3",
"postcss": "^8.3.11",
"prettier": "^2.4.1",
"tailwindcss": "^2.2.19",
"typescript": "4.4.4"
}
}

View file

@ -0,0 +1,8 @@
import '../styles/globals.css';
import type { AppProps } from 'next/app';
function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}
export default App;

View file

@ -0,0 +1,67 @@
import type { NextPage } from 'next';
import Head from 'next/head';
import sections from '../content/sections.json';
const Home: NextPage = () => {
return (
<>
<Head>
<title>signpost.mareshq.com</title>
<meta
name="description"
content="Signpost for Vojtech Mares (MaresHQ)"
/>
<link rel="icon" href="/favicon.ico" />
</Head>
<h3 className="px-16 py-4 text-gray-600">
signpost.mareshq.com
</h3>
<main className="px-16">
<h1 className="font-sans font-bold text-4xl">
MaresHQ Signpost
</h1>
<div className="grid grid-cols-3 gap-4">
{sections.map((section) => (
<section key={section.name} className="mt-2 mx-2">
<h2 className="font-sans font-semibold text-2xl mb-4">
{section.name}
</h2>
<ul>
{section.items.map((item) => (
<li key={item.name} className="my-2">
<a
href={item.url}
target="_blank"
rel="noopener noreferrer"
className="
block
w-full
text-center
mx-2
py-2
border-2
border-gray-400
rounded
hover:bg-gray-900
hover:border-gray-900
hover:text-white
transition
focus:ring-2
focus:ring-gray-600 text-gray-800
"
>
{item.name}
</a>
</li>
))}
</ul>
</section>
))}
</div>
</main>
</>
);
};
export default Home;

View file

@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View file

@ -0,0 +1,11 @@
module.exports = {
purge: ['./**/*.tsx'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};

View file

@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"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"]
}

File diff suppressed because it is too large Load diff