diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index cd6f855..e299550 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b..66891d7 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf..7359aa4 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/admin.py b/core/admin.py index 8c38f3f..529fd9d 100644 --- a/core/admin.py +++ b/core/admin.py @@ -1,3 +1,4 @@ from django.contrib import admin +from .models import PromptRequest -# Register your models here. +admin.site.register(PromptRequest) \ No newline at end of file diff --git a/core/models.py b/core/models.py index 71a8362..9135ec3 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,8 @@ from django.db import models -# Create your models here. +class PromptRequest(models.Model): + subject_area = models.CharField(max_length=255) + created_at = models.DateTimeField(auto_now_add=True) + + def __str__(self): + return self.subject_area \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 788576e..3718708 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -2,7 +2,13 @@ - {% block title %}Knowledge Base{% endblock %} + {% block title %}PromptForge Enterprise™{% endblock %} + + + + + {% load static %} + {% block head %}{% endblock %} diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 0a3f404..29af611 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,154 +1,38 @@ {% extends "base.html" %} +{% load static %} -{% block title %}{{ project_name }}{% endblock %} +{% block title %}PromptForge Enterprise™{% endblock %} {% block head %} -{% if project_description %} - - - -{% endif %} -{% if project_image_url %} - - -{% endif %} - - - - + {% endblock %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… +
+
+
+
+

PromptForge Enterprise™

+

S.C.R.I.P.T.™ Prompt Generator for Solution & Implementation

+ +
+ {% csrf_token %} +
+ + +
+
+ + {% if subject_area %} +
+

Results for: {{ subject_area }}

+

Prompt generation is not yet implemented. This is the first step.

+

Next, we will integrate the AI model to generate the 3 S.C.R.I.P.T.™ versions.

+
+ {% endif %} + +
+
-

AppWizzy AI is collecting your requirements and applying the first changes.

-

This page will refresh automatically as the plan is implemented.

-

- Runtime: Django {{ django_version }} · Python {{ python_version }} - — UTC {{ current_time|date:"Y-m-d H:i:s" }} -

-
-
- -{% endblock %} \ No newline at end of file + +{% endblock %} diff --git a/core/views.py b/core/views.py index c9aed12..271ad86 100644 --- a/core/views.py +++ b/core/views.py @@ -6,20 +6,10 @@ from django.shortcuts import render from django.utils import timezone -def home(request): - """Render the landing screen with loader and environment details.""" - host_name = request.get_host().lower() - agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic" - now = timezone.now() - - context = { - "project_name": "New Style", - "agent_brand": agent_brand, - "django_version": django_version(), - "python_version": platform.python_version(), - "current_time": now, - "host_name": host_name, - "project_description": os.getenv("PROJECT_DESCRIPTION", ""), - "project_image_url": os.getenv("PROJECT_IMAGE_URL", ""), - } - return render(request, "core/index.html", context) +def index(request): + if request.method == 'POST': + subject_area = request.POST.get('subject_area', '') + # For now, just render the page with the submitted subject + # In the next step, we will save it and generate prompts + return render(request, 'core/index.html', {'subject_area': subject_area}) + return home(request) diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..847d817 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,60 @@ +/* +Palette: +- Primary (Dark Blue): #0A192F +- Secondary (Slate): #8892B0 +- Accent (Vibrant Green): #64FFDA +- Background (Light Navy): #0E1F3A +- Text (Light Slate): #CCD6F6 +*/ + +body { + background-color: #0A192F; + color: #CCD6F6; + font-family: 'Roboto', sans-serif; +} + +.hero { + background: linear-gradient(180deg, #0E1F3A 0%, #0A192F 100%); + min-height: 100vh; + display: flex; + align-items: center; + justify-content: center; +} + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; + color: #CCD6F6; +} + +.form-control { + background-color: #0E1F3A; + border: 1px solid #8892B0; + color: #CCD6F6; +} + +.form-control:focus { + background-color: #0E1F3A; + border-color: #64FFDA; + color: #CCD6F6; + box-shadow: 0 0 0 0.25rem rgba(100, 255, 218, 0.25); +} + +.btn-primary { + background-color: #64FFDA; + border-color: #64FFDA; + color: #0A192F; + font-weight: bold; +} + +.btn-primary:hover, .btn-primary:focus { + background-color: #52d6b8; + border-color: #52d6b8; + color: #0A192F; +} + +.prompt-results { + margin-top: 2rem; + padding: 2rem; + background-color: #0E1F3A; + border-radius: 8px; +}