diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc index 28817aa..7da66f3 100644 Binary files a/config/__pycache__/urls.cpython-311.pyc and b/config/__pycache__/urls.cpython-311.pyc differ diff --git a/config/urls.py b/config/urls.py index bcfc074..417476b 100644 --- a/config/urls.py +++ b/config/urls.py @@ -21,6 +21,7 @@ from django.conf.urls.static import static urlpatterns = [ path("admin/", admin.site.urls), + path("accounts/", include("django.contrib.auth.urls")), path("", include("core.urls")), ] diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc new file mode 100644 index 0000000..ea4a46c Binary files /dev/null and b/core/__pycache__/forms.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 1f807fa..d62225f 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf..455ad96 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/forms.py b/core/forms.py new file mode 100644 index 0000000..1037e18 --- /dev/null +++ b/core/forms.py @@ -0,0 +1,10 @@ +from django.contrib.auth.forms import UserCreationForm +from django import forms + +class SignUpForm(UserCreationForm): + class Meta(UserCreationForm.Meta): + fields = ("username", "email") + + def __init__(self, *args, **kwargs): + super(SignUpForm, self).__init__(*args, **kwargs) + self.fields['email'].required = True diff --git a/core/templates/base.html b/core/templates/base.html index 1e7e5fb..7bcaa84 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -14,6 +14,10 @@ {% endif %} {% load static %} + + + + {% block head %}{% endblock %} diff --git a/core/templates/core/index.html b/core/templates/core/index.html index faec813..c8f3132 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,145 +1,16 @@ -{% 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… +
+
+
+
+

Reflect and Grow

+

Your personal AI-powered self-reflection companion. Understand your year, set your goals, and unlock your potential.

+ Get Started +
+
-

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/templates/registration/signup.html b/core/templates/registration/signup.html new file mode 100644 index 0000000..b858ff6 --- /dev/null +++ b/core/templates/registration/signup.html @@ -0,0 +1,10 @@ +{% extends 'base.html' %} + +{% block content %} +

Sign up

+
+ {% csrf_token %} + {{ form.as_p }} + +
+{% endblock %} diff --git a/core/urls.py b/core/urls.py index 6299e3d..46aedb3 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,7 +1,8 @@ from django.urls import path -from .views import home +from . import views urlpatterns = [ - path("", home, name="home"), + path("", views.home, name="home"), + path('signup/', views.signup, name='signup'), ] diff --git a/core/views.py b/core/views.py index c9aed12..33eef23 100644 --- a/core/views.py +++ b/core/views.py @@ -2,12 +2,14 @@ import os import platform from django import get_version as django_version -from django.shortcuts import render +from django.contrib.auth import login +from django.shortcuts import redirect, render from django.utils import timezone +from core.forms import SignUpForm def home(request): - """Render the landing screen with loader and environment details.""" + """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() @@ -23,3 +25,14 @@ def home(request): "project_image_url": os.getenv("PROJECT_IMAGE_URL", ""), } return render(request, "core/index.html", context) + +def signup(request): + if request.method == 'POST': + form = SignUpForm(request.POST) + if form.is_valid(): + user = form.save() + login(request, user) + return redirect('home') + else: + form = SignUpForm() + return render(request, 'registration/signup.html', {'form': form}) diff --git a/static/css/custom.css b/static/css/custom.css index 925f6ed..de52d89 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,4 +1,24 @@ -/* Custom styles for the application */ body { - font-family: system-ui, -apple-system, sans-serif; + font-family: 'Roboto', sans-serif; + background-color: #f0f0f0; } + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; +} + +.hero-section { + background: linear-gradient(45deg, #1a1a2e, #16213e); + color: #ffffff; + padding: 100px 0; +} + +.btn-primary { + background-color: #e94560; + border-color: #e94560; +} + +.btn-primary:hover { + background-color: #d43d51; + border-color: #d43d51; +} \ No newline at end of file diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index 108056f..de52d89 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -1,21 +1,24 @@ - -: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; + font-family: 'Roboto', sans-serif; + background-color: #f0f0f0; } + +h1, h2, h3, h4, h5, h6 { + font-family: 'Poppins', sans-serif; +} + +.hero-section { + background: linear-gradient(45deg, #1a1a2e, #16213e); + color: #ffffff; + padding: 100px 0; +} + +.btn-primary { + background-color: #e94560; + border-color: #e94560; +} + +.btn-primary:hover { + background-color: #d43d51; + border-color: #d43d51; +} \ No newline at end of file