Skip to content

Commit

Permalink
feat: add banners to all the pages
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyrusso committed Sep 22, 2023
1 parent d643ffb commit 7312ed9
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 12 deletions.
Binary file added public/img/directory_banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/tech_stack_banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/directory/components/TeamTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const currentUserId = "1";

function TeamTable() {
return (
<div className="overflow-x-auto">
<div className="w-full">
<table
className={`table px-6 pb-10 border-separate border-none bg-primary-content pt-7 ${styles["table"]}`}
>
Expand Down
13 changes: 12 additions & 1 deletion src/app/directory/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import { TeamTable } from ".";
import { Banner } from "@/components";

function DirectoryPage() {
return <TeamTable />;
return (
<>
<Banner
image="/img/directory_banner.png"
alt="directory_banner"
title="Directory"
description="Behold, your mighty band of teammates! If you want them to plan with precision and prowess, make sure your deets are up to date, or else prepare for some serious spreadsheet confusion!"
/>
<TeamTable />;
</>
);
}

export default DirectoryPage;
2 changes: 1 addition & 1 deletion src/app/ideation/components/CreateIdeationContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from "@/components";

function CreateIdeationContainer() {
return (
<div className="card w-[1280px] h-[190px] bg-base-100 text-neutral-content flex flex-row items-center px-10">
<div className="card w-full h-[190px] bg-base-100 text-neutral-content flex flex-row items-center px-10">
<VoteDescriptionCard />
<section className="card-body gap-y-7 px-20">
<h2 className="text-xl font-semibold text-neutral-focus">
Expand Down
2 changes: 1 addition & 1 deletion src/app/ideation/components/IdeationContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function IdeationContainer({
contributed_by,
}: Ideation) {
return (
<div className="card w-[1280px] h-[457px] bg-primary-content text-neutral-content flex flex-row items-start p-10 gap-x-20">
<div className="card w-full h-[457px] bg-primary-content text-neutral-content flex flex-row items-start p-10 gap-x-20">
<VoteCard users={users} voted={voted} />
<section className="card-body gap-y-7 p-0 w-[1000px] h-[377px] overflow-y-auto pr-5">
<h2 className="text-xl font-semibold text-neutral-focus">{title}</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function RootLayout({
<StoreProvider>
<div className="flex flex-1 overflow-hidden">
<Sidebar />
<main className="flex flex-col flex-1 overflow-y-auto items-center gap-y-9 p-10">
<main className="flex flex-col flex-1 overflow-y-auto items-center gap-y-9 p-10 w-full">
{children}
</main>
</div>
Expand Down
3 changes: 0 additions & 3 deletions src/app/tech-stack/components/TechStackContainer.module.css

This file was deleted.

3 changes: 1 addition & 2 deletions src/app/tech-stack/components/TechStackContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import styles from "./TechStackContainer.module.css";
import { TechStackCard, techStack } from ".";

export default function TechStackContainer() {
Expand All @@ -13,7 +12,7 @@ export default function TechStackContainer() {
}
return (
<div
className={`card bg-primary-content p-10 ${styles["tech-container-width"]}`}
className="card bg-primary-content p-10 w-full"
>
<ul className="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-y-20 justify-items-stretch">
{Object.keys(techStack).map((cardType, index) => (
Expand Down
13 changes: 12 additions & 1 deletion src/app/tech-stack/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import { TechStackContainer } from ".";
import { Banner } from "@/components";

export default function TeckStackPage() {
return <TechStackContainer />;
return (
<>
<Banner
image="/img/tech_stack_banner.png"
alt="teck_stack_banner"
title="Tech Stack"
description="Alright, let's get down to business. We need to figure out which tech stack we're going to use to power this bad boy. Are you a JavaScript junkie, a Python pro, a Java genius, or a Ruby rockstar? Let's vote"
/>
<TechStackContainer />;
</>
);
}
2 changes: 1 addition & 1 deletion src/components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface BannerProps {

function Banner({ image, alt, title, description }: BannerProps) {
return (
<div className="card w-[1280px] h-[320px] bg-accent-content flex flex-row px-20">
<div className="card w-full h-[320px] bg-accent-content flex flex-row px-20">
<Image src={image} alt={alt} width={454} height={300} priority={false} />
<div className="flex flex-col justify-center pl-24 gap-y-3.5">
<h3 className="text-3xl font-bold text-black">{title}</h3>
Expand Down

0 comments on commit 7312ed9

Please sign in to comment.