new models, frontend functions, public pages
This commit is contained in:
31
frontend/linktree-frontend/src/app/[username]/layout.tsx
Normal file
31
frontend/linktree-frontend/src/app/[username]/layout.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
// src/app/[username]/layout.tsx
|
||||
import { ReactNode } from "react";
|
||||
|
||||
export const dynamic = "force-dynamic"; // всегда свежие данные
|
||||
|
||||
export default function UserLayout({
|
||||
children,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<>
|
||||
{/* Подключаем стили точно так же, как в root */}
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="/assets/bootstrap/css/bootstrap.min.css?h=608a9825a1f76f674715160908e57785"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="/assets/css/Lato.css?h=8253736d3a23b522f64b7e7d96d1d8ff"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css"
|
||||
/>
|
||||
|
||||
{/* Только контент пользователской страницы */}
|
||||
<main>{children}</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user