Skip to content

Commit

Permalink
chore: minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
darklight9811 committed Sep 5, 2024
1 parent c3cd7eb commit d4539b0
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 22 deletions.
12 changes: 6 additions & 6 deletions apps/app/src/app/(app)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import Image from "next/image";

export default function Page() {
return (
<>
<main className="flex flex-col w-full grow relative">
{/**
* ### MARK: Hero
*/}

<div className="flex flex-col justify-center min-h-[800px] md:min-h-[1000px] items-center relative pb-[20vh] px-2 md:mb-[450px]">
<div className="flex flex-col justify-center h-full min-h-[800px] md:min-h-[1000px] items-center relative pb-[50vh] px-2 overflow-hidden">
<img
src="/images/arts/splash_01.svg"
alt=""
fetchPriority="high"
className="absolute z-[-1] w-full min-w-[840px] bg-cover"
className="absolute xl:top-[-40vh] z-[-1] w-full min-w-[840px] bg-cover"
/>

<h1 className="text-3xl md:text-7xl font-bold max-w-screen-xl text-center text-white animate-top-in mb-8">
Expand All @@ -35,7 +35,7 @@ export default function Page() {
src="/images/arts/line_01.svg"
alt=""
fetchPriority="high"
className="absolute z-[-1] w-full !top-[70%]"
className="absolute z-[-1] w-full !top-[50%]"
/>

<Link
Expand All @@ -54,7 +54,7 @@ export default function Page() {
alt=""
width={1100}
height={679}
className="z-[-1] absolute top-[65%]"
className="z-[-1] absolute top-[50%]"
priority
/>
</div>
Expand Down Expand Up @@ -348,6 +348,6 @@ export default function Page() {
</Link>
</div>
</div>
</>
</main>
);
}
9 changes: 6 additions & 3 deletions apps/app/src/app/(app)/profiles/[id]/edit/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ export default async function Page({ params }: { params: { id: string } }) {
</Dialog>
</h1>

<ProfileForm onSubmit={update} data={data} schema="update" require>
<Link href="/" className={buttonVariants({ variant: "outline" })}>
<ProfileForm onSubmit={update} data={data}>
<Link
href="/profiles"
className={buttonVariants({ variant: "outline" })}
>
Voltar
</Link>
<Button type="submit" className="w-full max-w-[180px]">
<Button type="submit" className="w-full md:max-w-[180px]">
Atualizar
</Button>
</ProfileForm>
Expand Down
9 changes: 6 additions & 3 deletions apps/app/src/app/(app)/profiles/new/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,19 @@ export default function Page() {
}

return (
<main className="grow flex flex-col justify-center items-center my-16 px-2">
<main className="grow flex flex-col justify-center items-center my-16 px-4">
<h1 className="w-full max-w-5xl text-3xl font-bold mb-4 text-primary">
{t("create-title")}
</h1>

<ProfileForm onSubmit={store}>
<Link href="/" className={buttonVariants({ variant: "outline" })}>
<Link
href="/profiles"
className={buttonVariants({ variant: "outline" })}
>
{t("back")}
</Link>
<Button type="submit" className="w-full max-w-[180px]">
<Button type="submit" className="w-full md:max-w-[180px]">
{t("create")}
</Button>
</ProfileForm>
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import Footer from "../_components/footer";
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<>
<div className="relative grow flex flex-col justify-center items-center overflow-hidden animate-fade-in pb-[15vh]">
<span className="absolute top-1 left-1 flex gap-2 opacity-50 text-primary">
<div className="relative grow flex flex-col justify-center items-center animate-fade-in py-[15vh]">
<span className="absolute top-3 left-3 flex gap-2 opacity-50 text-primary">
<Image
alt="logo"
height={20}
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/app/_components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default function Footer(props: Props) {
return (
<footer
className={cn(
"w-full flex flex-col flex-wrap gap-4 justify-evenly items-center py-4 px-2",
"w-full flex flex-col flex-wrap gap-4 justify-evenly items-center p-4",
props.className,
)}
>
<div className="flex flex-col md:flex-row text-center md:text-left container mx-auto gap-8">
<div className="flex flex-col md:flex-row text-center md:text-left !p-0 container mx-auto gap-8">
<div className="flex flex-col w-full md:w-1/4">
<Link
href="/"
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/app/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function generate(lang: string) {
description: t("description"),
start_url: "/",
display: "browser",
background_color: "#DFF2FD",
background_color: "#3a506b",
theme_color: "#3a506b",
orientation: "portrait",
dir: "ltr",
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/modules/profile/components/profile-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function ProfileFormV2(props: Props) {
<ProfileFormLocation />
<ProfileFormContact />

<div className="w-full flex gap-4 justify-center sticky bottom-0 bg-[#DBF0FD] p-4">
<div className="w-full flex gap-2 justify-center sticky bottom-0 bg-[#DBF0FD] py-2">
{props.children}
</div>
</Tabs>
Expand Down
8 changes: 4 additions & 4 deletions packages/services/src/services/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { db } from "../lib/db";
import service from "../lib/service";

const userService = service({
index({ page, limit }: Pagination) {
async index({ page, limit }: Pagination) {
return db.user.paginate({
page,
limit,
});
},

create(data: User & { emailVerified: Date }, { user }) {
async create(data: User & { emailVerified: Date }, { user }) {
if (user?.id) return user;

return db.user.create({
Expand All @@ -26,13 +26,13 @@ const userService = service({
});
},

show(id?: string | null) {
async show(id?: string | null) {
if (!id) return undefined;

return db.user.findUnique({ where: { id } });
},

byProvider({ provider, value }: { provider: string; value: string }) {
async byProvider({ provider, value }: { provider: string; value: string }) {
if (!value) return undefined;

return db.user.findFirst({
Expand Down

0 comments on commit d4539b0

Please sign in to comment.