Skip to content

Commit

Permalink
v0.1.1 (#32)
Browse files Browse the repository at this point in the history
* [DEV-41] add auto migration to envs (#26)

* chore: updated .env.example

* chore: added vscode extensions recommendations

* chore: updated dependencies

* chore: updated README

* chore: updated dependencies

* chore: moved tailwind import to js

* chore: added tests to env variables

* chore: added env vault config

* chore: work on workflows

* chore: updated bun lock

* chore: updated dependencies

* chore: force build step to bundle env

* chore: force build step to bundle env

* chore: updated dotenv-vault

* feat: bumped vault version

* chore: I give up on dotenv-vault

* chore: removed vault from workflow

* chore: updated envs to work on both states

* [DEV-54] repository enhancements and utilities package (#29)

* chore: upgraded dependencies

* feat: added banner to readme

* feat: added code of conduct

* feat: added contributing guide

* test: move md files to github dir

* chore: renamed contributing to github standard

* feat: added screenshot to readme

* chore: updaded pr template

* feat: added bug report issue template

* feat: added base shared package

* chore: moved api to js export

* feat: finished api integration

* chore: updated dependencies

* chore: updated dependencies

* feat: moved service and api to shared lib

* chore: enhanced tests

* feat: added tests

* chore: added type tests to CICD

* feat: added api tests

* feat: added test type entry

* chore: removed prisma ads

* [DEV-12] Enhance profile creation page (#30)

* chore: removed prisma ads

* fix: 404 thrown on non localized pages

* fix: missing textures on cards

* feat: refactored profile form

* feat: enhanced legal documents

* feat: enhanced footer

* chore: disabled prefetch

* chore: enhanced app metadata

* chore: enhanced app metadata

* chore: enhanced app metadata

* chore: enhanced app metadata

* chore: enhanced not found page

* chore: enhanced app metadata

* fix: link inserting locale

* chore: minor style fixes
  • Loading branch information
darklight9811 authored Sep 5, 2024
1 parent 38d5004 commit 4904f65
Show file tree
Hide file tree
Showing 30 changed files with 516 additions and 210 deletions.
2 changes: 1 addition & 1 deletion apps/app/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
14 changes: 7 additions & 7 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@
"postinstall": "cd ../../ && bun run postinstall"
},
"dependencies": {
"@clerk/localizations": "^2.7.1",
"@clerk/nextjs": "^5.3.7",
"@clerk/localizations": "^2.8.1",
"@clerk/nextjs": "^5.4.1",
"@react-pdf/renderer": "^3.4.4",
"@repo/ds": "1.0.0",
"@repo/env": "1.0.0",
"@repo/schemas": "1.0.0",
"@repo/services": "1.0.0",
"@tanstack/react-query": "^5.53.3",
"@tanstack/react-query-devtools": "^5.53.3",
"@tanstack/react-query": "^5.54.1",
"@tanstack/react-query-devtools": "^5.54.1",
"@upstash/ratelimit": "^2.0.2",
"@vercel/analytics": "^1.3.1",
"@vercel/functions": "^1.4.1",
"@vercel/kv": "^2.0.0",
"@vercel/speed-insights": "^1.0.12",
"@yamiassu/shared": "*",
"lucide-react": "^0.438.0",
"next": "^14.2.7",
"next": "^14.2.8",
"next-intl": "^3.19.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@repo/config": "0.0.0",
"@types/node": "^22.5.2",
"@types/node": "^22.5.3",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.44",
"postcss": "^8.4.45",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
}
Expand Down
17 changes: 6 additions & 11 deletions apps/app/src/app/(app)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default function Page() {
</Link>

<Image
src="/images/screenshots/dashboard.png"
src="/screenshot.png"
alt=""
width={1100}
height={679}
Expand Down Expand Up @@ -106,7 +106,7 @@ export default function Page() {
está desaparecido.
</p>

<small className="text-[#1977f3] text-sm font-medium tracking-wide mt-8">
<small className="text-sm font-bold tracking-wide mt-8">
Em breve
</small>

Expand Down Expand Up @@ -180,19 +180,14 @@ export default function Page() {
</p>

<div className="md:mx-16 rounded-3xl bg-gradient-to-l from-[#6FFFE9] to-[#62B0F4] my-16 flex justify-center items-center py-4 md:py-12">
<Image
src="/images/screenshots/search.png"
alt=""
width={1100}
height={735}
/>
<Image src="/screenshot.png" alt="" width={1100} height={735} />
</div>

<div className="flex flex-wrap justify-evenly my-8 gap-4">
<div className="flex flex-col items-center max-w-xs">
<Users size="64" />

<h3 className="font-semibold text-xl">Comunidade</h3>
<h2 className="font-semibold text-xl">Comunidade</h2>

<p className="text-justify">
Nós estamos aqui graças àqueles que nos ajudam. A comunidade é a
Expand All @@ -204,7 +199,7 @@ export default function Page() {
<div className="flex flex-col items-center max-w-xs">
<Code size="64" />

<h3 className="font-semibold text-xl">Código aberto</h3>
<h2 className="font-semibold text-xl">Código aberto</h2>

<p className="text-justify">
Nosso código está inteiramente disponível e aberto para
Expand All @@ -216,7 +211,7 @@ export default function Page() {
<div className="flex flex-col items-center max-w-xs">
<Handshake size="64" />

<h3 className="font-semibold text-xl">Parceiros</h3>
<h2 className="font-semibold text-xl">Parceiros</h2>

<p className="text-justify">
Nossos parceiros nos permitem ir mais longe. Graças a essas
Expand Down
8 changes: 4 additions & 4 deletions apps/app/src/app/(app)/profiles/_components/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import Field from "@repo/ds/form/field";
import Form from "@repo/ds/form/form";
import { Button } from "@repo/ds/ui/button";
import { Calendar } from "@repo/ds/ui/calendar";
import { CalendarInput } from "@repo/ds/ui/calendar-input";
import { Input } from "@repo/ds/ui/input";
import { Popover, PopoverContent, PopoverTrigger } from "@repo/ds/ui/popover";
import { parseToDate, stringifyDate } from "@repo/ds/utils/date";
import { CalendarIcon, Trash } from "lucide-react";
import { Trash } from "lucide-react";
import { useTranslations } from "next-intl";
import { useRouter } from "next/navigation";
import { useRef } from "react";
Expand All @@ -24,7 +22,7 @@ export function Filter(props: Props) {

return (
<Form
className="bg-white *:m-0 p-2 rounded-lg shadow flex gap-4 flex-col"
className="bg-white *:m-0 p-2 rounded-lg shadow flex gap-4 flex-col sticky top-[67px]"
data={{
...props.data,
date_disappeared: parseToDate(props.data?.date_disappeared as string),
Expand Down Expand Up @@ -70,7 +68,9 @@ export function Filter(props: Props) {
</Button>
<Button
type="button"
size="icon"
variant="destructive"
className="px-2"
onClick={() => {
const url = new URL(window.location.href);

Expand Down
6 changes: 3 additions & 3 deletions apps/app/src/app/(app)/profiles/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ export default async function Page(props: { searchParams: PaginationType }) {
const [t] = await parallel(getTranslations("profiles"));

return (
<div className="flex flex-col sm:flex-row grow sm:container px-4 my-4 gap-4">
<div className="flex flex-col sm:flex-row grow sm:container px-4 my-4 gap-4 relative">
<aside className="w-full sm:w-1/3">
<h5 className="w-full text-xl py-4 pl-4 font-bold">
{t("profiles")} - {t("filter")}
</h5>

<Filter data={props.searchParams} />
</aside>
<main className="w-full flex flex-col justify-between">
<main className="w-full flex flex-col justify-between relative">
<Sort
className="flex gap-2 bg-white rounded-lg *:m-0 p-2 shadow"
className="flex gap-2 bg-white rounded-lg *:m-0 p-2 shadow sticky top-[67px] z-[11]"
data={props.searchParams}
order={{
name: t("new.general.name"),
Expand Down
6 changes: 3 additions & 3 deletions apps/app/src/app/(auth)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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-30 text-primary">
<span className="absolute top-1 left-1 flex gap-2 opacity-50 text-primary">
<Image
alt="logo"
height={20}
Expand All @@ -18,11 +18,11 @@ export default function Layout({ children }: { children: React.ReactNode }) {

{children}

<div className="absolute z-[-1] top-[50%] left-[50%] opacity-20 aspect-square w-[50vw]">
<div className="absolute z-[-1] top-[50%] left-[50%] opacity-20 w-[50%]">
<Image alt="" fill src="/images/logo/favicon.svg" />
</div>
</div>
<Footer className="absolute bottom-0" />
<Footer className="bottom-0" />
</>
);
}
17 changes: 0 additions & 17 deletions apps/app/src/app/(legal)/privacy/page.tsx

This file was deleted.

17 changes: 0 additions & 17 deletions apps/app/src/app/(legal)/terms/page.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions apps/app/src/app/[...rest]/page.tsx

This file was deleted.

136 changes: 107 additions & 29 deletions apps/app/src/app/_components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Link } from "@/lib/navigation";
import { cn } from "@repo/ds/utils";
import { env } from "@repo/env";
import { MailIcon } from "lucide-react";
import { useTranslations } from "next-intl";
import Image from "next/image";

Expand All @@ -14,42 +15,119 @@ export default function Footer(props: Props) {
return (
<footer
className={cn(
"w-full flex flex-col flex-wrap sm:flex-row text-center gap-4 justify-evenly items-center py-4 px-2",
"w-full flex flex-col flex-wrap gap-4 justify-evenly items-center py-4 px-2",
props.className,
)}
>
<Link href="/" className="text-slate-900 text-base font-normal">
© {new Date().getFullYear()} {env.APP_NAME}. {t("rights")}
</Link>
<div className="flex flex-col md:flex-row text-center md:text-left container mx-auto gap-8">
<div className="flex flex-col w-full md:w-1/4">
<Link
href="/"
prefetch={false}
className="flex justify-center md:justify-start text-xl gap-2 text-primary font-bold mb-4"
aria-label="home"
>
<Image
src="/images/logo/favicon.svg"
alt=""
width={16}
height={16}
/>

<Link href="/">
<Image src="/images/logo/favicon.svg" alt="" width={40} height={40} />
</Link>
{env.APP_NAME}
</Link>

<Link href="https://www.instagram.com/sharedway_org/" target="_blank">
<Image
src="/images/brands/instagram.svg"
alt=""
width={40}
height={40}
/>
</Link>
<p>{t("description")}</p>
</div>

<div className="flex flex-col w-full md:w-1/4">
<h2 className="font-bold mb-4">Home</h2>

<ul className="flex flex-col gap-2">
<li>
<Link prefetch={false} href="/">
{t("landing")}
</Link>
</li>
<li>
<Link prefetch={false} href="/profiles">
{t("search")}
</Link>
</li>
<li>
<Link href="/profiles/new">{t("new")}</Link>
</li>
</ul>
</div>

<div className="flex flex-col w-full md:w-1/4">
<h2 className="font-bold mb-4">Legal</h2>

<div className="flex gap-4">
<Image
src="/images/screenshots/app_store.png"
alt=""
width={120}
height={40}
/>
<Image
src="/images/screenshots/play_store.png"
alt=""
width={120}
height={40}
className="opacity-50"
/>
<ul className="flex flex-col gap-2">
<li>
<Link prefetch={false} href="/legal/usage">
{t("usage")}
</Link>
</li>
<li>
<Link prefetch={false} href="/legal/privacy">
{t("privacy")}
</Link>
</li>
</ul>
</div>

<div className="flex flex-col w-full md:w-1/4 gap-2">
<h2 className="font-bold mb-2">{t("contact")}</h2>

<Link
prefetch={false}
href="https://www.instagram.com/sharedway_org/"
target="_blank"
className="flex gap-2"
aria-label="instagram"
>
<Image
src="/images/brands/instagram.svg"
alt=""
width={16}
height={16}
/>
instagram
</Link>

<a
href="mail:[email protected]"
className="flex gap-2 items-center"
>
<MailIcon size={16} /> [email protected]
</a>

<div className="flex gap-2">
<Image
src="/images/screenshots/app_store.png"
alt=""
width={136}
height={40}
/>
<Image
src="/images/screenshots/play_store.png"
alt=""
width={136}
height={40}
className="opacity-50"
/>
</div>
</div>
</div>

<Link
href="/"
prefetch={false}
className="text-slate-900 text-base font-normal w-full text-center mt-4"
>
© {new Date().getFullYear()} {env.APP_NAME}. {t("rights")}
</Link>
</footer>
);
}
Loading

0 comments on commit 4904f65

Please sign in to comment.