kalhdrawi commited on
Commit
48357fd
·
1 Parent(s): c89a5a0

Reupload OmniDev clean version

Browse files
app/api/ask/route.ts CHANGED
@@ -595,18 +595,18 @@ export async function PUT(request: NextRequest) {
595
  const colorTo = COLORS[Math.floor(Math.random() * COLORS.length)];
596
  const README = `---
597
  title: ${projectName}
 
598
  colorFrom: ${colorFrom}
599
  colorTo: ${colorTo}
600
- emoji: 🐳
601
- sdk: static
602
  pinned: false
603
- tags:
604
- - deepsite-v3
605
  ---
606
 
607
- # Welcome to your new DeepSite project!
608
- This project was created with [DeepSite](https://deepsite.hf.co).
609
- `;
 
610
  files.push(new File([README], "README.md", { type: "text/markdown" }));
611
  }
612
 
@@ -659,3 +659,4 @@ This project was created with [DeepSite](https://deepsite.hf.co).
659
  }
660
  }
661
 
 
 
595
  const colorTo = COLORS[Math.floor(Math.random() * COLORS.length)];
596
  const README = `---
597
  title: ${projectName}
598
+ emoji: 🚀
599
  colorFrom: ${colorFrom}
600
  colorTo: ${colorTo}
601
+ sdk: docker
602
+ app_port: 7860
603
  pinned: false
 
 
604
  ---
605
 
606
+ # ${projectName}
607
+
608
+ This Space was scaffolded by OmniDev (Full‑Stack ready).
609
+ `;
610
  files.push(new File([README], "README.md", { type: "text/markdown" }));
611
  }
612
 
 
659
  }
660
  }
661
 
662
+
app/api/me/projects/route.ts CHANGED
@@ -25,7 +25,6 @@ export async function POST(
25
  .join("-")
26
  .slice(0, 96);
27
 
28
- // Fallback when non-Latin titles slugify to empty (e.g., Arabic-only)
29
  if (!formattedTitle || formattedTitle.trim().length === 0) {
30
  formattedTitle = `project-${Math.random().toString(36).slice(2, 8)}`;
31
  }
@@ -38,22 +37,22 @@ export async function POST(
38
  const colorTo = COLORS[Math.floor(Math.random() * COLORS.length)];
39
  const README = `---
40
  title: ${title}
 
41
  colorFrom: ${colorFrom}
42
  colorTo: ${colorTo}
43
- emoji: 🐳
44
  sdk: docker
 
45
  pinned: false
46
- tags:
47
- - deepsite-v3
48
  ---
49
 
50
- # Welcome to your new DeepSite project!
51
- This project was created with [DeepSite](https://deepsite.hf.co).
 
52
  `;
53
 
54
  const files: File[] = [];
55
- const readmeFile = new File([README], "README.md", { type: "text/markdown" });
56
- files.push(readmeFile);
57
  if (Array.isArray(pages)) {
58
  pages.forEach((page: Page) => {
59
  const file = new File([page.html], page.path, { type: "text/html" });
 
25
  .join("-")
26
  .slice(0, 96);
27
 
 
28
  if (!formattedTitle || formattedTitle.trim().length === 0) {
29
  formattedTitle = `project-${Math.random().toString(36).slice(2, 8)}`;
30
  }
 
37
  const colorTo = COLORS[Math.floor(Math.random() * COLORS.length)];
38
  const README = `---
39
  title: ${title}
40
+ emoji: 🚀
41
  colorFrom: ${colorFrom}
42
  colorTo: ${colorTo}
 
43
  sdk: docker
44
+ app_port: 7860
45
  pinned: false
 
 
46
  ---
47
 
48
+ # ${title}
49
+
50
+ This Space was scaffolded by OmniDev (Full‑Stack ready).
51
  `;
52
 
53
  const files: File[] = [];
54
+ files.push(new File([README], "README.md", { type: "text/markdown" }));
55
+
56
  if (Array.isArray(pages)) {
57
  pages.forEach((page: Page) => {
58
  const file = new File([page.html], page.path, { type: "text/html" });
lib/design-presets.ts ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const ADVANCED_DESIGN_PRESETS: string[] = [
2
+ // Animated backgrounds
3
+ "Use animated gradient background with subtle blur bloom and smooth hue shift; ensure 60fps and prefers-reduced-motion fallback.",
4
+ "Add particles field (tiny dots/lines) with low alpha and random drift; cap count on low-end devices.",
5
+ "Waves background (SVG/Canvas) with parallax depth and gentle motion; ensure contrast AA+ for text.",
6
+ // Effects
7
+ "Glassmorphism cards (frosted glass) using backdrop-filter: blur(...) with semi-transparent borders and elevation shadows.",
8
+ "Aqua/water ripple highlight for CTA using radial-gradient overlays with animation and accessibility-safe focus styles.",
9
+ "Layered shadows for buttons and hero text to create depth while keeping crisp typography.",
10
+ // Layout
11
+ "Use responsive container with mobile-first grid, fluid spacing scale, and adaptive typography (clamp).",
12
+ // Theme & A11y
13
+ "Dark/Light theme with prefers-color-scheme and accessible color pairs meeting WCAG AA.",
14
+ // Perf & SEO
15
+ "Preconnect and prefetch fonts, optimize images (webp/avif), add SEO meta (title/description/og: tags)."
16
+ ];
17
+