Spaces:
Sleeping
Sleeping
AdityaAdaki
commited on
Commit
·
bf7bdd9
1
Parent(s):
54ce02f
workin
Browse files- templates/base.html +133 -15
- templates/index.html +1 -1
- templates/scheme_details.html +80 -47
templates/base.html
CHANGED
@@ -16,23 +16,41 @@
|
|
16 |
|
17 |
body {
|
18 |
background-color: #f8f9fa;
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
.navbar {
|
22 |
background-color: var(--primary-color) !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
.page-title {
|
26 |
color: var(--primary-color);
|
27 |
-
margin-bottom:
|
28 |
font-weight: 600;
|
|
|
|
|
29 |
}
|
30 |
|
31 |
.section-title {
|
32 |
color: var(--primary-color);
|
33 |
-
font-size: 1.
|
34 |
-
margin-bottom:
|
35 |
font-weight: 600;
|
|
|
36 |
}
|
37 |
|
38 |
/* Remove the grid layout for scheme-grid */
|
@@ -40,19 +58,37 @@
|
|
40 |
/* Using Bootstrap's row system now */
|
41 |
}
|
42 |
|
|
|
43 |
.card {
|
44 |
transition: transform 0.2s, box-shadow 0.2s;
|
45 |
border: none;
|
46 |
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
47 |
-
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
.card:hover {
|
51 |
-
transform: translateY(-
|
52 |
-
box-shadow: 0 4px 8px rgba(0,0,0,0.
|
53 |
background-color: rgba(43, 91, 53, 0.02);
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
.btn-primary {
|
57 |
background-color: var(--primary-color);
|
58 |
border-color: var(--primary-color);
|
@@ -76,13 +112,102 @@
|
|
76 |
color: var(--primary-light);
|
77 |
}
|
78 |
|
|
|
|
|
|
|
|
|
|
|
79 |
.list-group-item {
|
|
|
80 |
border-color: rgba(43, 91, 53, 0.1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
</style>
|
83 |
</head>
|
84 |
<body>
|
85 |
-
<nav class="navbar navbar-expand-lg navbar-dark
|
86 |
<div class="container">
|
87 |
<a class="navbar-brand" href="{{ url_for('index') }}">Indian Agricultural Schemes</a>
|
88 |
<div class="d-flex">
|
@@ -91,7 +216,7 @@
|
|
91 |
</div>
|
92 |
</nav>
|
93 |
|
94 |
-
<div class="container py-
|
95 |
{% block content %}{% endblock %}
|
96 |
</div>
|
97 |
|
@@ -216,12 +341,5 @@
|
|
216 |
});
|
217 |
</script>
|
218 |
{% block extra_scripts %}{% endblock %}
|
219 |
-
|
220 |
-
<!-- Add this before the closing </body> tag -->
|
221 |
-
<!-- Add this after your navbar -->
|
222 |
-
<!-- Remove these sections -->
|
223 |
-
<!-- Remove the language dropdown -->
|
224 |
-
<!-- Remove the loading overlay div -->
|
225 |
-
<!-- Remove the translation-related JavaScript -->
|
226 |
</body>
|
227 |
</html>
|
|
|
16 |
|
17 |
body {
|
18 |
background-color: #f8f9fa;
|
19 |
+
line-height: 1.5;
|
20 |
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
21 |
+
margin: 0;
|
22 |
+
padding: 0;
|
23 |
}
|
24 |
|
25 |
.navbar {
|
26 |
background-color: var(--primary-color) !important;
|
27 |
+
padding: 0.5rem 1rem;
|
28 |
+
margin-bottom: 0 !important;
|
29 |
+
}
|
30 |
+
|
31 |
+
.container {
|
32 |
+
padding: 0 15px;
|
33 |
+
}
|
34 |
+
|
35 |
+
.scheme-detail-container {
|
36 |
+
padding-top: 15px;
|
37 |
+
padding-bottom: 15px;
|
38 |
}
|
39 |
|
40 |
.page-title {
|
41 |
color: var(--primary-color);
|
42 |
+
margin-bottom: 1rem;
|
43 |
font-weight: 600;
|
44 |
+
font-size: 1.75rem;
|
45 |
+
line-height: 1.2;
|
46 |
}
|
47 |
|
48 |
.section-title {
|
49 |
color: var(--primary-color);
|
50 |
+
font-size: 1.25rem;
|
51 |
+
margin-bottom: 0.75rem;
|
52 |
font-weight: 600;
|
53 |
+
line-height: 1.2;
|
54 |
}
|
55 |
|
56 |
/* Remove the grid layout for scheme-grid */
|
|
|
58 |
/* Using Bootstrap's row system now */
|
59 |
}
|
60 |
|
61 |
+
/* Card styling */
|
62 |
.card {
|
63 |
transition: transform 0.2s, box-shadow 0.2s;
|
64 |
border: none;
|
65 |
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
66 |
+
overflow: hidden;
|
67 |
+
border-radius: 0.5rem;
|
68 |
+
margin-bottom: 12px;
|
69 |
+
height: auto;
|
70 |
+
display: flex;
|
71 |
+
flex-direction: column;
|
72 |
}
|
73 |
|
74 |
.card:hover {
|
75 |
+
transform: translateY(-2px);
|
76 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.08);
|
77 |
background-color: rgba(43, 91, 53, 0.02);
|
78 |
}
|
79 |
|
80 |
+
.card-body {
|
81 |
+
padding: 0.75rem;
|
82 |
+
flex: 0 1 auto;
|
83 |
+
}
|
84 |
+
|
85 |
+
.scheme-text {
|
86 |
+
font-size: 1rem;
|
87 |
+
line-height: 1.5;
|
88 |
+
color: #333;
|
89 |
+
margin-bottom: 0;
|
90 |
+
}
|
91 |
+
|
92 |
.btn-primary {
|
93 |
background-color: var(--primary-color);
|
94 |
border-color: var(--primary-color);
|
|
|
112 |
color: var(--primary-light);
|
113 |
}
|
114 |
|
115 |
+
/* Improved list styling */
|
116 |
+
.list-group {
|
117 |
+
margin-bottom: 0;
|
118 |
+
}
|
119 |
+
|
120 |
.list-group-item {
|
121 |
+
padding: 0.4rem 0.5rem;
|
122 |
border-color: rgba(43, 91, 53, 0.1);
|
123 |
+
border-width: 1px 0;
|
124 |
+
border-radius: 0;
|
125 |
+
background-color: transparent;
|
126 |
+
margin: 0;
|
127 |
+
font-size: 1rem;
|
128 |
+
}
|
129 |
+
|
130 |
+
.list-group-item:first-child {
|
131 |
+
border-top-width: 0;
|
132 |
+
}
|
133 |
+
|
134 |
+
.list-group-item:last-child {
|
135 |
+
border-bottom-width: 0;
|
136 |
+
}
|
137 |
+
|
138 |
+
.list-group-flush {
|
139 |
+
margin-bottom: 0;
|
140 |
+
}
|
141 |
+
|
142 |
+
/* Breadcrumb styling */
|
143 |
+
.breadcrumb {
|
144 |
+
padding: 0.5rem 0;
|
145 |
+
margin-bottom: 1rem;
|
146 |
+
background-color: transparent;
|
147 |
+
}
|
148 |
+
|
149 |
+
/* Responsive fixes */
|
150 |
+
@media (max-width: 991.98px) {
|
151 |
+
.sticky-lg-top {
|
152 |
+
position: static;
|
153 |
+
}
|
154 |
+
.container {
|
155 |
+
padding: 0 10px;
|
156 |
+
}
|
157 |
+
.card-body {
|
158 |
+
padding: 0.75rem;
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
+
/* Fix for empty spaces */
|
163 |
+
.py-2 {
|
164 |
+
padding-top: 0.4rem !important;
|
165 |
+
padding-bottom: 0.4rem !important;
|
166 |
+
}
|
167 |
+
|
168 |
+
.py-3 {
|
169 |
+
padding-top: 0.6rem !important;
|
170 |
+
padding-bottom: 0.6rem !important;
|
171 |
+
}
|
172 |
+
|
173 |
+
.py-4 {
|
174 |
+
padding-top: 0.8rem !important;
|
175 |
+
padding-bottom: 0.8rem !important;
|
176 |
+
}
|
177 |
+
|
178 |
+
.mb-0 {
|
179 |
+
margin-bottom: 0 !important;
|
180 |
+
}
|
181 |
+
|
182 |
+
.mb-2 {
|
183 |
+
margin-bottom: 0.4rem !important;
|
184 |
+
}
|
185 |
+
|
186 |
+
.mb-3 {
|
187 |
+
margin-bottom: 0.6rem !important;
|
188 |
+
}
|
189 |
+
|
190 |
+
.mb-4 {
|
191 |
+
margin-bottom: 0.8rem !important;
|
192 |
+
}
|
193 |
+
|
194 |
+
.g-3 {
|
195 |
+
gap: 0.5rem !important;
|
196 |
+
}
|
197 |
+
|
198 |
+
.row {
|
199 |
+
margin-right: -0.25rem;
|
200 |
+
margin-left: -0.25rem;
|
201 |
+
}
|
202 |
+
|
203 |
+
.row > * {
|
204 |
+
padding-right: 0.25rem;
|
205 |
+
padding-left: 0.25rem;
|
206 |
}
|
207 |
</style>
|
208 |
</head>
|
209 |
<body>
|
210 |
+
<nav class="navbar navbar-expand-lg navbar-dark">
|
211 |
<div class="container">
|
212 |
<a class="navbar-brand" href="{{ url_for('index') }}">Indian Agricultural Schemes</a>
|
213 |
<div class="d-flex">
|
|
|
216 |
</div>
|
217 |
</nav>
|
218 |
|
219 |
+
<div class="container py-0">
|
220 |
{% block content %}{% endblock %}
|
221 |
</div>
|
222 |
|
|
|
341 |
});
|
342 |
</script>
|
343 |
{% block extra_scripts %}{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
344 |
</body>
|
345 |
</html>
|
templates/index.html
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
</a>
|
11 |
</div>
|
12 |
<div class="filters mb-4">
|
13 |
-
<div class="row g-
|
14 |
<div class="col-md-4">
|
15 |
<select class="form-select" id="schemeTypeFilter">
|
16 |
<option value="">All Scheme Types</option>
|
|
|
10 |
</a>
|
11 |
</div>
|
12 |
<div class="filters mb-4">
|
13 |
+
<div class="row g-4">
|
14 |
<div class="col-md-4">
|
15 |
<select class="form-select" id="schemeTypeFilter">
|
16 |
<option value="">All Scheme Types</option>
|
templates/scheme_details.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{% extends "base.html" %}
|
2 |
|
3 |
{% block content %}
|
4 |
-
<div class="container">
|
5 |
<nav aria-label="breadcrumb">
|
6 |
<ol class="breadcrumb">
|
7 |
<li class="breadcrumb-item"><a href="{{ url_for('index') }}">Home</a></li>
|
@@ -9,97 +9,109 @@
|
|
9 |
</ol>
|
10 |
</nav>
|
11 |
|
12 |
-
<h1 class="page-title mb-
|
13 |
|
14 |
-
<div class="row g-
|
15 |
<div class="col-lg-8">
|
16 |
-
<div class="card mb-
|
17 |
-
<div class="card-body">
|
18 |
-
<h2 class="section-title">Introduction</h2>
|
19 |
-
<p class="
|
20 |
</div>
|
21 |
</div>
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
<
|
|
|
27 |
{% for obj in scheme.objective %}
|
28 |
-
<
|
29 |
{% endfor %}
|
30 |
-
</
|
31 |
</div>
|
32 |
</div>
|
|
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
<
|
|
|
38 |
{% for benefit in scheme.benefits %}
|
39 |
-
<
|
40 |
{% endfor %}
|
41 |
-
</
|
42 |
</div>
|
43 |
</div>
|
|
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
<
|
49 |
-
|
|
|
|
|
50 |
{% for eligible in scheme.eligibility.eligible %}
|
51 |
-
<
|
52 |
{% endfor %}
|
53 |
-
</
|
|
|
54 |
|
55 |
{% if scheme.eligibility.exclusions %}
|
56 |
-
<h3 class="h5 mb-
|
57 |
-
<
|
58 |
{% for exclusion in scheme.eligibility.exclusions %}
|
59 |
-
<
|
60 |
{% endfor %}
|
61 |
-
</
|
62 |
{% endif %}
|
63 |
</div>
|
64 |
</div>
|
|
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
<
|
|
|
70 |
{% for step in scheme.application_process %}
|
71 |
-
<
|
72 |
{% endfor %}
|
73 |
-
</
|
74 |
</div>
|
75 |
</div>
|
|
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
<
|
|
|
81 |
{% for doc in scheme.documents_required %}
|
82 |
-
<
|
83 |
{% endfor %}
|
84 |
-
</
|
85 |
</div>
|
86 |
</div>
|
|
|
87 |
</div>
|
88 |
|
89 |
<div class="col-lg-4">
|
90 |
-
<div class="card shadow-sm sticky-top" style="top:
|
91 |
-
<div class="card-body">
|
92 |
-
<h2 class="section-title">Contact Information</h2>
|
93 |
<ul class="list-unstyled mb-0">
|
94 |
{% if scheme.contact.helpline %}
|
95 |
-
<li class="mb-
|
96 |
<i class="fas fa-phone-alt text-primary me-2"></i>
|
97 |
<strong>Helpline:</strong><br>
|
98 |
{{ scheme.contact.helpline }}
|
99 |
</li>
|
100 |
{% endif %}
|
101 |
{% if scheme.contact.email %}
|
102 |
-
<li class="mb-
|
103 |
<i class="fas fa-envelope text-primary me-2"></i>
|
104 |
<strong>Email:</strong><br>
|
105 |
<a href="mailto:{{ scheme.contact.email }}">{{ scheme.contact.email }}</a>
|
@@ -118,4 +130,25 @@
|
|
118 |
</div>
|
119 |
</div>
|
120 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
{% endblock %}
|
|
|
1 |
{% extends "base.html" %}
|
2 |
|
3 |
{% block content %}
|
4 |
+
<div class="container scheme-detail-container">
|
5 |
<nav aria-label="breadcrumb">
|
6 |
<ol class="breadcrumb">
|
7 |
<li class="breadcrumb-item"><a href="{{ url_for('index') }}">Home</a></li>
|
|
|
9 |
</ol>
|
10 |
</nav>
|
11 |
|
12 |
+
<h1 class="page-title mb-2">{{ scheme.name }}</h1>
|
13 |
|
14 |
+
<div class="row g-2">
|
15 |
<div class="col-lg-8">
|
16 |
+
<div class="card mb-2 shadow-sm">
|
17 |
+
<div class="card-body p-3">
|
18 |
+
<h2 class="section-title mb-2">Introduction</h2>
|
19 |
+
<p class="scheme-text">{{ scheme.introduction }}</p>
|
20 |
</div>
|
21 |
</div>
|
22 |
|
23 |
+
{% if scheme.objective %}
|
24 |
+
<div class="card mb-2 shadow-sm">
|
25 |
+
<div class="card-body p-3">
|
26 |
+
<h2 class="section-title mb-2">Objectives</h2>
|
27 |
+
<ul class="list-group list-group-flush">
|
28 |
{% for obj in scheme.objective %}
|
29 |
+
<li class="list-group-item bg-transparent py-1">{{ obj }}</li>
|
30 |
{% endfor %}
|
31 |
+
</ul>
|
32 |
</div>
|
33 |
</div>
|
34 |
+
{% endif %}
|
35 |
|
36 |
+
{% if scheme.benefits %}
|
37 |
+
<div class="card mb-2 shadow-sm">
|
38 |
+
<div class="card-body p-3">
|
39 |
+
<h2 class="section-title mb-2">Benefits</h2>
|
40 |
+
<ul class="list-group list-group-flush">
|
41 |
{% for benefit in scheme.benefits %}
|
42 |
+
<li class="list-group-item bg-transparent py-1">{{ benefit }}</li>
|
43 |
{% endfor %}
|
44 |
+
</ul>
|
45 |
</div>
|
46 |
</div>
|
47 |
+
{% endif %}
|
48 |
|
49 |
+
{% if scheme.eligibility %}
|
50 |
+
<div class="card mb-2 shadow-sm">
|
51 |
+
<div class="card-body p-3">
|
52 |
+
<h2 class="section-title mb-2">Eligibility</h2>
|
53 |
+
{% if scheme.eligibility.eligible %}
|
54 |
+
<h3 class="h5 mb-2">Eligible Beneficiaries:</h3>
|
55 |
+
<ul class="list-group list-group-flush mb-2">
|
56 |
{% for eligible in scheme.eligibility.eligible %}
|
57 |
+
<li class="list-group-item bg-transparent py-1">{{ eligible }}</li>
|
58 |
{% endfor %}
|
59 |
+
</ul>
|
60 |
+
{% endif %}
|
61 |
|
62 |
{% if scheme.eligibility.exclusions %}
|
63 |
+
<h3 class="h5 mb-2">Exclusions:</h3>
|
64 |
+
<ul class="list-group list-group-flush">
|
65 |
{% for exclusion in scheme.eligibility.exclusions %}
|
66 |
+
<li class="list-group-item bg-transparent py-1">{{ exclusion }}</li>
|
67 |
{% endfor %}
|
68 |
+
</ul>
|
69 |
{% endif %}
|
70 |
</div>
|
71 |
</div>
|
72 |
+
{% endif %}
|
73 |
|
74 |
+
{% if scheme.application_process %}
|
75 |
+
<div class="card mb-2 shadow-sm">
|
76 |
+
<div class="card-body p-3">
|
77 |
+
<h2 class="section-title mb-2">Application Process</h2>
|
78 |
+
<ol class="list-group list-group-flush">
|
79 |
{% for step in scheme.application_process %}
|
80 |
+
<li class="list-group-item bg-transparent py-1">{{ step }}</li>
|
81 |
{% endfor %}
|
82 |
+
</ol>
|
83 |
</div>
|
84 |
</div>
|
85 |
+
{% endif %}
|
86 |
|
87 |
+
{% if scheme.documents_required %}
|
88 |
+
<div class="card mb-2 shadow-sm">
|
89 |
+
<div class="card-body p-3">
|
90 |
+
<h2 class="section-title mb-2">Required Documents</h2>
|
91 |
+
<ul class="list-group list-group-flush">
|
92 |
{% for doc in scheme.documents_required %}
|
93 |
+
<li class="list-group-item bg-transparent py-1">{{ doc }}</li>
|
94 |
{% endfor %}
|
95 |
+
</ul>
|
96 |
</div>
|
97 |
</div>
|
98 |
+
{% endif %}
|
99 |
</div>
|
100 |
|
101 |
<div class="col-lg-4">
|
102 |
+
<div class="card shadow-sm sticky-lg-top" style="top: 0.5rem;">
|
103 |
+
<div class="card-body p-3">
|
104 |
+
<h2 class="section-title mb-2">Contact Information</h2>
|
105 |
<ul class="list-unstyled mb-0">
|
106 |
{% if scheme.contact.helpline %}
|
107 |
+
<li class="mb-2">
|
108 |
<i class="fas fa-phone-alt text-primary me-2"></i>
|
109 |
<strong>Helpline:</strong><br>
|
110 |
{{ scheme.contact.helpline }}
|
111 |
</li>
|
112 |
{% endif %}
|
113 |
{% if scheme.contact.email %}
|
114 |
+
<li class="mb-2">
|
115 |
<i class="fas fa-envelope text-primary me-2"></i>
|
116 |
<strong>Email:</strong><br>
|
117 |
<a href="mailto:{{ scheme.contact.email }}">{{ scheme.contact.email }}</a>
|
|
|
130 |
</div>
|
131 |
</div>
|
132 |
</div>
|
133 |
+
|
134 |
+
<style>
|
135 |
+
/* Additional scheme detail specific styles */
|
136 |
+
.scheme-detail-container .card {
|
137 |
+
min-height: 0;
|
138 |
+
margin-bottom: 0.5rem;
|
139 |
+
}
|
140 |
+
.scheme-detail-container .list-group-item {
|
141 |
+
white-space: normal;
|
142 |
+
word-break: break-word;
|
143 |
+
}
|
144 |
+
.scheme-detail-container .row > div > .card:last-child {
|
145 |
+
margin-bottom: 0;
|
146 |
+
}
|
147 |
+
.scheme-detail-container h2.section-title {
|
148 |
+
font-size: 1.1rem;
|
149 |
+
}
|
150 |
+
.scheme-detail-container h3.h5 {
|
151 |
+
font-size: 0.95rem;
|
152 |
+
}
|
153 |
+
</style>
|
154 |
{% endblock %}
|