From 7655e38cd0dccfae63adbba8b29341eda839f3af Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Fri, 27 Dec 2024 23:48:22 +0000 Subject: [PATCH] feat: add website for the package (#144) * feat: add website for the package - Integrate the official website for the package - Integrate the deployment with Vercel * fix: resolve error to deploy next.js application on Vercel --- .gitignore | 3 ++- app/package.json | 14 +++++----- app/pnpm-lock.yaml | 44 +++++++++++++++++++++++++++++++ app/public/arrow.svg | 1 + app/src/app/layout.tsx | 10 ++++++- app/src/app/page.tsx | 16 ++++++++++- app/src/lib/@types/props.ts | 8 ++++++ app/src/lib/utils.ts | 37 ++++++++++++++++++++++++++ app/src/ui/footer.tsx | 29 ++++++++++++++++++++ app/src/ui/globals.css | 26 ++++++++++++++++++ app/src/ui/header.tsx | 14 ++++++++++ app/src/ui/index/approach.tsx | 35 ++++++++++++++++++++++++ app/src/ui/index/hero.tsx | 28 ++++++++++++++++++++ app/src/ui/index/our-approach.tsx | 37 ++++++++++++++++++++++++++ app/src/ui/index/power.tsx | 17 ++++++++++++ app/src/ui/index/untyped.tsx | 12 +++++++++ app/tailwind.config.ts | 25 +++++++++++++++--- app/tsconfig.json | 3 ++- 18 files changed, 346 insertions(+), 13 deletions(-) create mode 100644 app/public/arrow.svg create mode 100644 app/src/lib/utils.ts create mode 100644 app/src/ui/footer.tsx create mode 100644 app/src/ui/header.tsx create mode 100644 app/src/ui/index/approach.tsx create mode 100644 app/src/ui/index/hero.tsx create mode 100644 app/src/ui/index/our-approach.tsx create mode 100644 app/src/ui/index/power.tsx create mode 100644 app/src/ui/index/untyped.tsx diff --git a/.gitignore b/.gitignore index aecae50..3ea1c89 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ yarn-debug.log* yarn-error.log* # vitest -coverage \ No newline at end of file +coverage +.vercel diff --git a/app/package.json b/app/package.json index a5a27d0..1683df1 100644 --- a/app/package.json +++ b/app/package.json @@ -9,19 +9,21 @@ "lint": "next lint" }, "dependencies": { + "@halvaradop/tailwindcss-utilities": "^0.2.3", + "@halvaradop/ui-button": "0.3.2-beta.0", + "next": "15.1.2", "react": "^19.0.0", - "react-dom": "^19.0.0", - "next": "15.1.2" + "react-dom": "^19.0.0" }, "devDependencies": { - "typescript": "^5", + "@eslint/eslintrc": "^3", "@types/node": "^20", "@types/react": "^19", "@types/react-dom": "^19", - "postcss": "^8", - "tailwindcss": "^3.4.1", "eslint": "^9", "eslint-config-next": "15.1.2", - "@eslint/eslintrc": "^3" + "postcss": "^8", + "tailwindcss": "^3.4.1", + "typescript": "^5" } } diff --git a/app/pnpm-lock.yaml b/app/pnpm-lock.yaml index 2e955cd..ee04fe1 100644 --- a/app/pnpm-lock.yaml +++ b/app/pnpm-lock.yaml @@ -7,6 +7,12 @@ settings: importers: .: dependencies: + "@halvaradop/tailwindcss-utilities": + specifier: ^0.2.3 + version: 0.2.3 + "@halvaradop/ui-button": + specifier: 0.3.2-beta.0 + version: 0.3.2-beta.0 next: specifier: 15.1.2 version: 15.1.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -87,6 +93,15 @@ packages: resolution: { integrity: sha512-zSkKow6H5Kdm0ZUQUB2kV5JIXqoG0+uH5YADhaEHswm664N9Db8dXSi0nMJpacpMf+MyyglF1vnZohpEg5yUtg== } engines: { node: ^18.18.0 || ^20.9.0 || >=21.1.0 } + "@halvaradop/tailwindcss-utilities@0.2.3": + resolution: { integrity: sha512-z8e3hdNLpgV7Pv46VL0zboLAhxC63xUt/8iYqiYO3TJxBlcWQZkAuyN7LZVH1x/FfqVCxo0YgMLYZ3HlRQ0IHw== } + + "@halvaradop/ui-button@0.3.2-beta.0": + resolution: { integrity: sha512-qNLD3fNSd2sj6xNHFrtFCPZLq6E+iMA7HdntI7zqQAmwRH0t9/N+G4SH31ckghFA+OeZBoNDe90JNDe9Edxq6Q== } + + "@halvaradop/ui-core@0.2.1-beta.0": + resolution: { integrity: sha512-FWbmE91CBWWEl1x73nSRckrEyIaXwx+lqJwCPCjRuRb9dtHEHjg/kB43ZNyGtsyqY7kZwSPRsx6oBj50kyL8Sg== } + "@humanfs/core@0.19.1": resolution: { integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA== } engines: { node: ">=18.18.0" } @@ -532,9 +547,16 @@ packages: resolution: { integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== } engines: { node: ">= 8.10.0" } + class-variance-authority@0.7.0: + resolution: { integrity: sha512-jFI8IQw4hczaL4ALINxqLEXQbWcNjoSkloa4IaufXCJr6QawJyw7tuRysRsrE8w2p/4gGaxKIt/hX3qz/IbD1A== } + client-only@0.0.1: resolution: { integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA== } + clsx@2.0.0: + resolution: { integrity: sha512-rQ1+kcj+ttHG0MKVGBUXwayCCF1oh39BF5COIpRzuCEv8Mwjv0XucrI2ExNTOn9IlLifGClWQcU9BrZORvtw6Q== } + engines: { node: ">=6" } + color-convert@2.0.1: resolution: { integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== } engines: { node: ">=7.0.0" } @@ -1534,6 +1556,9 @@ packages: resolution: { integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== } engines: { node: ">= 0.4" } + tailwind-merge@2.6.0: + resolution: { integrity: sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA== } + tailwindcss@3.4.17: resolution: { integrity: sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og== } engines: { node: ">=14.0.0" } @@ -1698,6 +1723,17 @@ snapshots: dependencies: levn: 0.4.1 + "@halvaradop/tailwindcss-utilities@0.2.3": {} + + "@halvaradop/ui-button@0.3.2-beta.0": + dependencies: + "@halvaradop/ui-core": 0.2.1-beta.0 + class-variance-authority: 0.7.0 + + "@halvaradop/ui-core@0.2.1-beta.0": + dependencies: + tailwind-merge: 2.6.0 + "@humanfs/core@0.19.1": {} "@humanfs/node@0.16.6": @@ -2135,8 +2171,14 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + class-variance-authority@0.7.0: + dependencies: + clsx: 2.0.0 + client-only@0.0.1: {} + clsx@2.0.0: {} + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -3342,6 +3384,8 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + tailwind-merge@2.6.0: {} + tailwindcss@3.4.17: dependencies: "@alloc/quick-lru": 5.2.0 diff --git a/app/public/arrow.svg b/app/public/arrow.svg new file mode 100644 index 0000000..4359241 --- /dev/null +++ b/app/public/arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/app/src/app/layout.tsx b/app/src/app/layout.tsx index ca9d9b2..367b2ac 100644 --- a/app/src/app/layout.tsx +++ b/app/src/app/layout.tsx @@ -1,6 +1,8 @@ import type { Metadata } from "next" import { Noto_Sans } from "next/font/google" import { LayoutProps } from "@/lib/@types/props" +import { Header } from "@/ui/header" +import { Footer } from "@/ui/footer" import "@/ui/globals.css" const notoSans = Noto_Sans({ @@ -17,7 +19,13 @@ export const metadata: Metadata = { export default function RootLayout({ children }: LayoutProps) { return ( - {children} + +
+ {children} +