Skip to content

Commit

Permalink
Merge pull request #77 from calblueprint/buyankhuu/mergeMonique
Browse files Browse the repository at this point in the history
done
  • Loading branch information
BuyankhuuTsCAl committed Apr 9, 2024
2 parents 5b263a9 + 9ae5b59 commit 19d0c3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 5 additions & 2 deletions src/app/storefront/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React, { useEffect, useState } from 'react';
import Storefront from './storefrontItems';

import Footer from '../../components/FooterFolder/Footer';
import { ShopAllText, Fullscreen } from './styles';
import { ShopAllText, Fullscreen, StorefrontBox } from './styles';
import { fetchUserProducts } from '../../api/supabase/queries/product_queries';
import { Product } from '../../schema/schema';

Expand Down Expand Up @@ -40,7 +40,10 @@ export default function App() {
/>

<ShopAllText>Shop {CategoryWord}</ShopAllText>
<Storefront products={FilteredProducts} />
<StorefrontBox>
<Storefront products={FilteredProducts} />
</StorefrontBox>

<Footer />
</Fullscreen>
);
Expand Down
14 changes: 9 additions & 5 deletions src/app/storefront/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ export const ItemButtons = styled.button`
`;

export const StorefrontWrapper = styled.div`
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-evenly;
padding: 30px;
display: grid;
grid-template-columns: repeat(auto-fill, 295px);
grid-gap: 2%;
padding-top: 20px;
justify-content: center;
padding-bottom: 150px;
`;

export const StorefrontItem = styled.div`
Expand Down Expand Up @@ -247,3 +248,6 @@ export const Fullscreen = styled.div`
width: 100%;
height: 100%;
`;
export const StorefrontBox = styled.div`
margin: auto;
`;

0 comments on commit 19d0c3a

Please sign in to comment.