Skip to content

Commit

Permalink
updated year
Browse files Browse the repository at this point in the history
  • Loading branch information
munchie-babbit committed Dec 6, 2023
1 parent ff53736 commit dcb3b83
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 43 deletions.
47 changes: 8 additions & 39 deletions src/app/components/organisms/businessBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export default function BusinessBody({
<div className="flex flex-row gap-2">
<p>
Located in {business.location} in the area of{" "}
{business.store_category}. Started in 2021.
{business.store_category}.{" "}
{business.store_start_year
? "Started in " + business.store_start_year + "."
: null}
</p>
</div>

Expand Down Expand Up @@ -139,10 +142,10 @@ export default function BusinessBody({
{business.img_1 ? (
<Image
src={business.img_1}
alt="Business image"
alt=""
width={500}
height={200}
className="mt-4 w-full object-cover h-96 border-[1.5px] border-customDarkGreen rounded-2xl"
className="bg-customBlue mt-4 w-full object-cover h-96 border-[1.5px] border-customDarkGreen rounded-2xl"
/>
) : null}

Expand Down Expand Up @@ -173,7 +176,7 @@ export default function BusinessBody({
alt="Business image"
width={200}
height={200}
className="object-cover w-full h-96 border-[1.5px] border-customDarkGreen rounded-2xl"
className="bg-customBlue object-cover w-full h-96 border-[1.5px] border-customDarkGreen rounded-2xl"
/>
) : null}
{business.img_3 ? (
Expand All @@ -182,46 +185,12 @@ export default function BusinessBody({
alt="Business image"
width={200}
height={200}
className="object-cover w-full h-96 border-[1.5px] border-customDarkGreen rounded-2xl"
className="bg-customBlue object-cover w-full h-96 border-[1.5px] border-customDarkGreen rounded-2xl"
/>
) : null}
</div>
</div>
</div>

<div className="grid grid-cols-12 gap-4 pt-20">
<div className="col-start-2 col-span-10 text-center">
{hasProducts ? (
<div>
<h1 className="text-lg font-bold">Featured Products</h1>
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 sm:my-4 my-4">
{business?.product_1_img ? (
<ProductCard
image={business.product_1_img}
title={business.product_1_title}
price={business.product_1_price}
/>
) : null}
{business?.product_2_img ? (
<ProductCard
image={business.product_2_img}
title={business.product_2_title}
price={business.product_2_price}
/>
) : null}
{business?.product_3_img ? (
<ProductCard
image={business.product_3_img}
title={business.product_3_title}
price={business.product_3_price}
/>
) : null}
</div>
<ActionButton text="Visit Website" href={business.website} />
</div>
) : null}
</div>
</div>
</div>
) : (
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/organisms/homepageBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function getHomepageIllustration() {
project_id: process.env.PROJECT_ID,
private_key_id: process.env.PRIVATE_KEY_ID,
private_key: process.env.PRIVATE_KEY,
client_email: "munchie-babbit@kindkorner.iam.gserviceaccount.com",
client_email: process.env.CLIENT_EMAIL,
client_id: process.env.CLIENT_ID,
auth_uri: process.env.AUTH_URI,
token_uri: process.env.TOKEN_URI,
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/organisms/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function getBusinessCategories() {
project_id: process.env.PROJECT_ID,
private_key_id: process.env.PRIVATE_KEY_ID,
private_key: process.env.PRIVATE_KEY,
client_email: "munchie-babbit@kindkorner.iam.gserviceaccount.com",
client_email: process.env.CLIENT_EMAIL,
client_id: process.env.CLIENT_ID,
auth_uri: process.env.AUTH_URI,
token_uri: process.env.TOKEN_URI,
Expand Down Expand Up @@ -74,7 +74,7 @@ export async function getNeighbourhoods() {
project_id: process.env.PROJECT_ID,
private_key_id: process.env.PRIVATE_KEY_ID,
private_key: process.env.PRIVATE_KEY,
client_email: "munchie-babbit@kindkorner.iam.gserviceaccount.com",
client_email: process.env.CLIENT_EMAIL,
client_id: process.env.CLIENT_ID,
auth_uri: process.env.AUTH_URI,
token_uri: process.env.TOKEN_URI,
Expand Down
2 changes: 1 addition & 1 deletion src/app/directory/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export async function getAllBusinesses() {
project_id: process.env.PROJECT_ID,
private_key_id: process.env.PRIVATE_KEY_ID,
private_key: process.env.PRIVATE_KEY,
client_email: "munchie-babbit@kindkorner.iam.gserviceaccount.com",
client_email: process.env.CLIENT_EMAIL,
client_id: process.env.CLIENT_ID,
auth_uri: process.env.AUTH_URI,
token_uri: process.env.TOKEN_URI,
Expand Down

0 comments on commit dcb3b83

Please sign in to comment.