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:
IGNY8 VPS (Salman)
2025-11-17 16:08:51 +00:00
parent e3d4ba2c02
commit 5a36686844
74 changed files with 7217 additions and 374 deletions

View 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>
);
}

View 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>;
}

View File

@@ -0,0 +1,6 @@
export { DefaultLayout } from './DefaultLayout';
export type { DefaultLayoutProps } from './DefaultLayout';
export { MinimalLayout } from './MinimalLayout';
export type { MinimalLayoutProps } from './MinimalLayout';

View 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;
}