mirror of
https://github.com/Radiquum/photos.git
synced 2025-04-28 17:09:43 +05:00
feat/generator: add build script
This commit is contained in:
parent
55a8c97607
commit
1020dc8ae8
9 changed files with 1150 additions and 7 deletions
20
generate/templates/Base.tsx
Normal file
20
generate/templates/Base.tsx
Normal file
|
@ -0,0 +1,20 @@
|
|||
interface BaseProps {
|
||||
children: React.ReactNode;
|
||||
isDev?: boolean;
|
||||
}
|
||||
|
||||
export default function Base({ children, isDev }: BaseProps) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charSet="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Radiquum/Photos</title>
|
||||
{isDev ? <script src="/static/js/hotreload.js"></script> : ""}
|
||||
</head>
|
||||
<body>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue