From f1c5cc68621a982040fb541d02f1d68e96a23049 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Fri, 28 Nov 2025 22:13:49 +0000 Subject: [PATCH] version1 --- core/__pycache__/models.cpython-311.pyc | Bin 209 -> 1009 bytes core/__pycache__/urls.cpython-311.pyc | Bin 347 -> 348 bytes core/__pycache__/views.cpython-311.pyc | Bin 1364 -> 1781 bytes core/migrations/0001_initial.py | 25 +++ .../__pycache__/0001_initial.cpython-311.pyc | Bin 0 -> 1258 bytes core/models.py | 10 +- core/templates/base.html | 26 ++- core/templates/core/index.html | 184 ++++-------------- core/urls.py | 4 +- core/views.py | 51 ++--- static/css/custom.css | 19 +- staticfiles/css/custom.css | 36 ++-- 12 files changed, 165 insertions(+), 190 deletions(-) create mode 100644 core/migrations/0001_initial.py create mode 100644 core/migrations/__pycache__/0001_initial.cpython-311.pyc diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b9d5171b2bb0d207f045e07f9fbbb95a64..76378c28908f193b34ec076636d4047f7d208379 100644 GIT binary patch literal 1009 zcmah|y-(Xf6u*mY5`rC?G^$jTB7~q)swk0Ah747gwn1tO3oP|=GQNW(b!>We%7;35 zKq>=6HvR)j1p{;cf{uygA@bUZEmb-(^_`s{6)N@Fe)oRw`#sxVH7$*Rx`k)W_ZXp{ z0!&C53!@qcr-&koE!4(3#wdYS5ltK+DlyzjOajg%gf8HTNtdX+fr`qtfJGcmwH?YV z*BqOpW8yse4)7E)q+^QoL;^9XB~KhFzD%4!a~JT$q$`of)C8Y_a4`W$Pu_`_?!~A6 z>oFa9M9UG0seGy2>0yRW9U)z%Nf58~em!_Kw%Mrl8scooaME zhuF>@F(@@}X925_#U@4%fSsbxs0C+CkQ=W&SrZc24q%h_%Y=G)Yb5iY! aIDle|KwK<4c@DD__XP$SASz-5iU0sA${?Zu diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 1f807fae1897c89361c99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Kas{Dw$^;=RQD&BMM@dKnXu6&#BpoBOa|_9wW=9a?1n3f@#hADt(l!D*nQj6H zAGs?&^w0Rn{}0SUjLFSi6MXu`)m*yjX<-BnIRTokE;e*hgkmm=?1Om~w?*nv;ITuY zIHV(#`}Z12pv_;Uh4k)K(teJik-&}Jb`D*zwUEL`uI zX%PaQPsVZ7Cl2iq|6wC9GG^?`G=*lGFbcyS1z9)EUxrpsf$7t)nIc~Mv?eEN4qN{^LCg(F| zQt6tBH4e#J}8=lfx)d6s;$%ng&fjFv89SZ=yzu>`Smu?R$DOcpb6i;sE33TFniQ||TKk0> z*4k&AytY2Bt%tRBUbs6c)_DEai&)i$jd6V=tZ(qb=A`%yuiif1539FdFY#(; zT {% endif %} {% load static %} - - {% block head %}{% endblock %} + + + + + {{ project_name }} + + + + + diff --git a/core/templates/core/index.html b/core/templates/core/index.html index faec813..65b03a0 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,145 +1,45 @@ -{% extends "base.html" %} - -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} - - - - -{% endblock %} +{% extends 'base.html' %} +{% load static %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… +
+

Wellness Stories

+ +
+ {% for story in stories %} +
+
+
+
+ +
{{ story.title }}
+
+

{{ story.content|truncatewords:50 }}

+
+ {{ story.created_at|date:"F d, Y" }} +
+ - + - +
+
+
+
+
+ {% endfor %}
-

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" }} -

-
-
-
- Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC) -
-{% endblock %} \ No newline at end of file + + + +{% endblock %} + +{% block extra_js %} + +{% endblock %} diff --git a/core/urls.py b/core/urls.py index 6299e3d..8e0d0ae 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,7 +1,7 @@ from django.urls import path -from .views import home +from .views import index urlpatterns = [ - path("", home, name="home"), + path("", index, name="index"), ] diff --git a/core/views.py b/core/views.py index c9aed12..930e74b 100644 --- a/core/views.py +++ b/core/views.py @@ -1,25 +1,32 @@ -import os -import platform - -from django import get_version as django_version from django.shortcuts import render -from django.utils import timezone +from .models import Story +def index(request): + # Create sample stories if they don't exist + if not Story.objects.exists(): + stories_data = [ + { + 'title': 'Feeling Overwhelmed', + 'content': 'Lately, I\'ve been feeling really overwhelmed with work and personal life. It feels like I\'m constantly juggling a million things and I\'m afraid I\'m going to drop the ball on something important.', + 'author_name': 'Anxious Panda', + 'author_avatar': '🐼' + }, + { + 'title': 'Struggling to find motivation', + 'content': 'I used to be so passionate about my hobbies, but now I can\'t seem to find the motivation to do anything. I just feel kind of empty and I don\'t know how to get that spark back.', + 'author_name': 'Lazy Lion', + 'author_avatar': '🦁' + }, + { + 'title': 'Dealing with a difficult friendship', + 'content': 'I have a friend who is constantly negative and it\'s starting to bring me down. I want to be there for them, but I also need to protect my own mental health. How do I find that balance?', + 'author_name': 'Confused Cat', + 'author_avatar': '🐱' + } + ] -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) + for story_data in stories_data: + Story.objects.create(**story_data) + + stories = Story.objects.all().order_by('-created_at') + return render(request, 'core/index.html', {'stories': stories}) \ No newline at end of file diff --git a/static/css/custom.css b/static/css/custom.css index 925f6ed..f1e0848 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,4 +1,19 @@ -/* Custom styles for the application */ body { - font-family: system-ui, -apple-system, sans-serif; + background-color: var(--bg-light); } + +.card { + border: none; + border-radius: 15px; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); +} + +.card-title { + color: var(--dark-color); + font-weight: 600; +} + +.story-author { + font-size: 1.2rem; + font-weight: bold; +} \ No newline at end of file diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index 108056f..f1e0848 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -1,21 +1,19 @@ - -:root { - --bg-color-start: #6a11cb; - --bg-color-end: #2575fc; - --text-color: #ffffff; - --card-bg-color: rgba(255, 255, 255, 0.01); - --card-border-color: rgba(255, 255, 255, 0.1); -} body { - margin: 0; - font-family: 'Inter', sans-serif; - background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end)); - color: var(--text-color); - display: flex; - justify-content: center; - align-items: center; - min-height: 100vh; - text-align: center; - overflow: hidden; - position: relative; + background-color: var(--bg-light); } + +.card { + border: none; + border-radius: 15px; + box-shadow: 0 4px 6px rgba(0,0,0,0.1); +} + +.card-title { + color: var(--dark-color); + font-weight: 600; +} + +.story-author { + font-size: 1.2rem; + font-weight: bold; +} \ No newline at end of file