-
Notifications
You must be signed in to change notification settings - Fork 9
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 #70 from PotLock/feat/project-page
Feat: Project Page
- Loading branch information
Showing
58 changed files
with
2,525 additions
and
108 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
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 |
---|---|---|
|
@@ -129,4 +129,10 @@ | |
100% { | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
.markdown-link { | ||
a { | ||
color: rgb(123, 123, 123); | ||
} | ||
} |
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,16 +1,19 @@ | ||
import { Models } from "@rematch/core"; | ||
|
||
import { auth } from "@/modules/auth/state"; | ||
import { core } from "@/modules/core/state"; | ||
import { navModel, profilesModel } from "@/modules/profile/models"; | ||
|
||
export interface RootModel extends Models<RootModel> { | ||
auth: typeof auth; | ||
profiles: typeof profilesModel; | ||
nav: typeof navModel; | ||
core: typeof core; | ||
} | ||
|
||
export const models: RootModel = { | ||
auth, | ||
profiles: profilesModel, | ||
nav: navModel, | ||
core, | ||
}; |
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,20 +1,33 @@ | ||
// import DonationsInfo from "@/modules/profile/components/DonationsInfo"; | ||
"use client"; | ||
|
||
import { useState } from "react"; | ||
|
||
import Info from "@/modules/profile/components/Info"; | ||
import ProfileBanner from "@/modules/profile/components/ProfileBanner"; | ||
import Tabs from "@/modules/profile/components/Tabs"; | ||
import tabRoutes from "@/modules/profile/tabRoutes"; | ||
import ProjectBanner from "@/modules/project/components/ProjectBanner"; | ||
|
||
export default async function Project({ | ||
params, | ||
}: { | ||
params: { userId: string; potId?: string }; | ||
}) { | ||
export default function User({ params }: { params: { userId: string } }) { | ||
const [selectedTab, setSelectedTab] = useState(tabRoutes[0]); | ||
|
||
return ( | ||
<main className="flex flex-col"> | ||
<ProjectBanner projectId={params.userId} /> | ||
<ProfileBanner isProject={true} accountId={params.userId} /> | ||
<Info accountId={params.userId} /> | ||
{/* <DonationsInfo accountId={params.userId} potId={params.potId} /> */} | ||
<Tabs | ||
navOptions={tabRoutes} | ||
selectedTab={selectedTab.id} | ||
onSelect={(tabId: string) => { | ||
setSelectedTab(tabRoutes.find((tabRoute) => tabRoute.id === tabId)!); | ||
}} | ||
/> | ||
|
||
{/* Tab Content */} | ||
<div className="flex w-full flex-row flex-wrap gap-2 px-[1rem] md:px-[4.5rem]"> | ||
<selectedTab.Component /> | ||
</div> | ||
</main> | ||
); | ||
} |
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
Oops, something went wrong.