mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Merge pull request #68 from aaronpo97/prettier-formatting
Format: update prettier configuration to use tailwind plugin
This commit is contained in:
@@ -10,5 +10,5 @@
|
|||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"trailingComma": "all",
|
"trailingComma": "all",
|
||||||
"useTabs": false,
|
"useTabs": false,
|
||||||
"plugins": ["prettier-plugin-jsdoc"]
|
"plugins": ["prettier-plugin-jsdoc", "prettier-plugin-tailwindcss"]
|
||||||
}
|
}
|
||||||
|
|||||||
22
package-lock.json
generated
22
package-lock.json
generated
@@ -78,7 +78,7 @@
|
|||||||
"postcss": "^8.4.26",
|
"postcss": "^8.4.26",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.0",
|
||||||
"prettier-plugin-jsdoc": "^1.0.2",
|
"prettier-plugin-jsdoc": "^1.0.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.4.1",
|
"prettier-plugin-tailwindcss": "^0.5.7",
|
||||||
"prisma": "^5.6.0",
|
"prisma": "^5.6.0",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"tailwindcss-animate": "^1.0.6",
|
"tailwindcss-animate": "^1.0.6",
|
||||||
@@ -8426,12 +8426,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier-plugin-tailwindcss": {
|
"node_modules/prettier-plugin-tailwindcss": {
|
||||||
"version": "0.4.1",
|
"version": "0.5.7",
|
||||||
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz",
|
||||||
"integrity": "sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==",
|
"integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.17.0"
|
"node": ">=14.21.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@ianvs/prettier-plugin-sort-imports": "*",
|
"@ianvs/prettier-plugin-sort-imports": "*",
|
||||||
@@ -8439,17 +8439,15 @@
|
|||||||
"@shopify/prettier-plugin-liquid": "*",
|
"@shopify/prettier-plugin-liquid": "*",
|
||||||
"@shufo/prettier-plugin-blade": "*",
|
"@shufo/prettier-plugin-blade": "*",
|
||||||
"@trivago/prettier-plugin-sort-imports": "*",
|
"@trivago/prettier-plugin-sort-imports": "*",
|
||||||
"prettier": "^2.2 || ^3.0",
|
"prettier": "^3.0",
|
||||||
"prettier-plugin-astro": "*",
|
"prettier-plugin-astro": "*",
|
||||||
"prettier-plugin-css-order": "*",
|
"prettier-plugin-css-order": "*",
|
||||||
"prettier-plugin-import-sort": "*",
|
"prettier-plugin-import-sort": "*",
|
||||||
"prettier-plugin-jsdoc": "*",
|
"prettier-plugin-jsdoc": "*",
|
||||||
"prettier-plugin-marko": "*",
|
|
||||||
"prettier-plugin-organize-attributes": "*",
|
"prettier-plugin-organize-attributes": "*",
|
||||||
"prettier-plugin-organize-imports": "*",
|
"prettier-plugin-organize-imports": "*",
|
||||||
"prettier-plugin-style-order": "*",
|
"prettier-plugin-style-order": "*",
|
||||||
"prettier-plugin-svelte": "*",
|
"prettier-plugin-svelte": "*"
|
||||||
"prettier-plugin-twig-melody": "*"
|
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"@ianvs/prettier-plugin-sort-imports": {
|
"@ianvs/prettier-plugin-sort-imports": {
|
||||||
@@ -16725,9 +16723,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"prettier-plugin-tailwindcss": {
|
"prettier-plugin-tailwindcss": {
|
||||||
"version": "0.4.1",
|
"version": "0.5.7",
|
||||||
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.5.7.tgz",
|
||||||
"integrity": "sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==",
|
"integrity": "sha512-4v6uESAgwCni6YF6DwJlRaDjg9Z+al5zM4JfngcazMy4WEf/XkPS5TEQjbD+DZ5iNuG6RrKQLa/HuX2SYzC3kQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
"postcss": "^8.4.26",
|
"postcss": "^8.4.26",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.0.0",
|
||||||
"prettier-plugin-jsdoc": "^1.0.2",
|
"prettier-plugin-jsdoc": "^1.0.2",
|
||||||
"prettier-plugin-tailwindcss": "^0.4.1",
|
"prettier-plugin-tailwindcss": "^0.5.7",
|
||||||
"prisma": "^5.6.0",
|
"prisma": "^5.6.0",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"tailwindcss-animate": "^1.0.6",
|
"tailwindcss-animate": "^1.0.6",
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ const AccountInfo: FC<AccountInfoProps> = ({ pageState, dispatch }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
className="btn-primary btn my-5 w-full"
|
className="btn btn-primary my-5 w-full"
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={!pageState.accountInfoOpen || formState.isSubmitting}
|
disabled={!pageState.accountInfoOpen || formState.isSubmitting}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const BeerPostsByUser: FC = () => {
|
|||||||
<div className="tooltip tooltip-bottom" data-tip="Scroll back to top of page.">
|
<div className="tooltip tooltip-bottom" data-tip="Scroll back to top of page.">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-ghost btn-sm btn"
|
className="btn btn-ghost btn-sm"
|
||||||
aria-label="Scroll back to top of page."
|
aria-label="Scroll back to top of page."
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
pageRef.current?.scrollIntoView({
|
pageRef.current?.scrollIntoView({
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ const BreweryPostsByUser: FC = () => {
|
|||||||
<div className="tooltip tooltip-bottom" data-tip="Scroll back to top of page.">
|
<div className="tooltip tooltip-bottom" data-tip="Scroll back to top of page.">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-ghost btn-sm btn"
|
className="btn btn-ghost btn-sm"
|
||||||
aria-label="Scroll back to top of page."
|
aria-label="Scroll back to top of page."
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
pageRef.current?.scrollIntoView({
|
pageRef.current?.scrollIntoView({
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ const DeleteAccount: FunctionComponent<DeleteAccountProps> = ({
|
|||||||
<>
|
<>
|
||||||
<div className="mt-3">
|
<div className="mt-3">
|
||||||
<button
|
<button
|
||||||
className="btn-primary btn w-full"
|
className="btn btn-primary w-full"
|
||||||
onClick={() => deleteRef.current!.showModal()}
|
onClick={() => deleteRef.current!.showModal()}
|
||||||
>
|
>
|
||||||
Delete my account
|
Delete my account
|
||||||
@@ -71,13 +71,13 @@ const DeleteAccount: FunctionComponent<DeleteAccountProps> = ({
|
|||||||
<p className="">This action is permanent and cannot be reversed.</p>
|
<p className="">This action is permanent and cannot be reversed.</p>
|
||||||
<div className="modal-action flex-col space-x-0 space-y-3">
|
<div className="modal-action flex-col space-x-0 space-y-3">
|
||||||
<button
|
<button
|
||||||
className="btn-error btn-sm btn w-full"
|
className="btn btn-error btn-sm w-full"
|
||||||
onClick={onDeleteSubmit}
|
onClick={onDeleteSubmit}
|
||||||
>
|
>
|
||||||
Okay, delete my account
|
Okay, delete my account
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="btn-success btn-sm btn w-full"
|
className="btn btn-success btn-sm w-full"
|
||||||
onClick={() => deleteRef.current!.close()}
|
onClick={() => deleteRef.current!.close()}
|
||||||
>
|
>
|
||||||
Go back
|
Go back
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ const Security: FunctionComponent<SecurityProps> = ({ dispatch, pageState }) =>
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
className="btn-primary btn mt-5"
|
className="btn btn-primary mt-5"
|
||||||
disabled={!pageState.securityOpen || formState.isSubmitting}
|
disabled={!pageState.securityOpen || formState.isSubmitting}
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -16,11 +16,11 @@ const UserAvatar: FC<UserAvatarProps> = ({ user }) => {
|
|||||||
const { userAvatar } = user;
|
const { userAvatar } = user;
|
||||||
return !userAvatar ? (
|
return !userAvatar ? (
|
||||||
<div
|
<div
|
||||||
className="h-32 w-full bg-primary mask mask-circle flex items-center justify-center"
|
className="mask mask-circle flex h-32 w-full items-center justify-center bg-primary"
|
||||||
aria-label="Default user avatar"
|
aria-label="Default user avatar"
|
||||||
role="img"
|
role="img"
|
||||||
>
|
>
|
||||||
<span className="text-2xl font-bold text-base-content h-full">
|
<span className="h-full text-2xl font-bold text-base-content">
|
||||||
<FaUser className="h-full" />
|
<FaUser className="h-full" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -31,7 +31,7 @@ const UserAvatar: FC<UserAvatarProps> = ({ user }) => {
|
|||||||
width={1000}
|
width={1000}
|
||||||
height={1000}
|
height={1000}
|
||||||
crop="fill"
|
crop="fill"
|
||||||
className="h-full w-full object-cover mask mask-circle"
|
className="mask mask-circle h-full w-full object-cover"
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ const UserPosts: FC = () => {
|
|||||||
<div className="mt-4">
|
<div className="mt-4">
|
||||||
<div>
|
<div>
|
||||||
<Tab.Group>
|
<Tab.Group>
|
||||||
<Tab.List className="tabs tabs-boxed items-center justify-center rounded-2xl">
|
<Tab.List className="tabs-boxed tabs items-center justify-center rounded-2xl">
|
||||||
<Tab className="tab tab-xl w-1/2 uppercase ui-selected:tab-active">Beers</Tab>
|
<Tab className="tab-xl tab w-1/2 uppercase ui-selected:tab-active">Beers</Tab>
|
||||||
<Tab className="tab tab-xl w-1/2 uppercase ui-selected:tab-active">
|
<Tab className="tab-xl tab w-1/2 uppercase ui-selected:tab-active">
|
||||||
Breweries
|
Breweries
|
||||||
</Tab>
|
</Tab>
|
||||||
</Tab.List>
|
</Tab.List>
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ const CommentCardBody: FC<CommentCardProps> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={ref} className="flex">
|
<div ref={ref} className="flex">
|
||||||
<div className="w-[12%] py-4 justify-center">
|
<div className="w-[12%] justify-center py-4">
|
||||||
<div className="px-3 h-20">
|
<div className="h-20 px-3">
|
||||||
<UserAvatar user={comment.postedBy} />
|
<UserAvatar user={comment.postedBy} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="w-[88%] h-full">
|
<div className="h-full w-[88%]">
|
||||||
{!inEditMode ? (
|
{!inEditMode ? (
|
||||||
<CommentContentBody comment={comment} setInEditMode={setInEditMode} />
|
<CommentContentBody comment={comment} setInEditMode={setInEditMode} />
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ const CommentCardDropdown: FC<CommentCardDropdownProps> = ({
|
|||||||
const isCommentOwner = user?.id === comment.postedBy.id;
|
const isCommentOwner = user?.id === comment.postedBy.id;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="dropdown-end dropdown">
|
<div className="dropdown dropdown-end">
|
||||||
<label tabIndex={0} className="btn-ghost btn-sm btn m-1">
|
<label tabIndex={0} className="btn btn-ghost btn-sm m-1">
|
||||||
<FaEllipsisH />
|
<FaEllipsisH />
|
||||||
</label>
|
</label>
|
||||||
<ul
|
<ul
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
className="dropdown-content menu rounded-box w-52 bg-base-100 p-2 shadow"
|
className="menu dropdown-content rounded-box w-52 bg-base-100 p-2 shadow"
|
||||||
>
|
>
|
||||||
<li>
|
<li>
|
||||||
{isCommentOwner ? (
|
{isCommentOwner ? (
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const CommentContentBody: FC<CommentContentBodyProps> = ({ comment, setInEditMod
|
|||||||
const timeDistance = useTimeDistance(new Date(comment.createdAt));
|
const timeDistance = useTimeDistance(new Date(comment.createdAt));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pr-3 py-4 animate-in fade-in-10 space-y-1">
|
<div className="space-y-1 py-4 pr-3 animate-in fade-in-10">
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<div className="flex flex-row justify-between">
|
<div className="flex flex-row justify-between">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ const EditCommentBody: FC<EditCommentBodyProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pr-3 py-4 animate-in fade-in-10">
|
<div className="py-4 pr-3 animate-in fade-in-10">
|
||||||
<form onSubmit={handleSubmit(onEdit)} className="space-y-3">
|
<form onSubmit={handleSubmit(onEdit)} className="space-y-3">
|
||||||
<div>
|
<div>
|
||||||
<FormInfo>
|
<FormInfo>
|
||||||
@@ -124,7 +124,7 @@ const EditCommentBody: FC<EditCommentBodyProps> = ({
|
|||||||
<div className="join">
|
<div className="join">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-xs join-item btn lg:btn-sm"
|
className="btn join-item btn-xs lg:btn-sm"
|
||||||
disabled={isSubmitting || isDeleting}
|
disabled={isSubmitting || isDeleting}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setInEditMode(false);
|
setInEditMode(false);
|
||||||
@@ -135,13 +135,13 @@ const EditCommentBody: FC<EditCommentBodyProps> = ({
|
|||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={isSubmitting || isDeleting}
|
disabled={isSubmitting || isDeleting}
|
||||||
className="btn-xs join-item btn lg:btn-sm"
|
className="btn join-item btn-xs lg:btn-sm"
|
||||||
>
|
>
|
||||||
Save
|
Save
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-xs join-item btn lg:btn-sm"
|
className="btn join-item btn-xs lg:btn-sm"
|
||||||
onClick={onDelete}
|
onClick={onDelete}
|
||||||
disabled={isDeleting || formState.isSubmitting}
|
disabled={isDeleting || formState.isSubmitting}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ const BeerInfoHeader: FC<BeerInfoHeaderProps> = ({ beerPost }) => {
|
|||||||
|
|
||||||
{isPostOwner && (
|
{isPostOwner && (
|
||||||
<div className="tooltip tooltip-left" data-tip={`Edit '${beerPost.name}'`}>
|
<div className="tooltip tooltip-left" data-tip={`Edit '${beerPost.name}'`}>
|
||||||
<Link href={`/beers/${beerPost.id}/edit`} className="btn-ghost btn-xs btn">
|
<Link href={`/beers/${beerPost.id}/edit`} className="btn btn-ghost btn-xs">
|
||||||
<FaRegEdit className="text-xl" />
|
<FaRegEdit className="text-xl" />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ const BeerRecommendationsSection: FC<{
|
|||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<Link
|
<Link
|
||||||
className="link link-hover"
|
className="link-hover link"
|
||||||
href={`/beers/styles/${post.style.id}`}
|
href={`/beers/styles/${post.style.id}`}
|
||||||
>
|
>
|
||||||
<span className="font-medium">{post.style.name}</span>
|
<span className="font-medium">{post.style.name}</span>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ const BeerCard: FC<{ post: z.infer<typeof BeerPostQueryResult> }> = ({ post }) =
|
|||||||
<div className="flex items-end justify-between">
|
<div className="flex items-end justify-between">
|
||||||
<div>
|
<div>
|
||||||
<Link
|
<Link
|
||||||
className="text-md lg:text-xl hover:underline"
|
className="text-md hover:underline lg:text-xl"
|
||||||
href={`/beers/styles/${post.style.id}`}
|
href={`/beers/styles/${post.style.id}`}
|
||||||
>
|
>
|
||||||
{post.style.name}
|
{post.style.name}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const BeerStyleHeader: FC<BeerInfoHeaderProps> = ({ beerStyle }) => {
|
|||||||
|
|
||||||
{isPostOwner && (
|
{isPostOwner && (
|
||||||
<div className="tooltip tooltip-left" data-tip={`Edit '${beerStyle.name}'`}>
|
<div className="tooltip tooltip-left" data-tip={`Edit '${beerStyle.name}'`}>
|
||||||
<Link href={`/beers/${beerStyle.id}/edit`} className="btn-ghost btn-xs btn">
|
<Link href={`/beers/${beerStyle.id}/edit`} className="btn btn-ghost btn-xs">
|
||||||
<FaRegEdit className="text-xl" />
|
<FaRegEdit className="text-xl" />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
@@ -68,7 +68,7 @@ const BeerStyleHeader: FC<BeerInfoHeaderProps> = ({ beerStyle }) => {
|
|||||||
|
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between">
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<div className="flex w-25 space-x-3 flex-row">
|
<div className="w-25 flex flex-row space-x-3">
|
||||||
<div className="text-sm font-bold">
|
<div className="text-sm font-bold">
|
||||||
ABV Range:{' '}
|
ABV Range:{' '}
|
||||||
<span>
|
<span>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const BeerStyleCard: FC<{ beerStyle: z.infer<typeof BeerStyleQueryResult> }> = (
|
|||||||
{beerStyle.name}
|
{beerStyle.name}
|
||||||
</h3>
|
</h3>
|
||||||
</Link>
|
</Link>
|
||||||
<div className="flex w-25 space-x-3 flex-row">
|
<div className="w-25 flex flex-row space-x-3">
|
||||||
<div className="text-sm font-bold">
|
<div className="text-sm font-bold">
|
||||||
ABV Range:{' '}
|
ABV Range:{' '}
|
||||||
<span>
|
<span>
|
||||||
@@ -32,7 +32,7 @@ const BeerStyleCard: FC<{ beerStyle: z.infer<typeof BeerStyleQueryResult> }> = (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="h-20">
|
<div className="h-20">
|
||||||
<p className="overflow-ellipsis line-clamp-3">{beerStyle.description}</p>
|
<p className="line-clamp-3 overflow-ellipsis">{beerStyle.description}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="font-semibold">
|
<div className="font-semibold">
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ const BreweryBeersSection: FC<BreweryCommentsSectionProps> = ({ breweryPost }) =
|
|||||||
<div>
|
<div>
|
||||||
{user && (
|
{user && (
|
||||||
<Link
|
<Link
|
||||||
className={`btn-ghost btn-sm btn gap-2 rounded-2xl outline`}
|
className={`btn btn-ghost btn-sm gap-2 rounded-2xl outline`}
|
||||||
href={`/breweries/${breweryPost.id}/beers/create`}
|
href={`/breweries/${breweryPost.id}/beers/create`}
|
||||||
>
|
>
|
||||||
<FaPlus className="text-xl" />
|
<FaPlus className="text-xl" />
|
||||||
@@ -77,7 +77,7 @@ const BreweryBeersSection: FC<BreweryCommentsSectionProps> = ({ breweryPost }) =
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<Link
|
<Link
|
||||||
className="text-lg font-medium link link-hover"
|
className="link-hover link text-lg font-medium"
|
||||||
href={`/beers/styles/${beerPost.style.id}`}
|
href={`/beers/styles/${beerPost.style.id}`}
|
||||||
>
|
>
|
||||||
{beerPost.style.name}
|
{beerPost.style.name}
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ const BreweryInfoHeader: FC<BreweryInfoHeaderProps> = ({ breweryPost }) => {
|
|||||||
<div className="tooltip tooltip-left" data-tip={`Edit '${breweryPost.name}'`}>
|
<div className="tooltip tooltip-left" data-tip={`Edit '${breweryPost.name}'`}>
|
||||||
<Link
|
<Link
|
||||||
href={`/breweries/${breweryPost.id}/edit`}
|
href={`/breweries/${breweryPost.id}/edit`}
|
||||||
className="btn-ghost btn-xs btn"
|
className="btn btn-ghost btn-xs"
|
||||||
>
|
>
|
||||||
<FaRegEdit className="text-xl" />
|
<FaRegEdit className="text-xl" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ const BreweryCard: FC<{ brewery: z.infer<typeof BreweryPostQueryResult> }> = ({
|
|||||||
<div className="card-body justify-between">
|
<div className="card-body justify-between">
|
||||||
<div>
|
<div>
|
||||||
<Link href={`/breweries/${brewery.id}`} className="link-hover link">
|
<Link href={`/breweries/${brewery.id}`} className="link-hover link">
|
||||||
<h2 className="text-xl truncate font-bold lg:text-2xl">{brewery.name}</h2>
|
<h2 className="truncate text-xl font-bold lg:text-2xl">{brewery.name}</h2>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-end justify-between">
|
<div className="flex items-end justify-between">
|
||||||
<div className="w-9/12">
|
<div className="w-9/12">
|
||||||
<h3 className="text-lg font-semibold lg:text-xl truncate">
|
<h3 className="truncate text-lg font-semibold lg:text-xl">
|
||||||
{brewery.location.city},{' '}
|
{brewery.location.city},{' '}
|
||||||
{brewery.location.stateOrProvince || brewery.location.country}
|
{brewery.location.stateOrProvince || brewery.location.country}
|
||||||
</h3>
|
</h3>
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ const InfoSection: FC<{
|
|||||||
type="file"
|
type="file"
|
||||||
{...register('images')}
|
{...register('images')}
|
||||||
multiple
|
multiple
|
||||||
className="file-input-bordered file-input w-full"
|
className="file-input file-input-bordered w-full"
|
||||||
disabled={isSubmitting}
|
disabled={isSubmitting}
|
||||||
/>
|
/>
|
||||||
</FormSegment>
|
</FormSegment>
|
||||||
@@ -141,7 +141,7 @@ const LocationSection: FC<{
|
|||||||
id="address"
|
id="address"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="1234 Main St"
|
placeholder="1234 Main St"
|
||||||
className={`input-bordered input w-full appearance-none rounded-lg transition ease-in-out ${
|
className={`input input-bordered w-full appearance-none rounded-lg transition ease-in-out ${
|
||||||
errors.address?.message ? 'input-error' : ''
|
errors.address?.message ? 'input-error' : ''
|
||||||
}`}
|
}`}
|
||||||
{...register('address')}
|
{...register('address')}
|
||||||
@@ -246,7 +246,7 @@ const CreateBreweryPostForm: FC = () => {
|
|||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
>
|
>
|
||||||
<Tab.Group as={Fragment}>
|
<Tab.Group as={Fragment}>
|
||||||
<Tab.List className="tabs tabs-boxed items-center justify-center rounded-2xl">
|
<Tab.List className="tabs-boxed tabs items-center justify-center rounded-2xl">
|
||||||
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
||||||
Information
|
Information
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ const CreateBeerPostForm: FunctionComponent<BeerFormProps> = ({
|
|||||||
type="file"
|
type="file"
|
||||||
{...register('images')}
|
{...register('images')}
|
||||||
multiple
|
multiple
|
||||||
className="file-input-bordered file-input w-full"
|
className="file-input file-input-bordered w-full"
|
||||||
disabled={isSubmitting}
|
disabled={isSubmitting}
|
||||||
/>
|
/>
|
||||||
</FormSegment>
|
</FormSegment>
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ const EditBeerPostForm: FC<EditBeerPostFormProps> = ({ previousValues }) => {
|
|||||||
{isSubmitting ? 'Submitting...' : 'Submit'}
|
{isSubmitting ? 'Submitting...' : 'Submit'}
|
||||||
</Button>
|
</Button>
|
||||||
<button
|
<button
|
||||||
className={`btn-primary btn w-full rounded-xl ${isSubmitting ? 'loading' : ''}`}
|
className={`btn btn-primary w-full rounded-xl ${isSubmitting ? 'loading' : ''}`}
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onDelete}
|
onClick={onDelete}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const UserFollowButton: FC<UserFollowButtonProps> = ({
|
|||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`btn-sm btn gap-2 rounded-2xl lg:btn-md ${
|
className={`btn btn-sm gap-2 rounded-2xl lg:btn-md ${
|
||||||
!isFollowed ? 'btn-ghost outline' : 'btn-primary'
|
!isFollowed ? 'btn-ghost outline' : 'btn-primary'
|
||||||
}`}
|
}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ const UserHeader: FC<UserHeaderProps> = ({ user }) => {
|
|||||||
const { user: currentUser } = useContext(UserContext);
|
const { user: currentUser } = useContext(UserContext);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="card text-center items-center">
|
<header className="card items-center text-center">
|
||||||
<div className="card-body items-center w-full">
|
<div className="card-body w-full items-center">
|
||||||
<div className="w-40 h-40">
|
<div className="h-40 w-40">
|
||||||
<UserAvatar user={user} />
|
<UserAvatar user={user} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ const CommentsComponent: FC<CommentsComponentProps> = ({
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-ghost btn-sm btn"
|
className="btn btn-ghost btn-sm"
|
||||||
aria-label="Scroll back to top of comments"
|
aria-label="Scroll back to top of comments"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
commentSectionRef.current?.scrollIntoView({
|
commentSectionRef.current?.scrollIntoView({
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ const CustomToast: FC<{ children: ReactNode }> = ({ children }) => {
|
|||||||
const alertType = toastToClassName(t.type);
|
const alertType = toastToClassName(t.type);
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`alert ${alertType} flex w-full items-start justify-between shadow-lg animate-in fade-in duration-200 lg:w-4/12`}
|
className={`alert ${alertType} flex w-full items-start justify-between shadow-lg duration-200 animate-in fade-in lg:w-4/12`}
|
||||||
>
|
>
|
||||||
<p className="w-full text-left">{resolveValue(t.message, t)}</p>
|
<p className="w-full text-left">{resolveValue(t.message, t)}</p>
|
||||||
{t.type !== 'loading' && (
|
{t.type !== 'loading' && (
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
className="btn-ghost btn-xs btn-circle btn"
|
className="btn btn-circle btn-ghost btn-xs"
|
||||||
onClick={() => toast.dismiss(t.id)}
|
onClick={() => toast.dismiss(t.id)}
|
||||||
>
|
>
|
||||||
<FaTimes />
|
<FaTimes />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const LikeButton: FC<LikeButtonProps> = ({ isLiked, handleLike, loading }) => {
|
|||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`btn-sm btn gap-2 rounded-2xl lg:btn-md ${
|
className={`btn btn-sm gap-2 rounded-2xl lg:btn-md ${
|
||||||
!isLiked ? 'btn-ghost outline' : 'btn-primary'
|
!isLiked ? 'btn-ghost outline' : 'btn-primary'
|
||||||
}`}
|
}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
@@ -38,12 +38,12 @@ const MobileLinks: FC = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="flex-none lg:hidden">
|
<div className="flex-none lg:hidden">
|
||||||
<div className="dropdown-end dropdown">
|
<div className="dropdown-end dropdown">
|
||||||
<label tabIndex={0} className="btn-ghost btn-circle btn">
|
<label tabIndex={0} className="btn btn-circle btn-ghost">
|
||||||
<GiHamburgerMenu />
|
<GiHamburgerMenu />
|
||||||
</label>
|
</label>
|
||||||
<ul
|
<ul
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
className="menu-compact dropdown-content menu rounded-box mt-3 w-48 bg-base-100 p-2 shadow"
|
className="menu-compact menu dropdown-content rounded-box mt-3 w-48 bg-base-100 p-2 shadow"
|
||||||
>
|
>
|
||||||
{pages.map((page) => (
|
{pages.map((page) => (
|
||||||
<li key={page.slug}>
|
<li key={page.slug}>
|
||||||
@@ -66,7 +66,7 @@ const Navbar = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="navbar sticky top-0 z-50 bg-primary text-primary-content">
|
<div className="navbar sticky top-0 z-50 bg-primary text-primary-content">
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<Link className="btn-ghost btn normal-case" href="/">
|
<Link className="btn btn-ghost normal-case" href="/">
|
||||||
<span className="cursor-pointer text-lg font-bold">The Biergarten App</span>
|
<span className="cursor-pointer text-lg font-bold">The Biergarten App</span>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
@@ -78,7 +78,7 @@ const Navbar = () => {
|
|||||||
<div>
|
<div>
|
||||||
{theme === 'light' ? (
|
{theme === 'light' ? (
|
||||||
<button
|
<button
|
||||||
className="btn-ghost btn-md btn-circle btn"
|
className="btn btn-circle btn-ghost btn-md"
|
||||||
data-set-theme="dark"
|
data-set-theme="dark"
|
||||||
data-act-class="ACTIVECLASS"
|
data-act-class="ACTIVECLASS"
|
||||||
onClick={() => setTheme('dark')}
|
onClick={() => setTheme('dark')}
|
||||||
@@ -87,7 +87,7 @@ const Navbar = () => {
|
|||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
<button
|
<button
|
||||||
className="btn-ghost btn-md btn-circle btn"
|
className="btn btn-circle btn-ghost btn-md"
|
||||||
data-set-theme="light"
|
data-set-theme="light"
|
||||||
data-act-class="ACTIVECLASS"
|
data-act-class="ACTIVECLASS"
|
||||||
onClick={() => setTheme('light')}
|
onClick={() => setTheme('light')}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ const Button: FunctionComponent<FormButtonProps> = ({
|
|||||||
// eslint-disable-next-line react/button-has-type
|
// eslint-disable-next-line react/button-has-type
|
||||||
<button
|
<button
|
||||||
type={type}
|
type={type}
|
||||||
className={`btn-primary btn w-full rounded-xl`}
|
className={`btn btn-primary w-full rounded-xl`}
|
||||||
disabled={isSubmitting}
|
disabled={isSubmitting}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ const FormPageLayout: FC<FormPageLayoutProps> = ({
|
|||||||
<div className="my-20 flex flex-col items-center justify-center">
|
<div className="my-20 flex flex-col items-center justify-center">
|
||||||
<div className="w-11/12 lg:w-9/12 2xl:w-7/12">
|
<div className="w-11/12 lg:w-9/12 2xl:w-7/12">
|
||||||
<div className="tooltip tooltip-right" data-tip={backLinkText}>
|
<div className="tooltip tooltip-right" data-tip={backLinkText}>
|
||||||
<Link href={backLink} className="btn-ghost btn-sm btn p-0">
|
<Link href={backLink} className="btn btn-ghost btn-sm p-0">
|
||||||
<BiArrowBack className="text-xl" />
|
<BiArrowBack className="text-xl" />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const FormSelect: FunctionComponent<FormSelectProps> = ({
|
|||||||
}) => (
|
}) => (
|
||||||
<select
|
<select
|
||||||
id={id}
|
id={id}
|
||||||
className={`select-bordered select block w-full rounded-lg ${
|
className={`select select-bordered block w-full rounded-lg ${
|
||||||
error ? 'select-error' : ''
|
error ? 'select-error' : ''
|
||||||
}`}
|
}`}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const FormTextArea: FunctionComponent<FormTextAreaProps> = ({
|
|||||||
<textarea
|
<textarea
|
||||||
id={id}
|
id={id}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
className={`text-md textarea-bordered textarea m-0 w-full resize-none rounded-lg border border-solid transition ease-in-out ${
|
className={`text-md textarea textarea-bordered m-0 w-full resize-none rounded-lg border border-solid transition ease-in-out ${
|
||||||
error ? 'textarea-error' : ''
|
error ? 'textarea-error' : ''
|
||||||
}`}
|
}`}
|
||||||
{...formValidationSchema}
|
{...formValidationSchema}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const FormTextInput: FunctionComponent<FormInputProps> = ({
|
|||||||
id={id}
|
id={id}
|
||||||
type={type}
|
type={type}
|
||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
className={`input-bordered input w-full appearance-none rounded-lg transition ease-in-out ${
|
className={`input input-bordered w-full appearance-none rounded-lg transition ease-in-out ${
|
||||||
error ? 'input-error' : ''
|
error ? 'input-error' : ''
|
||||||
}`}
|
}`}
|
||||||
{...formValidationSchema}
|
{...formValidationSchema}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const ForgotEmail: FC<ForgotEmailProps> = ({ name, url }) => {
|
|||||||
return (
|
return (
|
||||||
<Tailwind>
|
<Tailwind>
|
||||||
<Container className="mx-auto">
|
<Container className="mx-auto">
|
||||||
<Section className="p-4 flex flex-col justify-center items-center">
|
<Section className="flex flex-col items-center justify-center p-4">
|
||||||
<Heading className="text-2xl font-bold">Forgot Password</Heading>
|
<Heading className="text-2xl font-bold">Forgot Password</Heading>
|
||||||
<Text className="my-4">Hi {name},</Text>
|
<Text className="my-4">Hi {name},</Text>
|
||||||
<Text className="my-4">
|
<Text className="my-4">
|
||||||
@@ -23,7 +23,7 @@ const ForgotEmail: FC<ForgotEmailProps> = ({ name, url }) => {
|
|||||||
href={url}
|
href={url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
|
className="rounded bg-blue-500 px-4 py-2 font-bold text-white hover:bg-blue-700"
|
||||||
>
|
>
|
||||||
Reset Password
|
Reset Password
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ const AccountPage: NextPage = () => {
|
|||||||
<div className="flex flex-col items-center">
|
<div className="flex flex-col items-center">
|
||||||
<div className="m-12 flex w-11/12 flex-col items-center justify-center space-y-3 lg:w-8/12">
|
<div className="m-12 flex w-11/12 flex-col items-center justify-center space-y-3 lg:w-8/12">
|
||||||
<div className="flex flex-col items-center space-y-3">
|
<div className="flex flex-col items-center space-y-3">
|
||||||
<div className="h-28 mb-1 w-28">
|
<div className="mb-1 h-28 w-28">
|
||||||
<UserAvatar user={user} />
|
<UserAvatar user={user} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ const AccountPage: NextPage = () => {
|
|||||||
|
|
||||||
<div className="h-full w-full">
|
<div className="h-full w-full">
|
||||||
<Tab.Group>
|
<Tab.Group>
|
||||||
<Tab.List className="tabs tabs-boxed items-center justify-center rounded-2xl">
|
<Tab.List className="tabs-boxed tabs items-center justify-center rounded-2xl">
|
||||||
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
||||||
Account Info and Security
|
Account Info and Security
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ const ProfilePage: NextPage<ProfilePageProps> = ({ user }) => {
|
|||||||
disabled={isSubmitting}
|
disabled={isSubmitting}
|
||||||
type="file"
|
type="file"
|
||||||
id="userAvatar"
|
id="userAvatar"
|
||||||
className="file-input-bordered file-input w-full"
|
className="file-input file-input-bordered w-full"
|
||||||
{...register('userAvatar')}
|
{...register('userAvatar')}
|
||||||
/>
|
/>
|
||||||
</FormSegment>
|
</FormSegment>
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ const BeerByIdPage: NextPage<BeerPageProps> = ({ beerPost }) => {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<Tab.Group>
|
<Tab.Group>
|
||||||
<Tab.List className="tabs tabs-boxed items-center justify-center rounded-2xl">
|
<Tab.List className="tabs-boxed tabs items-center justify-center rounded-2xl">
|
||||||
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
||||||
Comments
|
Comments
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const BeerPage: NextPage = () => {
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-ghost btn-sm btn"
|
className="btn btn-ghost btn-sm"
|
||||||
aria-label="Scroll back to top of page."
|
aria-label="Scroll back to top of page."
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
pageRef.current?.scrollIntoView({
|
pageRef.current?.scrollIntoView({
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const SearchPage: NextPage = () => {
|
|||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
id="search"
|
id="search"
|
||||||
className="input-bordered input w-full rounded-lg"
|
className="input input-bordered w-full rounded-lg"
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
value={searchValue}
|
value={searchValue}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ const BeerStyleByIdPage: NextPage<BeerStylePageProps> = ({ beerStyle }) => {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<Tab.Group>
|
<Tab.Group>
|
||||||
<Tab.List className="tabs tabs-boxed items-center justify-center rounded-2xl">
|
<Tab.List className="tabs-boxed tabs items-center justify-center rounded-2xl">
|
||||||
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
||||||
Comments
|
Comments
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const BeerStylePage: NextPage = () => {
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-ghost btn-sm btn"
|
className="btn btn-ghost btn-sm"
|
||||||
aria-label="Scroll back to top of page."
|
aria-label="Scroll back to top of page."
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
pageRef.current?.scrollIntoView({
|
pageRef.current?.scrollIntoView({
|
||||||
|
|||||||
@@ -117,14 +117,14 @@ const EditBreweryPostPage: NextPage<EditPageProps> = ({ breweryPost }) => {
|
|||||||
<div className="w-full space-y-3">
|
<div className="w-full space-y-3">
|
||||||
<button
|
<button
|
||||||
disabled={isSubmitting}
|
disabled={isSubmitting}
|
||||||
className="btn-primary btn w-full"
|
className="btn btn-primary w-full"
|
||||||
type="submit"
|
type="submit"
|
||||||
>
|
>
|
||||||
{isSubmitting ? 'Saving...' : 'Save'}
|
{isSubmitting ? 'Saving...' : 'Save'}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
className="btn-primary btn w-full"
|
className="btn btn-primary w-full"
|
||||||
type="button"
|
type="button"
|
||||||
onClick={handleDelete}
|
onClick={handleDelete}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ const BreweryByIdPage: NextPage<BreweryPageProps> = ({ breweryPost, mapboxToken
|
|||||||
token={mapboxToken}
|
token={mapboxToken}
|
||||||
/>
|
/>
|
||||||
<Tab.Group>
|
<Tab.Group>
|
||||||
<Tab.List className="tabs tabs-boxed items-center justify-center rounded-2xl">
|
<Tab.List className="tabs-boxed tabs items-center justify-center rounded-2xl">
|
||||||
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
<Tab className="tab tab-md w-1/2 uppercase ui-selected:tab-active">
|
||||||
Comments
|
Comments
|
||||||
</Tab>
|
</Tab>
|
||||||
|
|||||||
@@ -58,13 +58,13 @@ const BreweryPage: NextPage<BreweryPageProps> = () => {
|
|||||||
className="tooltip tooltip-left"
|
className="tooltip tooltip-left"
|
||||||
data-tip="Create a new brewery post"
|
data-tip="Create a new brewery post"
|
||||||
>
|
>
|
||||||
<Link href="/breweries/create" className="btn-ghost btn-sm btn">
|
<Link href="/breweries/create" className="btn btn-ghost btn-sm">
|
||||||
<FaPlus className="text-lg" />
|
<FaPlus className="text-lg" />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="tooltip tooltip-left" data-tip="View map">
|
<div className="tooltip tooltip-left" data-tip="View map">
|
||||||
<Link className="btn-ghost btn-sm btn" href="/breweries/map">
|
<Link className="btn btn-ghost btn-sm" href="/breweries/map">
|
||||||
<FaMap className="text-lg" />
|
<FaMap className="text-lg" />
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
@@ -111,7 +111,7 @@ const BreweryPage: NextPage<BreweryPageProps> = () => {
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="btn-ghost btn-sm btn"
|
className="btn btn-ghost btn-sm"
|
||||||
aria-label="Scroll back to top of page."
|
aria-label="Scroll back to top of page."
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
pageRef.current?.scrollIntoView({
|
pageRef.current?.scrollIntoView({
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ const UserInfoPage: FC<UserInfoPageProps> = ({ user }) => {
|
|||||||
<meta name="description" content="User information" />
|
<meta name="description" content="User information" />
|
||||||
</Head>
|
</Head>
|
||||||
<>
|
<>
|
||||||
<main className="mb-12 mt-10 flex flex-col w-full items-center justify-center">
|
<main className="mb-12 mt-10 flex w-full flex-col items-center justify-center">
|
||||||
<div className="w-11/12 space-y-3 xl:w-9/12 2xl:w-8/12">
|
<div className="w-11/12 space-y-3 xl:w-9/12 2xl:w-8/12">
|
||||||
<UserHeader user={user} />
|
<UserHeader user={user} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const ConfirmUserPage: FC = () => {
|
|||||||
Your confirmation token is invalid or is expired.
|
Your confirmation token is invalid or is expired.
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
className="btn-outline btn-sm btn normal-case"
|
className="btn btn-outline btn-sm normal-case"
|
||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -41,10 +41,10 @@ const ForgotPasswordPage: NextPage<ForgotPasswordPageProps> = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center h-full">
|
<div className="flex h-full flex-col items-center">
|
||||||
<div className="xl:w-6/12 w-10/12 mt-64 text-center flex flex-col space-y-3">
|
<div className="mt-64 flex w-10/12 flex-col space-y-3 text-center xl:w-6/12">
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<div className="flex flex-col items-center justify-center my-2">
|
<div className="my-2 flex flex-col items-center justify-center">
|
||||||
<FaUserCircle className="text-3xl" />
|
<FaUserCircle className="text-3xl" />
|
||||||
<h1 className="text-3xl font-bold">Forgot Your Password?</h1>
|
<h1 className="text-3xl font-bold">Forgot Your Password?</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user