Add site builder service to Docker Compose and remove obsolete scripts
- Introduced a new service `igny8_site_builder` in `docker-compose.app.yml` for site building functionality, including environment variables and volume mappings. - Deleted several outdated scripts: `create_test_users.py`, `test_image_write_access.py`, `update_free_plan.py`, and the database file `db.sqlite3` to clean up the backend. - Updated Django settings and URL configurations to integrate the new site builder module.
This commit is contained in:
28
frontend/src/components/shared/layouts/DefaultLayout.tsx
Normal file
28
frontend/src/components/shared/layouts/DefaultLayout.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import './layouts.css';
|
||||
|
||||
export interface DefaultLayoutProps {
|
||||
hero?: ReactNode;
|
||||
sections: ReactNode[];
|
||||
sidebar?: ReactNode;
|
||||
}
|
||||
|
||||
export function DefaultLayout({ hero, sections, sidebar }: DefaultLayoutProps) {
|
||||
return (
|
||||
<div className="shared-layout">
|
||||
{hero && <div className="shared-layout__hero">{hero}</div>}
|
||||
<div className="shared-layout__body">
|
||||
<div className="shared-layout__main">
|
||||
{sections.map((section, index) => (
|
||||
<div key={index} className="shared-layout__section">
|
||||
{section}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
{sidebar && <aside className="shared-layout__sidebar">{sidebar}</aside>}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
13
frontend/src/components/shared/layouts/MinimalLayout.tsx
Normal file
13
frontend/src/components/shared/layouts/MinimalLayout.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import './layouts.css';
|
||||
|
||||
export interface MinimalLayoutProps {
|
||||
children: ReactNode;
|
||||
background?: 'light' | 'dark';
|
||||
}
|
||||
|
||||
export function MinimalLayout({ children, background = 'light' }: MinimalLayoutProps) {
|
||||
return <div className={`shared-layout__minimal shared-layout__minimal--${background}`}>{children}</div>;
|
||||
}
|
||||
|
||||
|
||||
6
frontend/src/components/shared/layouts/index.ts
Normal file
6
frontend/src/components/shared/layouts/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export { DefaultLayout } from './DefaultLayout';
|
||||
export type { DefaultLayoutProps } from './DefaultLayout';
|
||||
export { MinimalLayout } from './MinimalLayout';
|
||||
export type { MinimalLayoutProps } from './MinimalLayout';
|
||||
|
||||
|
||||
65
frontend/src/components/shared/layouts/layouts.css
Normal file
65
frontend/src/components/shared/layouts/layouts.css
Normal file
@@ -0,0 +1,65 @@
|
||||
.shared-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.shared-layout__hero {
|
||||
min-height: 320px;
|
||||
}
|
||||
|
||||
.shared-layout__body {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.shared-layout__body {
|
||||
grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.shared-layout__section {
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
|
||||
.shared-layout__sidebar {
|
||||
position: sticky;
|
||||
top: 3rem;
|
||||
align-self: flex-start;
|
||||
background: #0f172a;
|
||||
color: #fff;
|
||||
border-radius: 24px;
|
||||
padding: 1.75rem;
|
||||
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
|
||||
}
|
||||
|
||||
.shared-layout__minimal {
|
||||
border-radius: 30px;
|
||||
padding: 2.5rem;
|
||||
}
|
||||
|
||||
.shared-layout__minimal--light {
|
||||
background: #f8fafc;
|
||||
border: 1px solid rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
|
||||
.shared-layout__minimal--dark {
|
||||
background: #0f172a;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.shared-landing {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
|
||||
.shared-landing__highlights {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user