diff --git a/config/__pycache__/__init__.cpython-311.pyc b/config/__pycache__/__init__.cpython-311.pyc index 3d6501c..9c08627 100644 Binary files a/config/__pycache__/__init__.cpython-311.pyc and b/config/__pycache__/__init__.cpython-311.pyc differ diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index dadfaa7..6a16ad4 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc index 139db10..ccb158d 100644 Binary files a/config/__pycache__/urls.cpython-311.pyc and b/config/__pycache__/urls.cpython-311.pyc differ diff --git a/config/__pycache__/wsgi.cpython-311.pyc b/config/__pycache__/wsgi.cpython-311.pyc index 79ce690..22d886f 100644 Binary files a/config/__pycache__/wsgi.cpython-311.pyc and b/config/__pycache__/wsgi.cpython-311.pyc differ diff --git a/core/__pycache__/__init__.cpython-311.pyc b/core/__pycache__/__init__.cpython-311.pyc index 3b7774e..9af2171 100644 Binary files a/core/__pycache__/__init__.cpython-311.pyc and b/core/__pycache__/__init__.cpython-311.pyc differ diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index 5e41572..fcac58e 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/apps.cpython-311.pyc b/core/__pycache__/apps.cpython-311.pyc index 6435d92..23038c0 100644 Binary files a/core/__pycache__/apps.cpython-311.pyc and b/core/__pycache__/apps.cpython-311.pyc differ diff --git a/core/__pycache__/forms.cpython-311.pyc b/core/__pycache__/forms.cpython-311.pyc index f6e5c4e..eb440a2 100644 Binary files a/core/__pycache__/forms.cpython-311.pyc and b/core/__pycache__/forms.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 5b41fe1..847cdb9 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 4e4f113..71c3b90 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 9d0ddd8..44bbadb 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/migrations/__pycache__/0001_initial.cpython-311.pyc b/core/migrations/__pycache__/0001_initial.cpython-311.pyc index 64d8a55..3c71e6e 100644 Binary files a/core/migrations/__pycache__/0001_initial.cpython-311.pyc and b/core/migrations/__pycache__/0001_initial.cpython-311.pyc differ diff --git a/core/migrations/__pycache__/__init__.cpython-311.pyc b/core/migrations/__pycache__/__init__.cpython-311.pyc index 58b1c14..6877538 100644 Binary files a/core/migrations/__pycache__/__init__.cpython-311.pyc and b/core/migrations/__pycache__/__init__.cpython-311.pyc differ diff --git a/core/templates/base.html b/core/templates/base.html new file mode 100644 index 0000000..8c2ec0e --- /dev/null +++ b/core/templates/base.html @@ -0,0 +1,14 @@ + + + + + {% block title %}AutoTask{% endblock %} + + + + {% block head %}{% endblock %} + + + {% block content %}{% endblock %} + + diff --git a/core/templates/core/article_detail.html b/core/templates/core/article_detail.html new file mode 100644 index 0000000..8820990 --- /dev/null +++ b/core/templates/core/article_detail.html @@ -0,0 +1,14 @@ +{% extends 'base.html' %} + +{% block title %}{{ article.title }}{% endblock %} + +{% block content %} +
+

{{ article.title }}

+

Published on {{ article.created_at|date:"F d, Y" }}

+
+
+ {{ article.content|safe }} +
+
+{% endblock %} diff --git a/core/templates/core/index.html b/core/templates/core/index.html index f4e4991..4a85b52 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -1,157 +1,56 @@ - - +{% extends 'base.html' %} +{% load static %} - - - - {{ project_name }} - {% if project_description %} - - - - {% endif %} - {% if project_image_url %} - - - {% endif %} - - - - - - -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

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

-
- -
- +
+

Wallet Balance

+
{{ wallet.balance_btc|floatformat:8 }} BTC
+
~ ${{ wallet.balance_usd|floatformat:2 }} USD
+
- \ No newline at end of file +
+

Recent Transactions

