Update tooltip location

This commit is contained in:
Aaron William Po
2023-04-30 23:17:56 -04:00
parent adf1b55d10
commit 1a806e7aff
4 changed files with 17 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ const BeerInfoHeader: FC<BeerInfoHeaderProps> = ({ beerPost }) => {
</Link>
{timeDistance && (
<span
className="tooltip tooltip-right"
className="tooltip tooltip-bottom"
data-tip={format(createdAt, 'MM/dd/yyyy')}
>
{`${timeDistance} ago`}

View File

@@ -47,7 +47,7 @@ const BreweryInfoHeader: FC<BreweryInfoHeaderProps> = ({ breweryPost }) => {
</Link>
{timeDistance && (
<span
className="tooltip tooltip-right"
className="tooltip tooltip-bottom"
data-tip={format(createdAt, 'MM/dd/yyyy')}
>{`${timeDistance} ago`}</span>
)}

View File

@@ -46,10 +46,20 @@ const BreweryPage: NextPage<BreweryPageProps> = () => {
<div className="flex items-center justify-center bg-base-100" ref={pageRef}>
<div className="my-10 flex w-10/12 flex-col space-y-4 lg:w-8/12 2xl:w-7/12">
<header className="my-10 flex justify-between lg:flex-row">
<div className="space-y-2">
<div>
<h1 className="text-4xl font-bold lg:text-6xl">The Biergarten App</h1>
<h2 className="text-2xl font-bold lg:text-4xl">Breweries</h2>
</div>
<div>
<Link
className="link-hover link text-xl font-bold lg:text-2xl"
href="/breweries/map"
>
View map
</Link>
</div>
</div>
{!!user && (
<div
className="tooltip tooltip-left h-full"

View File

@@ -28,14 +28,14 @@ import logger from '../../config/pino/logger';
logger.info('Users created successfully.');
const locations = await createNewLocations({
numberOfLocations: 1600,
numberOfLocations: 500,
joinData: { users },
});
logger.info('Locations created successfully.');
const [breweryPosts, beerTypes] = await Promise.all([
createNewBreweryPosts({ numberOfPosts: 1500, joinData: { users, locations } }),
createNewBreweryPosts({ numberOfPosts: 450, joinData: { users, locations } }),
createNewBeerTypes({ joinData: { users } }),
]);
logger.info('Brewery posts and beer types created successfully.');