-
Notifications
You must be signed in to change notification settings - Fork 2
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 #20 from hyperweb-io/feat/hyperweb-ui
Add hyperweb UI
- Loading branch information
Showing
27 changed files
with
12,758 additions
and
3,857 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
lerna-debug.log | ||
|
||
**/.idea | ||
|
||
**/.next | ||
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 |
---|---|---|
|
@@ -17,6 +17,10 @@ | |
"directory": "dist" | ||
}, | ||
"scripts": { | ||
"dev": "next dev ./ui", | ||
"start": "next start ./ui", | ||
"lint": "next lint ./ui", | ||
"build:ui": "next build ./ui", | ||
"clean": "rimraf dist/contracts/**", | ||
"build": "ts-node scripts/build.ts", | ||
"test": "jest --verbose --bail", | ||
|
@@ -28,19 +32,43 @@ | |
"starship": "starship --config configs/local.yaml", | ||
"starship:ci": "starship --config configs/ci.yaml" | ||
}, | ||
"resolutions": { | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"@types/react": "18.0.25", | ||
"@types/react-dom": "18.0.9" | ||
}, | ||
"dependencies": { | ||
"@chain-registry/types": "^0.50.18", | ||
"@interchain-kit/core": "0.0.1-beta.62", | ||
"@interchain-kit/keplr-extension": "0.0.1-beta.62", | ||
"@interchain-kit/leap-extension": "0.0.1-beta.62", | ||
"@interchain-kit/react": "0.0.1-beta.62", | ||
"@interchain-ui/react": "1.26.1", | ||
"@interchain-ui/react-no-ssr": "^0.1.6", | ||
"interchain-kit": "0.0.1-beta.62", | ||
"next": "^13", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react-icons": "4.6.0" | ||
}, | ||
"devDependencies": { | ||
"@hyperweb/build": "^0.0.2", | ||
"@starship-ci/cli": "^2.10.1", | ||
"@types/jest": "^29.5.11", | ||
"@types/node": "^22.7.4", | ||
"@types/react": "18.2.0", | ||
"@types/react-dom": "18.2.0", | ||
"@typescript-eslint/eslint-plugin": "^6.18.1", | ||
"@typescript-eslint/parser": "^6.18.1", | ||
"eslint": "^8.56.0", | ||
"eslint-config-next": "13.0.5", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"jest": "^29.6.2", | ||
"generate-lockfile": "0.0.12", | ||
"hyperwebjs": "0.0.4", | ||
"jest": "^29.6.2", | ||
"prettier": "^3.0.2", | ||
"rimraf": "4.4.1", | ||
"starshipjs": "^2.4.1", | ||
|
@@ -49,5 +77,6 @@ | |
"typescript": "^5.1.6" | ||
}, | ||
"keywords": [], | ||
"packageManager": "[email protected]", | ||
"gitHead": "d7557df95ccbe65022679a20d52e2f3bfc8af6f5" | ||
} |
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 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
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,160 @@ | ||
import { | ||
Box, | ||
Divider, | ||
Icon, | ||
Link, | ||
Stack, | ||
Text, | ||
useColorModeValue, | ||
} from "@interchain-ui/react"; | ||
import { dependencies, products, Project } from "@/config"; | ||
|
||
function Product({ name, desc, link }: Project) { | ||
return ( | ||
<Link href={link} target="_blank" underline={false}> | ||
<Stack | ||
space="$5" | ||
direction="vertical" | ||
attributes={{ | ||
height: "$full", | ||
minHeight: "$24", | ||
padding: "$9", | ||
justifyContent: "center", | ||
borderRadius: "$xl", | ||
color: { | ||
base: "$text", | ||
hover: useColorModeValue("$purple600", "$purple300"), | ||
}, | ||
boxShadow: { | ||
base: useColorModeValue( | ||
"0 2px 5px #ccc", | ||
"0 1px 3px #727272, 0 2px 12px -2px #2f2f2f", | ||
), | ||
hover: useColorModeValue( | ||
"0 2px 5px #bca5e9", | ||
"0 0 3px rgba(150, 75, 213, 0.8), 0 3px 8px -2px rgba(175, 89, 246, 0.9)", | ||
), | ||
}, | ||
}} | ||
> | ||
<Text as="h2" fontSize="$xl" color="inherit" attributes={{ margin: 0 }}> | ||
{name} → | ||
</Text> | ||
<Text | ||
color="inherit" | ||
as="p" | ||
fontSize="$md" | ||
fontWeight="$normal" | ||
attributes={{ marginY: "$1" }} | ||
> | ||
{desc} | ||
</Text> | ||
</Stack> | ||
</Link> | ||
); | ||
} | ||
|
||
function Dependency({ name, desc, link }: Project) { | ||
return ( | ||
<Link href={link} target="_blank" underline={false}> | ||
<Stack | ||
key={name} | ||
space="$6" | ||
direction="horizontal" | ||
attributes={{ | ||
height: "$full", | ||
padding: "$8", | ||
justifyContent: "center", | ||
borderWidth: "1px", | ||
borderStyle: "solid", | ||
borderColor: useColorModeValue("$blackAlpha200", "$whiteAlpha100"), | ||
borderRadius: "$xl", | ||
boxShadow: { | ||
base: "none", | ||
hover: useColorModeValue( | ||
"0 2px 5px #ccc", | ||
"0 1px 3px #727272, 0 2px 12px -2px #2f2f2f", | ||
), | ||
}, | ||
}} | ||
> | ||
<Box | ||
color={useColorModeValue("$primary500", "$primary200")} | ||
flex="0 0 auto" | ||
> | ||
<Icon name="link" size="$md" attributes={{ mt: "$2" }} /> | ||
</Box> | ||
|
||
<Stack space="$2" direction="vertical"> | ||
<Text | ||
as="p" | ||
fontSize="$lg" | ||
fontWeight="$semibold" | ||
attributes={{ marginY: "$1" }} | ||
> | ||
{name} | ||
</Text> | ||
<Text | ||
as="p" | ||
fontSize="$md" | ||
fontWeight="$light" | ||
attributes={{ | ||
color: useColorModeValue("$blackAlpha700", "$whiteAlpha700"), | ||
lineHeight: "$short", | ||
marginY: "$1", | ||
}} | ||
> | ||
{desc} | ||
</Text> | ||
</Stack> | ||
</Stack> | ||
</Link> | ||
); | ||
} | ||
|
||
export function Footer() { | ||
return ( | ||
<> | ||
<Box | ||
display="grid" | ||
gridTemplateColumns={{ | ||
tablet: "repeat(2, 1fr)", | ||
desktop: "repeat(3, 1fr)", | ||
}} | ||
mb="$16" | ||
gap="$12" | ||
> | ||
{products.map((product) => ( | ||
<Product key={product.name} {...product}></Product> | ||
))} | ||
</Box> | ||
<Box | ||
display="grid" | ||
gridTemplateColumns={{ tablet: "repeat(3, 1fr)" }} | ||
gap="$12" | ||
mb="$19" | ||
> | ||
{dependencies.map((dependency) => ( | ||
<Dependency key={dependency.name} {...dependency}></Dependency> | ||
))} | ||
</Box> | ||
<Box mb="$6"> | ||
<Divider /> | ||
</Box> | ||
<Stack | ||
direction="horizontal" | ||
space="$2" | ||
attributes={{ | ||
justifyContent: "center", | ||
opacity: 0.5, | ||
fontSize: "$sm", | ||
}} | ||
> | ||
<Text>Built with</Text> | ||
<Link href="https://cosmology.zone/" target="_blank"> | ||
Cosmology | ||
</Link> | ||
</Stack> | ||
</> | ||
); | ||
} |
Oops, something went wrong.