diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index cd6f855..31f41f5 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..f101099 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..8cca099 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..60d600c 100644 --- a/core/admin.py +++ b/core/admin.py @@ -1,3 +1,4 @@ from django.contrib import admin +from .models import Achievement -# Register your models here. +admin.site.register(Achievement) \ No newline at end of file diff --git a/core/models.py b/core/models.py index 71a8362..8e78a89 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,11 @@ from django.db import models -# Create your models here. +class Achievement(models.Model): + title = models.CharField(max_length=200) + student_name = models.CharField(max_length=100) + event_name = models.CharField(max_length=200) + achievement_level = models.CharField(max_length=100) # e.g., "Juara 1 Nasional" + date = models.DateField() + + def __str__(self): + return self.title \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 788576e..b0db57d 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -1,11 +1,60 @@ - + - {% block title %}Knowledge Base{% endblock %} + + {% block title %}SIMAPRES{% endblock %} + + + + + + + + + + + {% load static %} + + {% block head %}{% endblock %} - - - {% block content %}{% endblock %} - - + + + + + +
+ {% block content %}{% endblock %} +
+ + + + + + {% 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" }} -

-
-
- -{% 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; +}