Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] New site for the new architecture #58

Merged
merged 42 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
ae3d04e
Use aleph canary
ije Apr 9, 2022
32bab0b
Clean up
ije Apr 9, 2022
75b5c64
Use atomic css
ije Apr 9, 2022
a3a06a3
Upgrade aleph
ije Apr 9, 2022
b7326f8
Upgrade aleph
ije Apr 10, 2022
7e36692
Upgrade aleph to 0.0.75
ije Apr 17, 2022
44dc951
Add deploy action
ije Apr 17, 2022
b8e4e62
Add deploy platform
ije Apr 17, 2022
ff893fe
Fix deploy action
ije Apr 17, 2022
e492b93
Add deno lint action
ije Apr 17, 2022
297bb00
Fix types
ije Apr 17, 2022
27c1bd6
Rename
ije Apr 17, 2022
e92ea73
WIP
ije Apr 17, 2022
1dabbaa
WIP
ije Apr 17, 2022
350657f
Move docs dir
ije Apr 17, 2022
aa36a7b
Upgrade aleph
ije Apr 20, 2022
79dcd42
Format
ije Apr 20, 2022
d1d1749
Update github workflow for deploy deploy
ije Apr 20, 2022
8ccab18
Upgrade aleph
ije Apr 20, 2022
8f38939
Use react 18
ije Apr 23, 2022
38638a5
Use gfm
ije Apr 23, 2022
f5cb006
Use react 17
ije Apr 23, 2022
4e36a67
Clean up
ije Apr 23, 2022
a94c02e
Upgrade aleph and react
ije Apr 23, 2022
8b28cef
Upgrade aleph
ije Apr 24, 2022
0a30c0c
Upgrade alephjs
ije Apr 28, 2022
d758759
WIP
ije Apr 28, 2022
2f4a444
Screen
ije Apr 28, 2022
dcdc373
Upgrade aleph to 1.0.0-alpha.38
ije May 7, 2022
8eb9aa7
Update unocss config
ije May 7, 2022
6276af6
Remove unused css
ije May 7, 2022
34a154b
Upgrade aleph.js to 1.0.0-alpha.43
ije May 11, 2022
a92c55a
Hidden wip docs pages
ije May 11, 2022
9e85485
Upgrade aleph
ije Jul 8, 2022
055a217
Upgrade aleph
ije Sep 6, 2022
ad0c773
Fix docs style
ije Sep 6, 2022
3ad6c8f
wip
ije Sep 6, 2022
d9ae851
WIP
ije Sep 6, 2022
9e3e898
wip
ije Sep 7, 2022
6544069
Merge branch 'master' into next
ije Sep 7, 2022
9f68fe1
Use react mdx loader
ije Sep 20, 2022
9174423
wip
ije Sep 20, 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
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint
on: [push]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Install Deno
uses: denoland/setup-deno@v1

- name: Deno Lint
run: deno lint
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
.DS_Store
Thumbs.db
.aleph/
dist/
2 changes: 0 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"recommendations": [
"csstools.postcss",
"editorconfig.editorconfig",
"denoland.vscode-deno"
]
}
33 changes: 7 additions & 26 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
{
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"typescript.format.semicolons": "remove",
"typescript.preferences.quoteStyle": "single",
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.formatOnSave": false,
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
}
},
"[typescriptreact]": {
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
}
},
"deno.enable": true,
"deno.unstable": true,
"deno.config": "./tsconfig.json",
"deno.importMap": "./import_map.json"
}
"deno.lint": true,
"deno.config": "./deno.json",
"[typescript][typescriptreact]": {
"editor.defaultFormatter": "denoland.vscode-deno",
"editor.formatOnSave": true
}
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

23 changes: 0 additions & 23 deletions README.md

This file was deleted.

35 changes: 0 additions & 35 deletions aleph.config.ts

This file was deleted.

5 changes: 0 additions & 5 deletions api/hello.ts

This file was deleted.

15 changes: 0 additions & 15 deletions app.tsx

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion public/logo.svg → assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions public/main_title.svg → assets/main_title.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
91 changes: 48 additions & 43 deletions components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import React, { CSSProperties, PropsWithChildren, useMemo, useState } from 'react'
import React, {
CSSProperties,
PropsWithChildren,
useMemo,
useState,
} from "react";

export default function Button({
className,
Expand All @@ -13,68 +18,68 @@ export default function Button({
icon,
iconPosition,
onClick,
children
children,
}: PropsWithChildren<{
className?: string,
width?: number | string,
height?: number,
color?: string,
compact?: boolean,
strong?: boolean,
disabled?: boolean,
activated?: boolean,
round?: boolean,
icon?: React.ReactNode,
iconPosition?: { top?: number | string, left?: number | string },
onClick?(e: React.MouseEvent): void
className?: string;
width?: number | string;
height?: number;
color?: string;
compact?: boolean;
strong?: boolean;
disabled?: boolean;
activated?: boolean;
round?: boolean;
icon?: React.ReactNode;
iconPosition?: { top?: number | string; left?: number | string };
onClick?(e: React.MouseEvent): void;
}>) {
const [hover, setHover] = useState(false)
const [hover, setHover] = useState(false);
const style = useMemo(() => {
const css: CSSProperties = {
display: 'inline-flex',
alignItems: 'center',
justifyContent: 'center',
display: "inline-flex",
alignItems: "center",
justifyContent: "center",
height,
border: '1px solid #000',
borderRadius: round === false ? '5px' : height / 2 + 'px',
border: "1px solid #000",
borderRadius: round === false ? "5px" : height / 2 + "px",
lineHeight: 1,
fontSize: 16,
fontWeight: 500,
padding: '0 36px',
transition: 'all 0.21s ease-in-out',
cursor: 'pointer'
}
padding: "0 36px",
transition: "all 0.21s ease-in-out",
cursor: "pointer",
};
if (color) {
css.color = color
css.borderColor = color
css.color = color;
css.borderColor = color;
}
if (hover || activated) {
if (color === 'white') {
css.color = "black"
css.background = "white"
if (color === "white") {
css.color = "black";
css.background = "white";
} else {
css.color = "white"
css.background = "black"
css.color = "white";
css.background = "black";
}
}
if (compact) {
css.padding = '0 16px'
css.padding = "0 16px";
}
if (strong) {
css.borderWidth = '2px'
css.fontWeight = 600
css.borderWidth = "2px";
css.fontWeight = 600;
}
if (width) {
css.width = width
css.padding = 0
css.width = width;
css.padding = 0;
}
if (disabled) {
css.color = '#999'
css.borderColor = '#ccc'
css.pointerEvents = 'none'
css.color = "#999";
css.borderColor = "#ccc";
css.pointerEvents = "none";
}
return css
}, [height, color, hover, activated])
return css;
}, [height, color, hover, activated, strong]);

return (
<button
Expand All @@ -84,8 +89,8 @@ export default function Button({
onMouseEnter={() => setHover(true)}
onMouseLeave={() => setHover(false)}
>
{icon && (<span style={iconPosition} className="icon">{icon}</span>)}
{icon && <span style={iconPosition} className="icon">{icon}</span>}
{children}
</button>
)
);
}
46 changes: 0 additions & 46 deletions components/GreyTriangle.tsx

This file was deleted.

Loading