generated from shadcn-ui/next-template
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding max words length * Feature/config email testing on local environment (#138) * Remove (#92) Co-authored-by: Pjaijai <paul6a24@hotmail.com> * [#137] Config email testing on local environment * Fix .env variable name --------- Co-authored-by: Pjaijai <87293994+Pjaijai@users.noreply.github.com> Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Feature/cc sender when sending email (#140) * Add sender email to cc * Updating reminder text in contact dialog --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Feature/adding type from supabase (#124) * Adding supabase type * Adding workflow files * fix types --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Feature/Adding initial data (#125) * Adding initial data * Update * update st johns value * Update * Fix typo --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Feature/revamp card (#135) * Feature/update backend setup on developer md (#104) * Ignore local IDE config * Update backend setup guidelines on developer.md * Add supabase config guidelines * Fix md syntax * add CORS to edge func depending on the staging env * add reply-to header to both contact email (#109) * Feature/refactor search hook (#96) * Refactor search hook in referral page * Refactor referee search hook * Remove useless import * Refactor referee post * Refactor referrer post search hook * Remmove uesless import * Change to error toast (#106) Co-authored-by: Pjaijai <paul6a24@hotmail.com> --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * create new card component for referrer and referee; update card skeleton; add missing modules in tailwind * add referral post card; update referral post pages * update contact toUuid; minor ui fix * add items-center to info display * Show edit button on profile page if logged-in user is profile user * Fix build error * Fix typos * Import as module path * Module import * Using Link instead of onurlclick * Fix import * Remove id slug user page * Remove showEditButton props --------- Co-authored-by: Lulu <76647602+511234@users.noreply.github.com> Co-authored-by: Thomas Yau <yaucp@connect.hku.hk> Co-authored-by: Thomas Yau <github@yaucp.dev> Co-authored-by: Pjaijai <87293994+Pjaijai@users.noreply.github.com> Co-authored-by: Pjaijai <paul6a24@hotmail.com> Co-authored-by: Lulu Tung <lulutheflaneur@gmail.com> * Refactor/fix all formart problem (#142) * Fix doc * Fix format --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Hotfix/fix post duplication (#144) * Fix IUserResponse type * Fix api * Fix type * Fix api * House keep * Fetch 3 per page in search referral api * Fix search post api * House keep * fix type * fix format * Fix number of order per page --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Feature/adding tailwind plugin (#145) * Adding prettier-plugin-tailwindcss and prettier * Fixing formart --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Bugfix/Card UI (#160) * fix card ui bugs; modify the contact button of referral post card in mobile * chaneg relative paths to absolute * Bugfix/fix contact dialog text (#156) * Fix text * fix text --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Fix UI (#163) Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Add word break (#162) Co-authored-by: Pjaijai <paul6a24@hotmail.com> * Doc/adding local db dev guidelines (#146) * Updating docs for backend local dev * Fix typo * House keep * fix typo --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> * version bump to 1.4.0 (#167) Co-authored-by: Pjaijai <paul6a24@hotmail.com> --------- Co-authored-by: Pjaijai <paul6a24@hotmail.com> Co-authored-by: Lulu <76647602+511234@users.noreply.github.com> Co-authored-by: marukosy124 <54564324+marukosy124@users.noreply.github.com> Co-authored-by: Thomas Yau <yaucp@connect.hku.hk> Co-authored-by: Thomas Yau <github@yaucp.dev> Co-authored-by: Lulu Tung <lulutheflaneur@gmail.com>
- Loading branch information
1 parent
71bf253
commit 6d95ddc
Showing
82 changed files
with
1,719 additions
and
500 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# https://supabase.com/docs/guides/api/rest/generating-types | ||
|
||
name: Update production database types | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "*.sql" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: github.head_ref != 'supabot**' | ||
steps: | ||
- uses: lyqht/generate-supabase-db-types-github-action@main | ||
with: | ||
SUPABASE_REF_ID: ${{ secrets.PRODUCTION_PROJECT_ID }} | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }} | ||
OUTPUT_PATH: db.types.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# https://supabase.com/docs/guides/api/rest/generating-types | ||
|
||
name: Update staging database types | ||
on: | ||
push: | ||
branches: [development] | ||
paths: | ||
- "*.sql" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: github.head_ref != 'supabot**' | ||
steps: | ||
- uses: lyqht/generate-supabase-db-types-github-action@main | ||
with: | ||
SUPABASE_REF_ID: ${{ secrets.STAGING_PROJECT_ID }} | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
DB_PASSWORD: ${{ secrets.STAGING_DB_PASSWORD }} | ||
OUTPUT_PATH: db.types.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
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
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 |
---|---|---|
@@ -1,62 +1,70 @@ | ||
"use client" | ||
|
||
import Link from "next/link" | ||
import { BaseNavigationMenu } from "@/components/customized-ui/navigation-menu/base" | ||
import { buttonVariants } from "@/components/ui/button" | ||
import useUserStore from "@/hooks/state/user/store" | ||
import { Icons } from "@/components/icons" | ||
|
||
import { siteConfig } from "@/config/site" | ||
import { cn } from "@/lib/utils" | ||
import useGetUserCount from "@/hooks/api/user/get-user-count" | ||
import { siteConfig } from "@/config/site" | ||
import useUserStore from "@/hooks/state/user/store" | ||
import { buttonVariants } from "@/components/ui/button" | ||
import { BaseNavigationMenu } from "@/components/customized-ui/navigation-menu/base" | ||
import { Icons } from "@/components/icons" | ||
|
||
export default function IndexPage() { | ||
|
||
const isUserSignIn = useUserStore(state=> state.isSignIn) | ||
const {data}= useGetUserCount() | ||
const isUserSignIn = useUserStore((state) => state.isSignIn) | ||
const { data } = useGetUserCount() | ||
return ( | ||
<> | ||
<div> | ||
|
||
</div> | ||
<div className="flex md:hidden justify-center mt-4"> | ||
<div></div> | ||
<div className="mt-4 flex justify-center md:hidden"> | ||
<BaseNavigationMenu /> | ||
</div> | ||
<section className="container grid items-center gap-6 pb-8 pt-6 md:py-10"> | ||
<div className="flex flex-col justify-center"> | ||
<h1 className="text-3xl md:text-4xl"> | ||
海外港人搵工搵Referral。 | ||
</h1> | ||
<h1 className="text-3xl md:text-4xl">海外港人搵工搵Referral。</h1> | ||
<p className="max-w-[700px] text-lg text-muted-foreground"> | ||
希望呢個平台幫到大家!祝大家一切順利! | ||
</p> | ||
</div> | ||
<div className={`${isUserSignIn ? 'flex gap-4' : 'flex flex-wrap gap-4'}`}> | ||
<div className={"flex flex-wrap gap-4"}> | ||
<Link | ||
href={siteConfig.page.about.href} | ||
className={buttonVariants({ variant: isUserSignIn ? 'default' :'outline' })} | ||
className={buttonVariants({ | ||
variant: isUserSignIn ? "default" : "outline", | ||
})} | ||
> | ||
了解更多 | ||
</Link> | ||
|
||
<Link | ||
href={siteConfig.links.instagram} | ||
className={cn(buttonVariants({ variant: isUserSignIn ? 'default' :'outline' }), 'gap-2')} | ||
|
||
className={cn( | ||
buttonVariants({ variant: isUserSignIn ? "default" : "outline" }), | ||
"gap-2" | ||
)} | ||
> | ||
<Icons.instagram/> | ||
<Icons.instagram /> | ||
</Link> | ||
{ | ||
!isUserSignIn && <Link href={siteConfig.page.auth.href} className={buttonVariants({variant:'default'})}> | ||
登入/註冊 | ||
</Link> | ||
} | ||
<h2 className="text-end text-sm mt-4 border-b-2 border-green-700 dark:border-yellow-300"><span className="text-green-700 | ||
] dark:text-yellow-300 font-bold">{data || '0'}</span>個會員</h2> | ||
{!isUserSignIn && ( | ||
<Link | ||
href={siteConfig.page.auth.href} | ||
className={buttonVariants({ variant: "default" })} | ||
> | ||
登入/註冊 | ||
</Link> | ||
)} | ||
<h2 className="mt-4 border-b-2 border-green-700 text-end text-sm dark:border-yellow-300"> | ||
<span | ||
className="] | ||
font-bold text-green-700 dark:text-yellow-300" | ||
> | ||
{data || "0"} | ||
</span> | ||
個會員 | ||
</h2> | ||
</div> | ||
|
||
</section> | ||
|
||
</> | ||
) | ||
} |
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
Oops, something went wrong.