+
+ + + + + + + + + + {% for tx in transactions %} + + + + + + {% empty %} + + + + {% endfor %} + +
DescriptionAmount (BTC)Timestamp
{{ tx.description }} + {% if tx.type == 'credit' %}+{% endif %}{{ tx.amount_btc|floatformat:8 }} + {{ tx.timestamp }}
No transactions yet.
+
+
+ + + +{% 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 c1a6d45..ff647f5 100644 --- a/core/views.py +++ b/core/views.py @@ -11,21 +11,25 @@ from .forms import TicketForm from .models import Ticket -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() +def index(request): + """Render the main dashboard with wallet and transaction data.""" + # Mock data for the wallet and transactions + wallet_data = { + 'balance_btc': 0.00123456, + 'balance_usd': 50.12 + } + transactions_data = [ + {'id': 'a1b2', 'description': 'Automated Task Reward', 'amount_btc': 0.00005, 'type': 'credit', 'timestamp': '2025-10-25 10:00:00'}, + {'id': 'c3d4', 'description': 'Strategy Execution Fee', 'amount_btc': -0.000005, 'type': 'debit', 'timestamp': '2025-10-25 09:30:00'}, + {'id': 'e5f6', 'description': 'Automated Task Reward', 'amount_btc': 0.00007, 'type': 'credit', 'timestamp': '2025-10-24 18:00:00'}, + {'id': 'g7h8', 'description': 'VIP ★2 Upgrade', 'amount_btc': -0.0005, 'type': 'debit', 'timestamp': '2025-10-24 12:00:00'}, + {'id': 'i9j0', 'description': 'Initial Deposit', 'amount_btc': 0.001, 'type': 'credit', 'timestamp': '2025-10-23 20:15:00'}, + ] 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", ""), + "wallet": wallet_data, + "transactions": transactions_data, + "project_name": "AutoTask", } return render(request, "core/index.html", context) diff --git a/static/css/custom.css b/static/css/custom.css new file mode 100644 index 0000000..da49097 --- /dev/null +++ b/static/css/custom.css @@ -0,0 +1,86 @@ + +:root { + --color-background: #1a1a1d; + --color-primary-accent: #00ffff; + --color-text: #c5c6c7; + --color-credit: #39ff14; + --color-debit: #ff0033; + --font-headings: 'Orbitron', sans-serif; + --font-body: 'Roboto Mono', monospace; +} + +body { + background-color: var(--color-background); + color: var(--color-text); + font-family: var(--font-body); + margin: 0; + padding: 2rem; +} + +h1, h2, h3, h4, h5 { + font-family: var(--font-headings); + color: var(--color-primary-accent); + text-shadow: 0 0 5px var(--color-primary-accent); +} + +.dashboard-container { + max-width: 960px; + margin: 0 auto; +} + +.wallet-card { + background-color: #2c2c31; + border: 1px solid var(--color-primary-accent); + border-radius: 8px; + padding: 2rem; + margin-bottom: 2rem; + box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); +} + +.wallet-card h2 { + margin-top: 0; +} + +.wallet-balance-btc { + font-size: 2.5rem; + font-weight: 700; + color: var(--color-primary-accent); + text-shadow: 0 0 10px var(--color-primary-accent); +} + +.wallet-balance-usd { + font-size: 1.2rem; + color: var(--color-text); + opacity: 0.8; +} + +.transaction-table { + width: 100%; + border-collapse: collapse; + background-color: #2c2c31; + border-radius: 8px; + overflow: hidden; + box-shadow: 0 0 15px rgba(0, 255, 255, 0.1); +} + +.transaction-table th, +.transaction-table td { + padding: 1rem; + text-align: left; + border-bottom: 1px solid #444; +} + +.transaction-table th { + font-family: var(--font-headings); + color: var(--color-primary-accent); +} + +.text-credit { + color: var(--color-credit); + font-weight: 700; +} + +.text-debit { + color: var(--color-debit); + font-weight: 700; +}