Skip to content

Commit

Permalink
Merge pull request #6 from plastic-labs/indie/new-landing
Browse files Browse the repository at this point in the history
New Landing
  • Loading branch information
mckelvey authored Nov 26, 2024
2 parents 90a3412 + b7c01b3 commit 4a5ead6
Show file tree
Hide file tree
Showing 268 changed files with 19,335 additions and 2,011 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Next
NEXT_PUBLIC_ORIGIN=https://plasticlabs.ai/

# Posthog
NEXT_PUBLIC_POSTHOG_KEY=
NEXT_PUBLIC_POSTHOG_HOST=
142 changes: 140 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,141 @@
{
"extends": "next/core-web-vitals"
}
"root": true,
"plugins": [
"no-unsanitized",
"jsx-a11y",
"@typescript-eslint",
"import",
"prettier",
"react"
],
"extends": [
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"prettier",
"next/core-web-vitals",
"next/typescript",
"plugin:storybook/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"project": "./tsconfig.json"
},
"rules": {
"no-console": "error",
"arrow-parens": [
"error",
"as-needed"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.spec.ts"
]
}
],
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"unknown",
"parent",
"sibling",
"index",
"object",
"type"
],
"pathGroups": [],
"pathGroupsExcludedImportTypes": [
"internal"
],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function"
}
],
"react/jsx-props-no-spreading": "off",
"semi": "off",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true,
"ignoreMemberSort": true,
"memberSyntaxSortOrder": [
"none",
"all",
"multiple",
"single"
],
"allowSeparatedGroups": true
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": [
"PascalCase"
],
"modifiers": [
"exported"
]
},
{
"selector": "enum",
"format": [
"PascalCase",
"UPPER_CASE"
],
"modifiers": [
"exported"
]
},
{
"selector": "typeAlias",
"format": [
"PascalCase"
],
"modifiers": [
"exported"
]
}
],
"@typescript-eslint/semi": [
"error",
"never"
],
"import/prefer-default-export": "off",
"import/no-default-export": "error",
"no-unused-vars": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/dot-notation": "off",
"no-underscore-dangle": "off",
"react/require-default-props": "off",
"react/prop-types": "off",
"import/no-cycle": "error"
}
}
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Lint"

on:
pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node from node version file
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install correct npm version
run: npm install -g npm@^10
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ yarn-error.log*
next-env.d.ts

.env

*storybook.log
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.18.0
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"arrowParens": "avoid",
"printWidth": 80,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all"
}
17 changes: 17 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { StorybookConfig } from '@storybook/nextjs'

const config: StorybookConfig = {
stories: ['../components/**/*.stories.@(ts|tsx)'],
addons: [
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
'@storybook/addon-themes',
],
framework: {
name: '@storybook/nextjs',
options: {},
},
staticDirs: ['../public', { from: '../fonts', to: '/fonts' }],
}
export default config
6 changes: 6 additions & 0 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { addons } from '@storybook/manager-api'
import { BaseTheme } from './theme'

addons.setConfig({
theme: BaseTheme,
})
69 changes: 69 additions & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
import type { Preview } from '@storybook/react'
import { withThemeFromJSXProvider } from '@storybook/addon-themes'
import { ThemeProvider } from 'styled-components'
import { GlobalStyles } from '../styles/global-styles'
import { themes } from '../styles/themes'

const viewports = {
mobileSe: {
name: 'Mobile SE',
styles: {
width: '375px',
height: '844px',
},
},
mobileXr: {
name: 'Mobile',
styles: {
width: '414px',
height: '896px',
},
},
tablet: {
name: 'Tablet',
styles: {
width: '768px',
height: '1024px',
},
},
laptop: {
name: 'Laptop',
styles: {
width: '1280px',
height: '982px',
},
},
laptopWide: {
name: 'Laptop (Wide)',
styles: {
width: '1440px',
height: '1024px',
},
},
}

export const decorators = [
withThemeFromJSXProvider({
themes,
defaultTheme: 'light',
Provider: ThemeProvider,
GlobalStyles,
}),
]

const preview: Preview = {
parameters: {
backgrounds: { disable: true },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
viewport: {
viewports,
}
},
}

export default preview
9 changes: 9 additions & 0 deletions .storybook/theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { create } from '@storybook/theming'

export const BaseTheme = create({
base: 'light',
brandTitle: 'Plastic Labs',
brandUrl: 'https://plasticlabs.ai/',
brandImage: 'http://localhost:6006/storybook-brand-asset.svg',
brandTarget: '_blank',
})
Binary file added app/apple-icon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/apple-icon2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/apple-icon3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/favicon.ico
Binary file not shown.
40 changes: 0 additions & 40 deletions app/globals.css

This file was deleted.

1 change: 1 addition & 0 deletions app/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icon1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icon2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icon3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icon4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/icon5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4a5ead6

Please sign in to comment.