|
1 | 1 | {% extends "base.html" %}
|
2 | 2 | {% load static %}
|
3 |
| -{% load static %} |
4 | 3 | {% load custom_tags %}
|
5 | 4 | {% block title %}
|
6 | 5 | {% env 'PROJECT_NAME' %} Tomato - OWASP {% env 'PROJECT_NAME' %} Project
|
|
18 | 17 | Support the OWASP {% env 'PROJECT_NAME' %} Tomato project and other OWASP projects by donating through funding.yml. Help fund open-source initiatives.
|
19 | 18 | {% endblock og_description %}
|
20 | 19 | {% block content %}
|
21 |
| - {% include "includes/sidenav.html" %} |
22 |
| - <div class="min-h-screen flex flex-col mx-4 mt-5"> |
23 |
| - <h2 class="text-4xl font-semibold my-8 p-5 text-white rounded-md bg-[#d9534f]"> |
24 |
| - {% env 'PROJECT_NAME' %} Tomato - This is an OWASP {% env 'PROJECT_NAME' %} project created to help other OWASP projects. |
25 |
| - </h2> |
26 |
| - {% if projects %} |
27 |
| - <p class="text-xl font-semibold mt-5">The following OWASP projects are seeking funding and have a funding.yml file:</p> |
28 |
| - <ul class="text-2xl"> |
29 |
| - {% for project in projects %} |
30 |
| - <li type="1" class=" my-2 py-2 px-4 shadow"> |
31 |
| - <a href="{{ project.repo_url }}" |
32 |
| - class="text-primary underline inline-block">{{ project.project_name }}</a> |
33 |
| - <button class="bg-[#d9534f] ml-4 inline-block py-1 px-2 rounded text-white"> |
34 |
| - <a href="{{ project.funding_hyperlinks }}" target="_blank"> |
35 |
| - <span class="text-white">Donate</span> |
36 |
| - </a> |
37 |
| - </button> |
38 |
| - <span class="ml-4">{{ project.funding_details }}</span> |
39 |
| - </li> |
40 |
| - {% endfor %} |
41 |
| - </ul> |
42 |
| - {% endif %} |
| 20 | + <div class="min-h-screen bg-white"> |
| 21 | + <!-- Sidebar --> |
| 22 | + <div class="fixed left-0 top-0 h-full lg:w-64 z-30">{% include "includes/sidenav.html" %}</div> |
| 23 | + <!-- Main Content --> |
| 24 | + <div class="lg:ml-64"> |
| 25 | + <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> |
| 26 | + <!-- Header Section --> |
| 27 | + {% if projects %} |
| 28 | + <div class="bg-white rounded-xl shadow-sm p-8 w-[80%] mx-auto"> |
| 29 | + <h2 class="text-2xl font-bold mb-6 flex items-center gap-3"> |
| 30 | + <i class="fas fa-hand-holding-usd text-[#e74c3c]"></i> |
| 31 | + Projects Seeking Funding |
| 32 | + </h2> |
| 33 | + <p class="text-gray-600 mb-8"> |
| 34 | + The following OWASP projects have active funding.yml files and are looking for community support: |
| 35 | + </p> |
| 36 | + <div class="space-y-4"> |
| 37 | + {% for project in projects %} |
| 38 | + <div class="border-2 border-gray-100 rounded-lg p-6 hover:border-[#e74c3c] transition-colors duration-200"> |
| 39 | + <div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4"> |
| 40 | + <div class="flex-1"> |
| 41 | + <h3 class="text-xl font-semibold mb-2"> |
| 42 | + <a href="{{ project.repo_url }}" |
| 43 | + class="text-gray-900 hover:text-[#e74c3c] flex items-center gap-2" |
| 44 | + target="_blank"> |
| 45 | + <i class="fab fa-github"></i> |
| 46 | + {{ project.project_name }} |
| 47 | + </a> |
| 48 | + </h3> |
| 49 | + </div> |
| 50 | + <div class="flex-shrink-0"> |
| 51 | + <a href="{{ project.funding_hyperlinks }}" |
| 52 | + target="_blank" |
| 53 | + class="inline-flex select-none items-center justify-center gap-2 px-6 py-3 text-white bg-[#e74c3c] rounded-lg hover:bg-[#c0392b] font-medium transition-all duration-200"> |
| 54 | + <i class="fas fa-heart"></i> |
| 55 | + Support Project |
| 56 | + </a> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + {% endfor %} |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + {% else %} |
| 64 | + <div class="bg-white rounded-xl shadow-sm p-8 text-center w-[80%] mx-auto"> |
| 65 | + <div class="mx-auto w-24 h-24 rounded-full bg-gray-100 flex items-center justify-center mb-4"> |
| 66 | + <i class="fas fa-folder-open text-4xl text-gray-400"></i> |
| 67 | + </div> |
| 68 | + <h3 class="text-xl font-medium text-gray-900 mb-2">No Projects Found</h3> |
| 69 | + <p class="text-gray-500">Currently, there are no OWASP projects with funding.yml files.</p> |
| 70 | + </div> |
| 71 | + {% endif %} |
| 72 | + </div> |
| 73 | + </div> |
43 | 74 | </div>
|
44 | 75 | {% endblock content %}
|
45 |
| -<style> |
46 |
| - .min-h-screen { |
47 |
| - min-height: 100vh; |
48 |
| - } |
49 |
| - .shadow { |
50 |
| - box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); |
51 |
| - } |
52 |
| - .link-button { |
53 |
| - background-color: #d9534f; |
54 |
| - color: white; |
55 |
| - padding: 0.5rem 1rem; |
56 |
| - border-radius: 0.25rem; |
57 |
| - text-decoration: none; |
58 |
| - } |
59 |
| - |
60 |
| - .link-button:hover { |
61 |
| - background-color: #c9302c; |
62 |
| - } |
63 |
| - |
64 |
| - .link-button:visited { |
65 |
| - color: white; |
66 |
| - } |
67 |
| - |
68 |
| -</style> |
|
0 commit comments