From 4a4f6a59ca6f89069bc25d67d40cc677d4c8b362 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 3 Nov 2025 14:31:15 +0000 Subject: [PATCH] version 1.0 --- core/__pycache__/admin.cpython-311.pyc | Bin 212 -> 365 bytes core/__pycache__/models.cpython-311.pyc | Bin 209 -> 992 bytes core/__pycache__/views.cpython-311.pyc | Bin 1364 -> 663 bytes core/admin.py | 3 +- core/models.py | 10 +- core/templates/base.html | 63 +++++++- core/templates/core/index.html | 191 +++++------------------- core/views.py | 26 +--- static/css/custom.css | 87 +++++++++++ 9 files changed, 200 insertions(+), 180 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..31f41f5e03a3701edaffba23b978ae1f971e325e 100644 GIT binary patch delta 271 zcmcb@_?D@DIWI340}!av7r-85vTTQkZj? za+#x;85vR;vshqS7O=ut$aE_6GDZf5)j$jZK>aMi44SMjRX}`A##^k3DY=<>FF^`` zJZ{J2jLg)s)ZEm(5%+(3;0Z)iDF delta 162 zcmaFMbcL~gIWI340}y=Q^((_3NIwQ~V1NnA_$&luOlL@8NMX!j$YqRTWMoKT3TDt` zehE^b$#{!3F(o%M&rg%-7GFwMVqSW_UUGh3Nl|7}5i?N1N`}uMb-#4=GxBp&^-GgV n^GZtfQ!7%FODBF%V1>|_N-Deeml3P4oE1{47Rsih`b diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b9d5171b2bb0d207f045e07f9fbbb95a64..f1010999bf6e68e5b98f83ad746052735946758c 100644 GIT binary patch literal 992 zcmZuvy>HV%6n_`nX+B&avOs~f5>+MCNKvAyQk4NAp_U>cnx&hUlbbu5q)t-&QA))S zi4GkYIv|z5pcIvX8U6uANAh5KW$G3brcS(z;{XlMzIX54`@PS*kF&EGKzjQv)pQBK z523`QjD=wpg;QX_hzV_?69Nf%3M_F1OyZ=Kh#k%(fD2p^=@OH-pr~95wMfEbyUVy~ z*T?437K4XhQ9T6?I$@wE62PUF90M8ooH)bcE^tMpE7uUx6e4*IF&$&(8e%#|YJ^C~ zS~4*++>yr6{@!5G91ImJ%P z`r6{T?P)80ZN=ACde4L0!pR*!w{X7Y<(B)oWk0vvdluxEJ|zA8(w8+aU+w3se!l9- zw}Wiqc-7Aq`q_CuJKtL$$V9m}fN2&LDe9{gLrWmp2~#~=<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__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf286a519cf1754ac97038f9f1e4605fbf2..8cca099aaff34e3b3725c0d9a6a4326c24538fce 100644 GIT binary patch literal 663 zcmZWm&1(}u6o0edn8ZjH3LgKo(7SYWftC}N1^&tt#k*4fb5Qa#1 zsGTC_S&mx>5;u1S<~nUFHnT94mD_*$%0V^Yg83mX)NgcE9C?Pwd1p57^jM%|=5T?_ zzUUl^e5R*owqUPPCY5lCx_~E&^_9%C^?Lns-S6_4`DrIjRO+)n3sS{}f562{xz`Su zUjXih>_9g54l}cW7T2-cz$>4i8o_t>_SAjw&Go;!{%8B#-I%%?pYwsRTZaw^l)iXCt@^}vas{-RU DZ^N2g literal 1364 zcmZ`(&1)M+6ra_{dS%J>I!@|TuH%hUh$T{~CE!96oTjQ1oHkCdQ%ZHHPf-Q6#oP5Eq{V!1Q7#*Ku^61OfEk4%~~s}guETzy!YnKoA>c! z|CpMZL_mL+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 title %}SIMAPRES{% endblock %} + + + + + + + + + + + {% load static %} + + {% block head %}{% endblock %} - - - {% block content %}{% endblock %} - - + + + + + +
+ {% block content %}{% endblock %} +
+ +
+
+

