-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from timoclsn/resources
Add Resources
- Loading branch information
Showing
172 changed files
with
9,812 additions
and
9,716 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
jobs: | ||
lint: | ||
name: ESLint | ||
runs-on: ubuntu-latest | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2.2.2 | ||
with: | ||
version: 7 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Lint | ||
run: pnpm lint | ||
|
||
typecheck: | ||
name: TypeScript | ||
runs-on: ubuntu-latest | ||
env: | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2.2.2 | ||
with: | ||
version: 7 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Type check | ||
run: pnpm typecheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,20 @@ | ||
# 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 | ||
node_modules | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# vercel | ||
.vercel | ||
.env | ||
.env*.local | ||
|
||
public/sitemap.xml | ||
# Turborepo | ||
.turbo |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['custom'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# 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* | ||
.pnpm-debug.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Head from 'next/head'; | ||
|
||
export const Favicons = () => { | ||
return ( | ||
<Head> | ||
<link rel="icon" type="image/png" href="/favicons/favicon.png" /> | ||
<link rel="icon" type="image/svg+xml" href="/favicons/favicon.svg" /> | ||
<link rel="apple-touch-icon" href="/favicons/favicon-apple-touch.png" /> | ||
<link rel="manifest" href="/favicons/manifest.webmanifest" /> | ||
<meta name="theme-color" content="#FFFFFF" /> | ||
</Head> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const Footer = () => { | ||
return <footer>Footer</footer>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { ReactNode } from 'react'; | ||
import { Favicons } from './Favicons'; | ||
import { Footer } from './Footer'; | ||
import { Navigation } from './Navigation'; | ||
import { SEO } from './SEO'; | ||
|
||
const defaultTitle = 'Life Centered Design Collective'; | ||
|
||
interface Props { | ||
children: ReactNode; | ||
title?: string; | ||
description?: string; | ||
slug?: string; | ||
previewImage?: string; | ||
} | ||
|
||
export const Layout = ({ | ||
children, | ||
title, | ||
description, | ||
slug, | ||
previewImage, | ||
}: Props) => { | ||
const pageTitle = !title ? defaultTitle : `${title} | ${defaultTitle}`; | ||
const pageDescription = description | ||
? description | ||
: 'Life Centered Design Collective'; | ||
slug = slug ? `/${slug}` : ''; | ||
const pagePreviewImage = previewImage ? previewImage : 'og-image.png'; | ||
return ( | ||
<> | ||
<SEO | ||
title={pageTitle} | ||
description={pageDescription} | ||
slug={slug} | ||
previewImage={pagePreviewImage} | ||
/> | ||
<Favicons /> | ||
<Navigation /> | ||
<main className="flex-1">{children}</main> | ||
<Footer /> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const Navigation = () => { | ||
return <header>Navigation</header>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import Head from 'next/head'; | ||
|
||
interface Props { | ||
title: string; | ||
description: string; | ||
slug: string; | ||
previewImage: string; | ||
} | ||
|
||
export const SEO = ({ title, description, slug, previewImage }: Props) => { | ||
return ( | ||
<Head> | ||
<title>{title}</title> | ||
<meta name="description" content={description} key="description" /> | ||
<link | ||
rel="canonical" | ||
href={`https://lifecentereddesign.co${slug}`} | ||
key="canonical" | ||
/> | ||
|
||
<meta property="og:type" content="website" key="og:type" /> | ||
<meta | ||
property="og:site_name" | ||
content="Life Centered Design Collective" | ||
key="og:site_name" | ||
/> | ||
<meta property="og:locale" content="en" key="og:locale" /> | ||
<meta | ||
property="og:url" | ||
content={`https://lifecentereddesign.co${slug}`} | ||
key="og:url" | ||
/> | ||
<meta property="og:title" content={title} key="og:title" /> | ||
<meta | ||
property="og:description" | ||
content={description} | ||
key="og:description" | ||
/> | ||
<meta | ||
property="og:image" | ||
content={`https://lifecentereddesign.co/${previewImage}`} | ||
key="og:image" | ||
/> | ||
<meta | ||
property="og:image:alt" | ||
content="The life-centered design collective" | ||
key="og:image:alt" | ||
/> | ||
<meta property="og:image:width" content="1200" key="og:image:width" /> | ||
<meta property="og:image:height" content="630" key="og:image:height" /> | ||
|
||
<meta | ||
name="twitter:card" | ||
content="summary_large_image" | ||
key="twitter:card" | ||
/> | ||
<meta name="twitter:title" content={title} key="twitter:title" /> | ||
<meta | ||
name="twitter:description" | ||
content={description} | ||
key="twitter:description" | ||
/> | ||
</Head> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const withTM = require('next-transpile-modules')(['design-system']); | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
swcMinify: true, | ||
experimental: { | ||
legacyBrowsers: false, | ||
browsersListForSwc: true, | ||
scrollRestoration: true, | ||
}, | ||
}; | ||
|
||
module.exports = withTM(nextConfig); |
Oops, something went wrong.
587ca24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lcd-collective – ./apps/collective
collective-lifecentereddesign-net.vercel.app
lcd-collective-git-main-timoclsn.vercel.app
lcd-collective-timoclsn.vercel.app
587ca24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
lcd-resources – ./apps/resources
lcd-resources-timoclsn.vercel.app
lifecentereddesign.net
lifecentereddesign-net.vercel.app
lcd-resources-git-main-timoclsn.vercel.app