Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Dec 20, 2023
1 parent 55e4105 commit aaacbb4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion web/src/app/[locale]/(main)/@home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ export default function HomePage({}: HomePageProps) {

return (
<>
<div className="h-16" />
<LogoSwitch />
<h1 className="bg-gradient-to-r from-red-600 to-blue-600 bg-clip-text text-3xl font-bold leading-relaxed text-transparent dark:from-secondary dark:to-primary">
{process.env.NEXT_PUBLIC_BRAND_NAME}
</h1>
<h5 className="max-w-2xl text-center text-3xl font-bold md:text-6xl">
{t("HEADER")}
</h5>
<p className="my-10 max-w-2xl text-center text-lg text-gray-700 dark:text-gray-400 md:text-xl">
<p className="my-10 max-w-2xl text-center text-lg text-gray-700 md:text-xl dark:text-gray-400">
{t("SUBHEADER", { brand: process.env.NEXT_PUBLIC_BRAND_NAME })}
</p>

Expand Down
2 changes: 2 additions & 0 deletions web/src/app/[locale]/(main)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ interface HomeLayoutProps {
user: React.ReactNode;
}

export const dynamic = "force-dynamic";

export default async function HomeLayout({
children,
params,
Expand Down
22 changes: 12 additions & 10 deletions web/src/components/container/navbar/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,18 @@ export const Profile = () => {
const { me } = useMeHook();

const Items = [
<DropdownItem key="profile" isReadOnly className="h-14 gap-2 opacity-100">
<User
name={me?.username}
description={me?.email}
classNames={{
name: "text-default-600",
description: "text-default-500",
}}
/>
</DropdownItem>,
me && (
<DropdownItem key="profile" isReadOnly className="h-14 gap-2 opacity-100">
<User
name={me?.username}
description={me?.email}
classNames={{
name: "text-default-600",
description: "text-default-500",
}}
/>
</DropdownItem>
),
me && (
<DropdownItem
key="logout"
Expand Down

0 comments on commit aaacbb4

Please sign in to comment.