Skip to content

Commit

Permalink
Merge pull request #132 from timoclsn/resources
Browse files Browse the repository at this point in the history
Add Resources
  • Loading branch information
timoclsn authored Oct 16, 2022
2 parents 662c3e7 + 8c36106 commit 587ca24
Show file tree
Hide file tree
Showing 172 changed files with 9,812 additions and 9,716 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions .eslintrc.json

This file was deleted.

9 changes: 0 additions & 9 deletions .github/dependabot.yml

This file was deleted.

59 changes: 59 additions & 0 deletions .github/main.yml
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
28 changes: 6 additions & 22 deletions .gitignore
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
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

4 changes: 4 additions & 0 deletions apps/collective/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ['custom'],
};
36 changes: 36 additions & 0 deletions apps/collective/.gitignore
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
34 changes: 34 additions & 0 deletions apps/collective/README.md
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.
13 changes: 13 additions & 0 deletions apps/collective/components/Favicons.tsx
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>
);
};
3 changes: 3 additions & 0 deletions apps/collective/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Footer = () => {
return <footer>Footer</footer>;
};
44 changes: 44 additions & 0 deletions apps/collective/components/Layout.tsx
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 />
</>
);
};
3 changes: 3 additions & 0 deletions apps/collective/components/Navigation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Navigation = () => {
return <header>Navigation</header>;
};
65 changes: 65 additions & 0 deletions apps/collective/components/SEO.tsx
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>
);
};
14 changes: 14 additions & 0 deletions apps/collective/next.config.js
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);
Loading

2 comments on commit 587ca24

@vercel
Copy link

@vercel vercel bot commented on 587ca24 Oct 16, 2022

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

@vercel
Copy link

@vercel vercel bot commented on 587ca24 Oct 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.