Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
hmcclew committed Nov 1, 2023
1 parent 2505247 commit 3abcaff
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion client/src/components/CollectionItemUpdated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function CollectionItem({ name }: CollectionItemProps) {
<div>
<div style={circleStyle}>
</div>
<h2 className="text-sm text-black text-center">{name}</h2>
<h2 className="text-sm text-black text-center" style={{marginBottom: "15px"}}>{name}</h2>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/GiftSortNavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const GiftSortNavbar = () => {
return (
<div className="bg-gray-100 p-2">
<div className="flex" style={{ maxWidth: "1440px" }}>
<div className="flex space-x-2">
<div className="flex space-x-2 " style={{ marginRight: "680px" }}>
<button
className={`${buttonStyle} ${
activeButton === "Shop" ? activeButtonStyle : ""
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';

const SearchBar = () => {
const [searchText, setSearchText] = useState('');
Expand Down
6 changes: 2 additions & 4 deletions client/src/components/UpdatedGiftItem.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import { Gift } from "../types.tsx";

type GiftItemProps = {
name: string;
price: number;
};

function UpdatedGiftItem({ name, price }: GiftItemProps) {
return (
<div className="relative flex flex-col items-center">
<div className="relative flex flex-col flex-start">
<div className="bg-gray-200 w-40 h-40 mx-auto mb-2 relative">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -24,7 +22,7 @@ function UpdatedGiftItem({ name, price }: GiftItemProps) {
/>
</svg>
</div>
<div className="text-left">
<div className="text-left" style={{marginLeft: "40px", marginBottom: "5px"}}>
<h2 className="text-sm text-black font-bold">{name}</h2>
<h2 className="text-xs text-black">${price}</h2>
</div>
Expand Down
8 changes: 2 additions & 6 deletions client/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,10 @@ const HomePage = () => {
))}
</div>
</div>
<div className="flex " style={{maxWidth: '1000px' }}>
<div className=" w-1000">
<GiftSortNavBar />
</div>


<div className="overflow-y-auto" style={{ maxHeight: '305px', maxWidth: '1000px' }}>
<div className="overflow-y-auto" style={{ maxHeight: '290px', maxWidth: '1000px' }}>
<div className="flex flex-wrap -mx-2">
{gifts.map((gift, index) => (
<div key={index} className="w-1/4 px-2">
Expand All @@ -66,8 +64,6 @@ const HomePage = () => {
))}
</div>
</div>


</div>
</div>
);
Expand Down

0 comments on commit 3abcaff

Please sign in to comment.