From b7f4c6b9fa27f017bb2df3a6c4fd0c4d3e78142f Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 2 Nov 2025 16:46:22 +0000 Subject: [PATCH] 1.1 --- core/__pycache__/admin.cpython-311.pyc | Bin 212 -> 361 bytes core/__pycache__/models.cpython-311.pyc | Bin 209 -> 1307 bytes core/__pycache__/urls.cpython-311.pyc | Bin 347 -> 449 bytes core/__pycache__/views.cpython-311.pyc | Bin 1364 -> 925 bytes core/admin.py | 2 + core/models.py | 12 +- core/templates/base.html | 64 +++++++- core/templates/core/index.html | 191 ++++++------------------ core/urls.py | 6 +- core/views.py | 31 ++-- static/css/custom.css | 144 ++++++++++++++++++ 11 files changed, 268 insertions(+), 182 deletions(-) create mode 100644 static/css/custom.css diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index cd6f855b12f4883b1ba9de01c54245c53aacd714..470043bc3680df424fa642596f891805ea6a3deb 100644 GIT binary patch delta 267 zcmcb@_>!r9IWI340}!n0V$UoA(vLwL7+{7nJ_i9A(-~42QW$d>av7r-85vTTQkZj? za+#x;85vR;vshqS7O=ut$aE_6GDZf5)j$jZK>aMi44SMjFF^`G zyx{E2oE$$*wu%0tvbWfB^HWlDii}Iix(&k(pc<1 qalMr34F<^zsOSS510!1t*L4QrOANvjTrV<6U15;A07FIGK&=2Ri8itT delta 135 zcmaFKbcHcxIWI340}y=Q^((_3NIwQ~V1NnA_$&luOlL@8NMX!j$YqRTWMoKT3TDt` zehE^b$#{!3F(o%M&rg%-7GFwMVqSW_UUGh3Nl|7}5i?N1#Pg0^96*{8h>K+>OEF4u NUtmxGq9Qh+2mphD9C-i$ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b9d5171b2bb0d207f045e07f9fbbb95a64..54eb752d312a662e840b47bb6ed49ffda698ffe6 100644 GIT binary patch literal 1307 zcmZuxy-(Xf6hFstzHkgqQNM&lg`iagN~DT`p{i6tL4r056jfPH#&;wJ$4<|V_)v!o z9Z=Pw8*3*@3j;%k{t1kUaBW**I097yJ4B?%uuo-S0i+V?LilFh0Lc zTfZfQz6lTy<KmB9B1KdXxRV9L|i3FnZ-}FQ}P8u8ytCrn>sbW&QqRP@rntabsY@yQJ->^ zQQPn-!H&_OXW~L<2{5&oQBjU^5UXbS9@hvpt%hOarfrzi<7q zTi753a3;oPUt`EBd{NemAu#*sHQIo0G=RTUfsKl9`8EY7=}~*#6FctxDwXSQgO*!s zEyr(_={7atG*;en*{0V7E@jhYv>dfXsky_`7<)d$csCykQo4kqAfC8p8}$ZnyxZ+$ z?p%n|E5!oO;7|pOc@AU9)Uqk~D#ou`hAs5Lm{DjzT_^_M8h~5p2ILs3b-0uH+>d4-FppG2M9d)X!P6g^z z`)RK*_WpiQ80!|sgTi=wsi%$Ztq0oZhvZ4>i+1|5qpfze)j(TqFZ9$=v48aN;aB5y zxT99OY9&xBkVBt%e>2c0PNqBhOjn-?^qKZzJbCDM^y#iX9q7~T#q*@3+&xFvO>_mp zzEVu_EZH!enp+}kk=l1JvFSQKv(`$`R`pU;=tx!Nx%e}PZvQ|?&{yPF=229~$7~W7 rL??L|%(*N{QV)%E{(X9Avh(kAp3F)>`MTMgfA{Q%nE&~o#gM=sSz}3O literal 209 zcmZ3^%ge<81S>LrWmp2~#~=<2FhLogg@BCd3@HpLj5!Rsj8Tk?3@J>(44TX@K?*b( zZ?Wa(r=;c-`)M-W;!Md(%uCPLOGzqX21>4E_zY6>OHV%|KQ~psG^sSNq*On(A~m_R zB)>?%JijQrxF9h(RX;huC{-U~j9x+IFAf_ZyEG@&u80Guoe_wOWr4&8W=2NF8w@fR Ku%RM0pb7xTsWln^ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 1f807fae1897c89361c99c5e868a26d00799b73f..e637f39beadbafb89ab68cadb8345bd1638cca3c 100644 GIT binary patch literal 449 zcmZurJxc>Y5S_i-yL=G?HiFosGax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PRlpL2>m0JfI>sz+l$SscSs^=|k4VB6wxYJ2mwh>6 zP1s6a0Xh0B%Et_88>QrbMYzqB#N#E*3Oks3CUHQODRvA@K~k7$;|6iCE(zZu#bJlk z(8(RJK1WUTVt6pV9fEo^GQIeJgpqaJXHRNMhV;}glZK3tBN^en5Q~o7QAND#(>piA zMx+^HvEUS;@pC3}9#TaPq;a2SxGAxj;0&RP639l>kPjiNqhJ8&1AY_l`WecBvKL`< zK_mp-GGfihA=Gg+ss)BI*;w21yRNY^)~upqm`+Labc(T~)l62_EK-D_XmFxoXUC+( zv9ZH61GA!Od6`C{=(;tt(Wqy1VsquT>;5P-9=l@|nMF#b-iU4DnzqgA7Upvgw;tSE z&pj%9yS|;<+IaYA=m{Nfc9(G8LP76tKq2MQk+Efgahls~zxB^Y15iq2p ze1hU%s@P+67IZo#*hj*3LMINxyUY_2H9@DJWy{3I+3Mq}!>U=li}flaG+QI|spl4T zob~hDF>%eyxOE;8-gFVJ3n+TO18bo->ila}J65%hy4+QlU#ly}>PkmVchz)jqo<`_ z{(P+6Xlpn2)BEXH3$5?^ljojY`z`Y<)5;BG^zo;?`Q?6crISo|lj(kPxtsi=lf2$d zUhiF8=v}zfU%GryZ>QE?g*r>Q?ozJ5xODJS`|4MJebZUI)m^+bn2pWI0|cyf_w9L< zIJbYby>RVisS{uA##h^s)e}e(07x&wM(2TX`E06G0Q9V<>X{|ul?i3g0?%(HPYlgf z1`zb;;Me{qqL;+gPk@~&H*I26ExbmrfGYk1-V - + - {% block title %}Knowledge Base{% endblock %} - {% block head %}{% endblock %} - - - {% block content %}{% endblock %} - - + + SkillXchange - Share Your Skills + + + + + + + + + + + + + + + + + +
+ {% block content %} + {% endblock %} +
+ +
+
+

© {% now "Y" %} SkillXchange. All Rights Reserved.

+
+
+ + + + + \ No newline at end of file diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 0a3f404..2d8f2cc 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,154 +1,47 @@ {% extends "base.html" %} - -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} -{% if project_description %} - - - -{% endif %} -{% if project_image_url %} - - -{% endif %} - - - - -{% endblock %} +{% load static %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… +
+
+
+
+

Share Your Passion. Shape the Future.

+

Join a community of creators and learners. Upload your skills, share your knowledge, and start earning today.

+ Explore Skills +
+
-

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) -
+ + +
+
+

Latest Skills

+ {% if skills %} +
+ {% for skill in skills %} +
+
+
+
{{ skill.title }}
+

{{ skill.description|truncatewords:20 }}

+

By {{ skill.creator.get_full_name|default:skill.creator.username }}

+
+ +
+
+ {% endfor %} +
+ {% else %} +
+

The Stage is Set!

+

No skills have been shared yet. Be the first to inspire others.

+ Become a Creator +
+ {% endif %} +
+
{% endblock %} \ No newline at end of file diff --git a/core/urls.py b/core/urls.py index 6299e3d..492129b 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, article_detail urlpatterns = [ - path("", home, name="home"), + path("", index, name="index"), + path("skill//", article_detail, name="article_detail"), ] diff --git a/core/views.py b/core/views.py index c9aed12..a03c6d0 100644 --- a/core/views.py +++ b/core/views.py @@ -1,25 +1,14 @@ -import os -import platform - -from django import get_version as django_version 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() +from .models import Skill +def index(request): + """Render the landing screen with a list of skills.""" + skills = Skill.objects.all().order_by('-created_at') 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", ""), + 'skills': skills, } - return render(request, "core/index.html", context) + return render(request, 'core/index.html', context) + +def article_detail(request, pk): + # This is a placeholder for a future skill detail page + return render(request, 'core/article_detail.html') diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..66fe762 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,144 @@ +/* +SkillXchange Custom Stylesheet +------------------------------ +Palette: +- Primary: #1A2E4C (Deep Blue) +- Secondary: #FFFFFF (White) +- Accent: #FFC107 (Vibrant Yellow) +- Background/Neutral: #F8F9FA (Light Gray) +- Text: #212529 + +Typography: +- Headings: 'Poppins', sans-serif +- Body: 'Roboto', sans-serif +*/ + +body { + font-family: 'Roboto', sans-serif; + color: #212529; + background-color: #FFFFFF; +} + +h1, h2, h3, h4, h5, h6, .navbar-brand, .hero-title, .section-title, .card-title { + font-family: 'Poppins', sans-serif; + font-weight: 600; +} + +/* Navbar */ +.navbar { + border-bottom: 1px solid #eee; +} + +.navbar-brand { + font-weight: 700; + font-size: 1.5rem; + color: #1A2E4C !important; +} + +.btn-primary { + background-color: #1A2E4C; + border-color: #1A2E4C; +} + +.btn-primary:hover { + background-color: #2E4A6E; + border-color: #2E4A6E; +} + +.btn-accent { + background-color: #FFC107; + border-color: #FFC107; + color: #1A2E4C; + font-weight: 500; +} + +.btn-accent:hover { + background-color: #ffca2c; + border-color: #ffca2c; + color: #1A2E4C; +} + + +/* Hero Section */ +.hero-section { + background: linear-gradient(to right, #1A2E4C, #2E4A6E); + color: white; + padding: 6rem 0; + text-align: center; +} + +.hero-title { + font-size: 3.5rem; + font-weight: 700; + margin-bottom: 1rem; +} + +.hero-subtitle { + font-size: 1.25rem; + font-weight: 400; + color: rgba(255, 255, 255, 0.8); + margin-bottom: 2rem; +} + +/* Skills Section */ +.section-title { + color: #1A2E4C; + font-weight: 700; +} + +.skill-card { + border: 1px solid #e9ecef; + border-radius: 0.5rem; + transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; + box-shadow: 0 4px 6px rgba(0,0,0,0.05); +} + +.skill-card:hover { + transform: translateY(-5px); + box-shadow: 0 12px 20px rgba(0,0,0,0.08); +} + +.skill-card .card-body { + padding: 1.5rem; +} + +.skill-card .card-title { + color: #1A2E4C; + margin-bottom: 0.75rem; +} + +.skill-card .card-creator { + font-size: 0.9rem; + color: #6c757d; + margin-bottom: 1rem; +} + +.skill-card .card-footer { + background-color: #f8f9fa; + border-top: 1px solid #e9ecef; + padding: 0.75rem 1.5rem; + display: flex; + justify-content: space-between; + align-items: center; +} + +.skill-price { + font-weight: 700; + font-size: 1.1rem; + color: #1A2E4C; +} + +.btn-primary-outline { + border: 1px solid #1A2E4C; + color: #1A2E4C; +} + +.btn-primary-outline:hover { + background-color: #1A2E4C; + color: white; +} + +/* Footer */ +footer { + background-color: #f8f9fa !important; +}