mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Update tooltip location
This commit is contained in:
@@ -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`}
|
||||
|
||||
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -46,9 +46,19 @@ 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>
|
||||
<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 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
|
||||
|
||||
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user