© 2025 SIMAPRES. All Rights Reserved.

+
+
+ + + + {% block scripts %}{% endblock %} + + \ No newline at end of file diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 0a3f404..c6a1288 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,154 +1,45 @@ -{% extends "base.html" %} +{% extends 'base.html' %} +{% load static %} -{% block title %}{{ project_name }}{% endblock %} - -{% block head %} -{% if project_description %} - - - -{% endif %} -{% if project_image_url %} - - -{% endif %} - - - - -{% endblock %} +{% block title %}SIMAPRES - Sistem Informasi Prestasi Mahasiswa{% endblock %} {% block content %} -
-
-

Analyzing your requirements and generating your app…

-
- Loading… + +
+
+

Sistem Informasi Prestasi Mahasiswa

+

Wadah untuk mencatat, mengelola, dan mempublikasikan prestasi mahasiswa.

+ Ajukan Proposal
-

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

Prestasi Terbaru

+ {% if achievements %} +
+ {% for achievement in achievements %} +
+
+
+
{{ achievement.title }}
+
{{ achievement.event_name }}
+

{{ achievement.achievement_level }}

+

Diraih oleh: {{ achievement.student_name }} pada {{ achievement.date|date:"d M Y" }}

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

Belum ada prestasi yang dicatat.

+
+ {% endif %} + +
+
+{% endblock %} diff --git a/core/views.py b/core/views.py index c9aed12..556b2cc 100644 --- a/core/views.py +++ b/core/views.py @@ -1,25 +1,9 @@ -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 Achievement +def index(request): + achievements = Achievement.objects.order_by('-date')[:6] 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", ""), + 'achievements': achievements } - return render(request, "core/index.html", context) + return render(request, "core/index.html", context) \ No newline at end of file diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..d86949e --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,87 @@ +/* +Palette: +- Primary: #0D47A1 (Deep Blue) +- Secondary: #FFFFFF (White) +- Accent: #FFC107 (Amber/Gold) +- Neutral/Background: #F4F6F8 (Light Gray) +- Text: #212529 (Dark Gray) +*/ + +/* Typography */ +body { + font-family: 'Roboto', sans-serif; + background-color: #F4F6F8; +} + +h1, h2, h3, h4, h5, h6, .navbar-brand { + font-family: 'Poppins', sans-serif; +} + +/* Navbar */ +.navbar-brand { + font-weight: 700; + color: #0D47A1 !important; +} + +/* Hero Section */ +.hero-section { + background: linear-gradient(45deg, #0D47A1, #1976D2); + color: white; + padding: 6rem 0; + margin-bottom: 4rem; +} + +.hero-title { + font-size: 3.5rem; + font-weight: 700; +} + +.hero-subtitle { + font-size: 1.25rem; + margin-bottom: 2rem; + font-weight: 400; +} + +.btn-accent { + background-color: #FFC107; + border-color: #FFC107; + color: #212529; + font-weight: 600; + padding: 0.75rem 1.5rem; + transition: all 0.3s ease; +} + +.btn-accent:hover { + background-color: #ffca2c; + border-color: #ffca2c; + transform: translateY(-2px); + box-shadow: 0 4px 15px rgba(0,0,0,0.1); +} + +/* Section */ +.section-title { + font-weight: 600; + color: #0D47A1; +} + +/* Achievement Card */ +.achievement-card { + border: none; + border-radius: 15px; + box-shadow: 0 4px 25px rgba(0,0,0,0.08); + transition: all 0.3s ease; +} + +.achievement-card:hover { + transform: translateY(-5px); + box-shadow: 0 8px 30px rgba(0,0,0,0.12); +} + +.achievement-card .card-title { + color: #0D47A1; + font-weight: 600; +} + +.achievement-card .card-text strong { + color: #1976D2; +}