-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
506 additions
and
102 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,14 +1,12 @@ | ||
import Header from "~/components/header"; | ||
import HeaderLayout from "~/components/header-layout"; | ||
import SearchFilter from "~/components/search-filter"; | ||
|
||
export default async function Companies() { | ||
return ( | ||
<div className="flex h-full flex-col"> | ||
<Header /> | ||
|
||
<div className="mx-12 mt-16 flex flex-col"> | ||
<HeaderLayout> | ||
<SearchFilter /> | ||
</div> | ||
</HeaderLayout> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
import Header from "~/components/header"; | ||
import HeaderLayout from "~/components/header-layout"; | ||
import SearchFilter from "~/components/search-filter"; | ||
|
||
export default async function Home() { | ||
return ( | ||
<div className="flex h-[85vh] flex-col"> | ||
<Header /> | ||
<div className="flex h-full flex-col items-center justify-center"> | ||
<p className="mb-8 text-2xl font-semibold"> | ||
Search your dream co-op role! | ||
</p> | ||
<SearchFilter /> | ||
</div> | ||
<HeaderLayout> | ||
<div className="flex h-full flex-col items-center justify-center"> | ||
<p className="mb-8 text-2xl font-semibold"> | ||
Search your dream co-op role! | ||
</p> | ||
<SearchFilter /> | ||
</div> | ||
</HeaderLayout> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import HeaderLayout from "~/components/header-layout"; | ||
import { RoleReviewCard } from "~/components/role-review-card"; | ||
import SearchFilter from "~/components/search-filter"; | ||
import { api } from "~/trpc/server"; | ||
import { unstable_noStore as noStore } from "next/cache"; | ||
|
||
export default async function Roles() { | ||
/** | ||
* FIXME: This is a temporary fix, figure out how to get build command working without noStore(); | ||
* @returns A promise containing the roles from the database | ||
*/ | ||
async function getRoles() { | ||
noStore(); | ||
const roles = await api.role.list.query(); | ||
return roles; | ||
} | ||
|
||
const roles = await getRoles(); | ||
|
||
return ( | ||
<HeaderLayout> | ||
<SearchFilter /> | ||
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3"> | ||
{roles.map((role) => { | ||
return <RoleReviewCard key={role.id} roleObj={role} />; | ||
})} | ||
</div> | ||
</HeaderLayout> | ||
); | ||
} |
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,18 @@ | ||
import { ReactNode } from "react"; | ||
import Header from "~/components/header"; | ||
|
||
/** | ||
* This should be used when placing content under the header, standardizes how children are placed under a header. | ||
* @param param0 Children to pass into the layout | ||
* @returns A layout component that standardizes the distance from the header | ||
*/ | ||
export default function HeaderLayout({ children }: { children: ReactNode }) { | ||
return ( | ||
<div className="flex min-h-screen flex-col"> | ||
<Header /> | ||
<article className="mt-16 flex flex-col items-center justify-center"> | ||
{children} | ||
</article> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.