Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Monique Cheng committed Apr 3, 2024
1 parent 1e473b2 commit 200b252
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion 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,9 @@ export default function App() {
/>

<ShopAllText>Shop {CategoryWord}</ShopAllText>
<StorefrontBox>
<Storefront products={FilteredProducts} />
</StorefrontBox>
<Footer />
</Fullscreen>
);
Expand Down
15 changes: 10 additions & 5 deletions src/app/storefront/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,23 @@ 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`
width: calc(25% - 40px);
margin-bottom: 50px;
`;

export const StorefrontBox = styled.div`
margin: auto;
`;

export const ShopAllText = styled.h1`
padding-top: 80px;
padding-bottom: 38px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/BackButton/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const BackDiv = styled.button`
color: ${COLORS.black};
background-color: transparent;
border: transparent;
margin-left: 0px;
margin-left: 2%;
margin-top: 55px;
gap: 5px;
`;
Expand Down

0 comments on commit 200b252

Please sign in to comment.