Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Add Menu - Product, Framework, Resources #162

Merged
merged 51 commits into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
d59bb2b
add hovering menus
softmarshmallow Sep 10, 2022
bd3e3bb
update styles & links
softmarshmallow Sep 10, 2022
9f92936
add frameworks menu
softmarshmallow Sep 10, 2022
6e4fc67
add module icons default variants
softmarshmallow Sep 10, 2022
edf5427
add preact icon
softmarshmallow Sep 10, 2022
e959184
update hovering effect for module item
softmarshmallow Sep 10, 2022
0229c7d
image optimization
softmarshmallow Sep 10, 2022
ebe34eb
Merge branch 'main' of https://github.com/bridgedxyz/bridged.xyz into…
softmarshmallow Sep 10, 2022
b27e3ec
add emotion & styled components logo set
softmarshmallow Sep 10, 2022
c5b7ccb
update linkts
softmarshmallow Sep 10, 2022
528e442
add redirect for `/jobs/*`
softmarshmallow Sep 10, 2022
c72c788
add placeholder pages
softmarshmallow Sep 10, 2022
20ad7e9
update modules links
softmarshmallow Sep 10, 2022
08d0423
add placeholder docs
softmarshmallow Sep 10, 2022
bdb27f8
add lit
softmarshmallow Sep 10, 2022
8ec8151
update docs sidebar
softmarshmallow Sep 10, 2022
db0ea0c
bump eslint
softmarshmallow Sep 10, 2022
e3f473a
add vscode page
softmarshmallow Sep 10, 2022
3004bd4
clean
softmarshmallow Sep 10, 2022
763de10
fix
softmarshmallow Sep 10, 2022
d6f5d09
update links
softmarshmallow Sep 12, 2022
a0305c5
add figlint page
softmarshmallow Sep 12, 2022
f5ae222
clean
softmarshmallow Sep 12, 2022
8759704
wip - theming
softmarshmallow Sep 12, 2022
8e00da6
update theme usage
softmarshmallow Sep 12, 2022
1282a6d
fix imports & config - bump to next12
softmarshmallow Sep 12, 2022
c76aa21
fix layouts
softmarshmallow Sep 12, 2022
80fae2b
Merge branch 'main' of https://github.com/bridgedxyz/bridged.xyz into…
softmarshmallow Sep 12, 2022
53c5b9e
fix
softmarshmallow Sep 12, 2022
dfb3b64
update global.css name
softmarshmallow Sep 12, 2022
464e5f8
add locale
softmarshmallow Sep 12, 2022
c755d19
fix
softmarshmallow Sep 12, 2022
e529aa2
add theme & complete vscode page
softmarshmallow Sep 13, 2022
1f2d7bc
add careers page
softmarshmallow Sep 13, 2022
413390e
add contact sales page
softmarshmallow Sep 13, 2022
21d714d
cleanup header map
softmarshmallow Sep 13, 2022
48269b1
rm
softmarshmallow Sep 13, 2022
1dc3ccf
rm
softmarshmallow Sep 13, 2022
35f4cb1
add vercel.json
softmarshmallow Sep 15, 2022
ace3bfe
update vercel.json
softmarshmallow Sep 15, 2022
8be3707
update vercel.json pages
softmarshmallow Sep 15, 2022
40674db
tf
softmarshmallow Sep 15, 2022
0dfce69
tf
softmarshmallow Sep 15, 2022
2737002
rm large videos, host on vimeo
softmarshmallow Sep 15, 2022
6647478
add `/join-us` redirection
softmarshmallow Sep 18, 2022
9e4d6f2
update main cta button
softmarshmallow Sep 18, 2022
8951ffe
fix mobile header bg on dark theme
softmarshmallow Sep 18, 2022
3a52b29
replace rebass with theme-ui
softmarshmallow Sep 22, 2022
843ae18
fix pricing card sizing
softmarshmallow Sep 22, 2022
c4f268b
update header style
softmarshmallow Sep 22, 2022
30bdeb4
remove obsolete links
softmarshmallow Sep 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 24 additions & 46 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,27 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: ["plugin:prettier/recommended"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
parser: "@typescript-eslint/parser",
extends: ["plugin:prettier/recommended"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
ecmaFeatures: {
jsx: true,
},
plugins: [
"prettier",
"react",
"@typescript-eslint",
"react-hooks",
"import-helpers",
],
rules: {
"react-hooks/rules-of-hooks": "error",
"import-helpers/order-imports": [
"error", {
// example configuration
newlinesBetween: "always",
groups: [
["module", "/^lodash-es/"],
[
"/^components/",
"/^pages/",
"/^public/",
"/^utils/",
"/^layouts/",
"/^common/",
"/^sections/",
],
["parent", "sibling", "index"],
],
alphabetize: {
order: "asc",
ignoreCase: true
},
},
],
},
plugins: [
"prettier",
"react",
"@typescript-eslint",
"react-hooks",
"import-helpers",
],
rules: {
"react-hooks/rules-of-hooks": "error",
"import-helpers/order-imports": "off",
},
settings: {
react: {
version: "detect",
},
settings: {
react: {
version: "detect",
},
},
};
},
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,4 @@ $RECYCLE.BIN/
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/node,react,macos,windows,visualstudiocode
.vercel
22 changes: 13 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@ Join slack via link on README, contact maintaners for rapid contribution. otherw
- 320 (iPhone SE)

### Interactive checkist

- css `cursor: pointer` for clickable elements
- hover state (color or scale or underline) for dynamic link elements

### Component checklist

- component on storyboard
- primative component as state indepandent (primative component shall not contain state for itself)
- mdx component compatibility (general components should have in-mdx-usage capabilities)

### Code quality checklist

- no style related constant in jsx (constant such like color and px shall not be inlined in jsx)
- comment design links to visual component files or provide README


## Techniques

**Animations / Motioons**
Expand All @@ -58,28 +60,30 @@ Join slack via link on README, contact maintaners for rapid contribution. otherw

**Reponsive Layout Development**

- [Rebass](https://rebassjs.org/)
- [theme-ui](https://theme-ui.com/)

**General UI Development**

- [Reflect React](https://reflect-ui.com)
- [Emotion/styled](https://emotion.sh/docs/styled)


## React coding conventions

**for root components**

- use function as component
- don't use const as component
- don't use React.FC as component
- don't export function as default on end of file explicitly.
``` tsx

```tsx
export default function GeneralComponent(props: {
title: string
desc: string
}){
title: string;
desc: string;
}) {
<div>
<h1>{props.title}</h1>
<p>{props.desc}</p>
</div>
</div>;
}
```
```
1 change: 1 addition & 0 deletions docs-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"postinstall": "yarn content:setup",
"docusaurus": "docusaurus",
"start": "docusaurus start --port 3001",
"dev": "content:watch & yarn start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
Expand Down
19 changes: 19 additions & 0 deletions docs-site/sidebar.with-react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = [
{
type: "category",
label: "React",
collapsed: true,
items: [
{
type: "doc",
id: "with-react/index",
label: "React",
},
{
type: "doc",
id: "with-nextjs/index",
label: "NextJS",
},
],
},
];
3 changes: 3 additions & 0 deletions docs-site/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const with_react = require("./sidebar.with-react");

const _flags_items = [
{
type: "category",
Expand Down Expand Up @@ -239,6 +241,7 @@ const sidebars = {
flagsSidebar: flags,
togetherSidebar: together,
apiSidebar: api,
withReactSidebar: with_react,
};

module.exports = sidebars;
1 change: 1 addition & 0 deletions docs/with-css/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Quickstart: CSS
Empty file added docs/with-emotion-js/index.md
Empty file.
Empty file added docs/with-expo/index.md
Empty file.
Empty file.
Empty file added docs/with-headless-ui/index.md
Empty file.
1 change: 1 addition & 0 deletions docs/with-html/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Quickstart: Html (Vanilla)
Empty file.
3 changes: 3 additions & 0 deletions docs/with-lit/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Quickstart: Lit

> Lit is a simple library for building fast, lightweight web components.
1 change: 1 addition & 0 deletions docs/with-mui/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Quickstart: Material UI for React (`@mui/material`)
1 change: 1 addition & 0 deletions docs/with-nextjs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Quick start: Next js
Empty file added docs/with-nuxtjs/index.md
Empty file.
Empty file added docs/with-preact/index.md
Empty file.
Empty file added docs/with-react-native/index.md
Empty file.
5 changes: 5 additions & 0 deletions docs/with-react/index.mdx
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
---
title: "Quickstart: React"
sidebar_position: 1
---

# Quickstart: React
1 change: 1 addition & 0 deletions docs/with-scss/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Quickstart: SCSS (Sass)
6 changes: 6 additions & 0 deletions docs/with-solid-js/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Quickstart: SolidJS"
sidebar_position: 1
---

# Quickstart: SolidJS
Empty file added docs/with-storybook/index.md
Empty file.
Empty file.
Empty file added docs/with-swiftui/index.md
Empty file.
1 change: 1 addition & 0 deletions docs/with-tailwindcss/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Quickstart: Tailwind css
Empty file added docs/with-vue/index.md
Empty file.
6 changes: 6 additions & 0 deletions docs/with-webcomponents/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Quickstart: Webcomponents"
sidebar_position: 1
---

# Quickstart: Webcomponents
4 changes: 2 additions & 2 deletions web/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from "react";
import { defaultTheme } from "utils/styled";
import theme from "theme";
import { ThemeProvider } from "emotion-theming";

export const decorators = [
Story => <ThemeProvider theme={defaultTheme}>{Story()}</ThemeProvider>,
Story => <ThemeProvider theme={theme}>{Story()}</ThemeProvider>,
];

export const parameters = {
Expand Down
36 changes: 19 additions & 17 deletions web/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
module.exports = {
presets: ["next/babel", "@emotion/babel-preset-css-prop"],
plugins: [
["emotion"],
[
"module-resolver", {
root: ["."],
alias: {
components: "./components",
utils: "./utils",
layouts: "./layouts",
pages: "./pages",
common: "./common",
public: "./public",
},
},
],
presets: ["next/babel", "@emotion/babel-preset-css-prop"],
plugins: [
["@emotion"],
[
"module-resolver",
{
root: ["."],
alias: {
components: "./components",
utils: "./utils",
layouts: "./layouts",
pages: "./pages",
common: "./common",
public: "./theme",
public: "./public",
},
},
],
};
],
};
3 changes: 1 addition & 2 deletions web/components/action-item/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React from "react";

import Icon from "components/icon";
import { media } from "utils/styled/media";
import { ThemeInterface } from "utils/styled/theme";

const Colors = {
light: {
Expand Down Expand Up @@ -67,7 +66,7 @@ const Text = styled(motion.span)<{ color: string }>`
display: flex;
align-items: center;

${props => media("0px", (props.theme as ThemeInterface).breakpoints[0])} {
${props => media("0px", props.theme.breakpoints[0])} {
font-size: 17px;
}
`;
Expand Down
3 changes: 1 addition & 2 deletions web/components/blank-area/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import styled from "@emotion/styled";
import React from "react";

import { media } from "utils/styled/media";
import { ThemeInterface } from "utils/styled/theme";

interface BlankAreaProps {
height: number[];
Expand All @@ -18,7 +17,7 @@ const Div = styled.div<BlankAreaProps>`
background-color: rgba(0, 0, 0, 0);
height: ${p => p.height[1]}px;

${props => media("0px", (props.theme as ThemeInterface).breakpoints[0])} {
${props => media("0px", props.theme.breakpoints[0])} {
height: ${p => p.height[0]}px;
}
`;
26 changes: 14 additions & 12 deletions web/components/cookie-accept/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import styled from "@emotion/styled";
import React from "react";
import Link from "next/link";
import React, { useEffect } from "react";
import { Flex, Heading } from "rebass";

import BlankArea from "components/blank-area";
import { Flex, Heading } from "theme-ui";
import SectionLayout from "layouts/section";
import { useWindowWidth } from "utils/hooks/use-window-width";
import { LandingpageUrls } from "utils/landingpage/constants";
import { defaultTheme } from "utils/styled";
import { breakpoints } from "theme/shared";

function replaceStylePxToNumber(stylePx: string) {
return parseInt(stylePx.replace("px", ""));
Expand All @@ -23,9 +21,15 @@ const CookieAccept: React.FC<CookieAcceptProps> = ({ accpetCookie }) => {
return (
<Positioner>
<SectionLayout variant="content-default" alignContent="center">
<Flex width="100%" justifyContent="space-between" alignItems="center">
<Flex flexDirection="column">
{width < replaceStylePxToNumber(defaultTheme.breakpoints[0]) ? (
<Flex
style={{
width: "100%",
justifyContent: "space-between",
alignItems: "center",
}}
>
<Flex style={{ flexDirection: "column" }}>
{width < replaceStylePxToNumber(breakpoints[0]) ? (
<Title>
We use{" "}
<Link href={LandingpageUrls.cookies_policy}>cookies</Link> for
Expand All @@ -34,7 +38,7 @@ const CookieAccept: React.FC<CookieAcceptProps> = ({ accpetCookie }) => {
) : (
<Title>We use cookies</Title>
)}
{width > replaceStylePxToNumber(defaultTheme.breakpoints[0]) && (
{width > replaceStylePxToNumber(breakpoints[0]) && (
<Desc>
Grida collects cookies for handling signin, analysing our
traffic and making website usage faster.
Expand All @@ -44,9 +48,7 @@ const CookieAccept: React.FC<CookieAcceptProps> = ({ accpetCookie }) => {
</Flex>

<Button className="cursor" onClick={() => accpetCookie()}>
{width < replaceStylePxToNumber(defaultTheme.breakpoints[0])
? "OK"
: "Accept"}
{width < replaceStylePxToNumber(breakpoints[0]) ? "OK" : "Accept"}
</Button>
</Flex>
</SectionLayout>
Expand Down
Loading