QURANIC PHRASES- Being Mumin

This commit is contained in:
Flatlogic Bot 2025-12-03 04:06:43 +00:00
parent 92f4ce7232
commit d51c6be470
7 changed files with 148 additions and 168 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

View File

@ -1,145 +1,92 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load static %}
{% block title %}{{ project_name }}{% endblock %}
{% block head %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style>
: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);
}
* {
box-sizing: border-box;
}
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;
}
body::before {
content: '';
position: absolute;
inset: 0;
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% {
background-position: 0% 0%;
}
100% {
background-position: 100% 100%;
}
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2.5rem 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
h1 {
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
font-weight: 700;
margin: 0 0 1.2rem;
letter-spacing: -0.02em;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
opacity: 0.92;
}
.loader {
margin: 1.5rem auto;
width: 56px;
height: 56px;
border: 4px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.runtime code {
background: rgba(0, 0, 0, 0.25);
padding: 0.15rem 0.45rem;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
footer {
position: absolute;
bottom: 1rem;
width: 100%;
text-align: center;
font-size: 0.85rem;
opacity: 0.75;
}
</style>
{% endblock %}
{% block content %} {% block content %}
<main> <style>
<div class="card"> @import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Amiri+Quran&display=swap');
<h1>Analyzing your requirements and generating your app…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes"> body {
<span class="sr-only">Loading…</span> background-color: #ECFDF5; /* emerald-50 */
}
.font-arabic {
font-family: 'Amiri Quran', serif;
}
.font-urdu {
font-family: 'Noto Nastaliq Urdu', serif;
}
.bg-gradient-custom-header {
background-image: linear-gradient(to right, #10B981, #0D9488);
}
.bg-gradient-custom-freq {
background-image: linear-gradient(to right, #0D9488, #10B981);
}
.bg-gradient-custom-bar {
background-image: linear-gradient(to right, #34D399, #0D9488);
}
.card-hover-effect {
transition: all 0.3s ease;
border: 2px solid #A7F3D0; /* emerald-100 */
}
.card-hover-effect:hover {
transform: scale(1.05);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
</style>
<div class="bg-gradient-custom-header text-white shadow-lg">
<div class="container-fluid max-w-7xl mx-auto px-4 py-6">
<div class="flex items-center space-x-3">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open"><path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/></svg>
<div>
<h1 class="h2 font-weight-bold">Quran Phrases</h1>
<p class="text-white-50 mb-0">Frequently repeated phrases from the Holy Quran</p>
</div>
</div>
</div>
</div>
<main class="container-fluid max-w-7xl mx-auto px-4 py-8">
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
{% for phrase in phrases %}
<div class="col">
<div class="card h-100 p-4 rounded-xl shadow-lg card-hover-effect">
<div class="d-flex justify-content-between align-items-start mb-3">
<div class="text-xl text-right flex-grow-1 text-success-emphasis font-arabic" dir="rtl" style="line-height: 1.6;">
{{ phrase.a }}
</div>
<span class="badge bg-gradient-custom-freq text-white fs-6 fw-bold px-3 py-1 rounded-pill ms-2">
{{ phrase.f }}&times;
</span>
</div>
<div class="mb-3">
<div class="d-flex align-items-start">
<span class="text-muted small fw-bold" style="width: 80px;">English:</span>
<span class="text-dark fw-semibold">{{ phrase.e }}</span>
</div>
<div class="d-flex align-items-start">
<span class="text-muted small fw-bold" style="width: 80px;">اردو:</span>
<span class="text-dark font-urdu fs-6" dir="rtl">{{ phrase.u }}</span>
</div>
<div class="d-flex align-items-start">
<span class="text-muted small fw-bold" style="width: 80px;">தமிழ்:</span>
<span class="text-dark fw-semibold">{{ phrase.t }}</span>
</div>
</div>
<div class="progress rounded-pill" style="height: 8px;">
<div class="progress-bar bg-gradient-custom-bar" role="progressbar" style="width: {{ phrase.f_width }}%" aria-valuenow="{{ phrase.f_width }}" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
{% endfor %}
</div> </div>
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
<p class="runtime">
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
</p>
</div>
</main> </main>
<footer> {% endblock %}
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
</footer>
{% endblock %}

View File

@ -1,7 +1,9 @@
from django.urls import path from django.urls import path
from .views import home from django.urls import path
from .views import index
urlpatterns = [ urlpatterns = [
path("", home, name="home"), path("", index, name="index"),
] ]

View File

@ -1,25 +1,59 @@
import os
import platform
from django import get_version as django_version
from django.shortcuts import render from django.shortcuts import render
from django.utils import timezone
def index(request):
phrases_data = [
{ "a": "إن الله", "e": "Indeed, Allah", "u": "بیشک اللہ", "t": "நிச்சயமாக அல்லாஹ்", "f": 196 },
{ "a": "الذين آمنوا", "e": "Those who believed", "u": "جو لوگ ایمان لائے", "t": "நம்பிக்கை கொண்டவர்கள்", "f": 182 },
{ "a": "في الأرض", "e": "In the earth", "u": "زمین میں", "t": "பூமியில்", "f": 170 },
{ "a": "يا أيها", "e": "O you", "u": "اے", "t": "ஓ நீங்கள்", "f": 142 },
{ "a": "السماوات والأرض", "e": "The heavens and the earth", "u": "آسمان اور زمین", "t": "வானங்களும் பூமியும்", "f": 133 },
{ "a": "الذين كفروا", "e": "Those who disbelieved", "u": "جنہوں نے کفر کیا", "t": "நிராகரித்தவர்கள்", "f": 130 },
{ "a": "يا أيها الذين", "e": "O you who", "u": "اے لوگو جو", "t": "ஓ நீங்கள் யார்", "f": 92 },
{ "a": "من قبل", "e": "Before", "u": "پہلے سے", "t": "முன்பு", "f": 92 },
{ "a": "يا أيها الذين آمنوا", "e": "O you who believed", "u": "اے ایمان والو", "t": "ஓ நம்பிக்கை கொண்டவர்களே", "f": 89 },
{ "a": "من الله", "e": "From Allah", "u": "اللہ کی طرف سے", "t": "அல்லாஹ்விடமிருந்து", "f": 88 },
{ "a": "كل شيء", "e": "Everything", "u": "ہر چیز", "t": "அனைத்தும்", "f": 85 },
{ "a": "من دون", "e": "Besides", "u": "کے سوا", "t": "தவிர", "f": 81 },
{ "a": "من بعد", "e": "After", "u": "کے بعد", "t": "பிறகு", "f": 80 },
{ "a": "في السماوات", "e": "In the heavens", "u": "آسمانوں میں", "t": "வானங்களில்", "f": 70 },
{ "a": "سبيل الله", "e": "The way of Allah", "u": "اللہ کی راہ", "t": "அல்லாஹ்வின் பாதை", "f": 65 },
{ "a": "الحياة الدنيا", "e": "The worldly life", "u": "دنیا کی زندگی", "t": "உலக வாழ்க்கை", "f": 60 },
{ "a": "يوم القيامة", "e": "Day of Resurrection", "u": "قیامت کے دن", "t": "மறுமை நாள்", "f": 60 },
{ "a": "على كل شيء", "e": "Over everything", "u": "ہر چیز پر", "t": "அனைத்தின் மீதும்", "f": 52 },
{ "a": "آمنوا وعملوا الصالحات", "e": "Believed and did righteous", "u": "ایمان لائے اور نیک عمل", "t": "நம்பிக்கை நல்லறங்கள்", "f": 50 },
{ "a": "غفور رحيم", "e": "Forgiving, Merciful", "u": "بخشنے والا مہربان", "t": "மன்னிப்பவன் கருணையாளன்", "f": 43 },
{ "a": "في سبيل الله", "e": "In the way of Allah", "u": "اللہ کی راہ میں", "t": "அல்லாஹ்வின் பாதையில்", "f": 42 },
{ "a": "الله ورسوله", "e": "Allah and His Messenger", "u": "اللہ اور اس کا رسول", "t": "அல்லாஹ்வும் அவன் தூதரும்", "f": 40 },
{ "a": "رب العالمين", "e": "Lord of the worlds", "u": "رب العالمین", "t": "அகிலங்களின் இறைவன்", "f": 35 },
{ "a": "تجري من تحتها الأنهار", "e": "Rivers flow beneath", "u": "نہریں بہتی ہیں", "t": "நதிகள் ஓடும்", "f": 34 },
{ "a": "على كل شيء قدير", "e": "Over all things competent", "u": "ہر چیز پر قادر", "t": "ஆற்றலுடையவன்", "f": 33 },
{ "a": "بني إسرائيل", "e": "Children of Israel", "u": "بنی اسرائیل", "t": "இஸ்ரவேல் மக்கள்", "f": 33 },
{ "a": "فبأي آلاء ربكما تكذبان", "e": "Which favors deny", "u": "کون سی نعمت جھٹلاؤ گے", "t": "எந்த அருட்கொடைகளை மறுப்பீர்கள்", "f": 31 },
{ "a": "أهل الكتاب", "e": "People of the Book", "u": "اہل کتاب", "t": "வேதக்காரர்கள்", "f": 31 },
{ "a": "في السماوات والأرض", "e": "In heavens and earth", "u": "آسمانوں اور زمین میں", "t": "வானங்களிலும் பூமியிலும்", "f": 31 },
{ "a": "لا إله إلا هو", "e": "No deity except Him", "u": "کوئی معبود نہیں سوائے", "t": "அவனைத் தவிர இல்லை", "f": 30 },
{ "a": "العزيز الحكيم", "e": "Exalted, the Wise", "u": "زبردست حکمت والا", "t": "வலிமை ஞானமுடையவன்", "f": 29 },
{ "a": "خلق السماوات والأرض", "e": "Created heavens and earth", "u": "آسمان زمین پیدا کیا", "t": "வானங்கள் பூமி படைத்தான்", "f": 28 },
{ "a": "إن كنتم صادقين", "e": "If you are truthful", "u": "اگر تم سچے ہو", "t": "உண்மையாளர்கள் என்றால்", "f": 28 },
{ "a": "جنات تجري من تحتها الأنهار", "e": "Gardens rivers flow", "u": "باغات نہریں بہتی ہیں", "t": "தோட்டங்கள் நதிகள் ஓடும்", "f": 26 },
{ "a": "يا موسى", "e": "O Moses", "u": "اے موسیٰ", "t": "மூசாவே", "f": 24 },
{ "a": "في الآخرة", "e": "In the Hereafter", "u": "آخرت میں", "t": "மறுமையில்", "f": 24 },
{ "a": "إن في ذلك لآيات", "e": "Indeed in that are signs", "u": "اس میں نشانیاں ہیں", "t": "அதில் அடையாளங்கள்", "f": 24 },
{ "a": "أنزل الله", "e": "Allah revealed", "u": "اللہ نے نازل کیا", "t": "அல்லாஹ் அருளினான்", "f": 24 },
{ "a": "في قلوبهم", "e": "In their hearts", "u": "ان کے دلوں میں", "t": "அவர்கள் இதயங்களில்", "f": 24 },
{ "a": "صراط مستقيم", "e": "Straight path", "u": "سیدھا راستہ", "t": "நேரான பாதை", "f": 23 },
{ "a": "عن سبيل الله", "e": "From way of Allah", "u": "اللہ کی راہ سے", "t": "அல்லாஹ் பாதையிலிருந்து", "f": 23 },
{ "a": "وعد الله", "e": "Promise of Allah", "u": "اللہ کا وعدہ", "t": "அல்லாஹ் வாக்குறுதி", "f": 23 },
{ "a": "كان عاقبة", "e": "Was the end", "u": "انجام تھا", "t": "முடிவு இருந்தது", "f": 22 },
{ "a": "ابن مريم", "e": "Son of Mary", "u": "مریم کا بیٹا", "t": "மரியம் மகன்", "f": 22 },
{ "a": "الله غفور رحيم", "e": "Allah Forgiving Merciful", "u": "اللہ بخشنے والا مہربان", "t": "அல்லாஹ் மன்னிப்பவன்", "f": 22 },
{ "a": "واليوم الآخر", "e": "And the Last Day", "u": "اور آخری دن", "t": "இறுதி நாள்", "f": 22 },
{ "a": "أيها الناس", "e": "O mankind", "u": "اے لوگو", "t": "மனிதர்களே", "f": 21 },
{ "a": "كيف كان عاقبة", "e": "How was the end", "u": "کیسا تھا انجام", "t": "எப்படி முடிவு", "f": 21 }
]
# Add a calculated width for the frequency bar
for phrase in phrases_data:
phrase['f_width'] = (phrase['f'] / 196) * 100
def home(request): return render(request, "core/index.html", {"phrases": phrases_data})
"""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()
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", ""),
}
return render(request, "core/index.html", context)

View File

@ -1,4 +1 @@
/* Custom styles for the application */ /* Add your custom CSS here */
body {
font-family: system-ui, -apple-system, sans-serif;
}