generated from shadcn-ui/next-template
-
-
Notifications
You must be signed in to change notification settings - Fork 12
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 <[email protected]> * [#137] Config email testing on local environment * Fix .env variable name --------- Co-authored-by: Pjaijai <[email protected]> Co-authored-by: Pjaijai <[email protected]> * Feature/cc sender when sending email (#140) * Add sender email to cc * Updating reminder text in contact dialog --------- Co-authored-by: Pjaijai <[email protected]> * Feature/adding type from supabase (#124) * Adding supabase type * Adding workflow files * fix types --------- Co-authored-by: Pjaijai <[email protected]> * Feature/Adding initial data (#125) * Adding initial data * Update * update st johns value * Update * Fix typo --------- Co-authored-by: Pjaijai <[email protected]> * 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 <[email protected]> --------- Co-authored-by: Pjaijai <[email protected]> * 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 <[email protected]> Co-authored-by: Thomas Yau <[email protected]> Co-authored-by: Thomas Yau <[email protected]> Co-authored-by: Pjaijai <[email protected]> Co-authored-by: Pjaijai <[email protected]> Co-authored-by: Lulu Tung <[email protected]> * Refactor/fix all formart problem (#142) * Fix doc * Fix format --------- Co-authored-by: Pjaijai <[email protected]> * 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 <[email protected]> * Feature/adding tailwind plugin (#145) * Adding prettier-plugin-tailwindcss and prettier * Fixing formart --------- Co-authored-by: Pjaijai <[email protected]> * 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 <[email protected]> * Fix UI (#163) Co-authored-by: Pjaijai <[email protected]> * Add word break (#162) Co-authored-by: Pjaijai <[email protected]> * Doc/adding local db dev guidelines (#146) * Updating docs for backend local dev * Fix typo * House keep * fix typo --------- Co-authored-by: Pjaijai <[email protected]> * version bump to 1.4.0 (#167) Co-authored-by: Pjaijai <[email protected]> --------- Co-authored-by: Pjaijai <[email protected]> Co-authored-by: Lulu <[email protected]> Co-authored-by: marukosy124 <[email protected]> Co-authored-by: Thomas Yau <[email protected]> Co-authored-by: Thomas Yau <[email protected]> Co-authored-by: Lulu Tung <[email protected]>
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,26 @@ | ||
"use client" | ||
|
||
import React from "react" | ||
|
||
import { Separator } from "@/components/ui/separator" | ||
|
||
const AboutPage = () => { | ||
return ( | ||
<div className="container mt-12 p-0"> | ||
<section> | ||
<h2 className="text-center text-4xl sm:text-6xl font-bold">理念</h2> | ||
<h3 className="mt-12 text-base container"> | ||
<h2 className="text-center text-4xl font-bold sm:text-6xl">理念</h2> | ||
<h3 className="container mt-12 text-base"> | ||
海外搵工好多時都需要人脈,有人推薦先有面試,而外地愈嚟愈多港人,但缺乏相關文化同平台。呢個平台喺俾大家搵翻同聲同氣嘅,無論你係藍領白領,都希望大家互相幫忙。 | ||
</h3> | ||
</section> | ||
<Separator className="mt-12" /> | ||
<section className="container grid items-center gap-6 pb-8 pt-6 md:py-10"> | ||
<h2 className="text-center text-4xl sm:text-6xl font-bold"> | ||
<h2 className="text-center text-4xl font-bold sm:text-6xl"> | ||
如何運作? | ||
</h2> | ||
<div className="flex flex-col md:flex-row justify-around w-full"> | ||
<div className="flex flex-col text-center font-medium text-lg gap-4"> | ||
<h3 className="text-xl md:text-3xl font-semibold"> | ||
<div className="flex w-full flex-col justify-around md:flex-row"> | ||
<div className="flex flex-col gap-4 text-center text-lg font-medium"> | ||
<h3 className="text-xl font-semibold md:text-3xl"> | ||
1.加入人脈網絡 | ||
</h3> | ||
<h6>去個人檔案剔翻成為推薦人/受薦人。</h6> | ||
|
@@ -28,9 +29,9 @@ const AboutPage = () => { | |
<h6>你哋私底下聯絡,睇吓有冇得搞。</h6> | ||
<h6>祝一切順利!!</h6> | ||
</div> | ||
<Separator className="block md:hidden mt-12" /> | ||
<div className="flex flex-col text-center font-medium text-lg gap-4 mt-12 md:mt-0"> | ||
<h3 className="text-xl md:text-3xl font-semibold">2.貼街招</h3> | ||
<Separator className="mt-12 block md:hidden" /> | ||
<div className="mt-12 flex flex-col gap-4 text-center text-lg font-medium md:mt-0"> | ||
<h3 className="text-xl font-semibold md:text-3xl">2.貼街招</h3> | ||
<h6>工作招聘網站見到合適工作/自己公司請人,想推薦香港人入。</h6> | ||
<h6>將相關連結放上嚟。</h6> | ||
<h6>睇吓有冇有緣人,如果有佢可以立即聯絡。</h6> | ||
|
@@ -40,11 +41,11 @@ const AboutPage = () => { | |
</div> | ||
</div> | ||
</section> | ||
<h2 className="text-center text-sm font-bold mt-8"> | ||
<h2 className="mt-8 text-center text-sm font-bold"> | ||
過程唔會收錢,希望呢個平台幫到大家! | ||
</h2> | ||
<h2 className="text-center text-sm font-bold mt-8"> | ||
Btw 聯絡me : [email protected] | ||
<h2 className="mt-8 text-center text-sm font-bold"> | ||
Btw 聯絡me : [email protected] | ||
</h2> | ||
</div> | ||
) | ||
|
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.