Skip to content

Commit

Permalink
Improving OSS Discounted Developers page (OWASP-BLT#2636)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak5598 authored Aug 13, 2024
1 parent 923ecdb commit 5c69420
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
5 changes: 5 additions & 0 deletions website/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ class UserProfileAdmin(admin.ModelAdmin):
"flagged_count",
"subscribed_domains_count",
"subscribed_users_count",
"x_username",
"linkedin_url",
"github_url",
"website_url",
"discounted_hourly_rate",
)

def follow_count(self, obj):
Expand Down
2 changes: 1 addition & 1 deletion website/templates/profile_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2 class="text-3xl font-semibold text-center mb-8">Edit Profile</h2>
</div>
<!-- X username -->
<div class="mb-4">
<label for="id_x_username" class="block text-sm font-medium text-gray-700">X Username</label>
<label for="id_x_username" class="block text-sm font-medium text-gray-700">X URL</label>
<input type="text"
name="x_username"
id="id_x_username"
Expand Down
26 changes: 19 additions & 7 deletions website/templates/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,32 @@
{{ user.user.username }}
</div>
<div class="transition duration-200 group-hover:text-purple-800 text-purple-600 text-2xl">{{ user.location }}</div>
<p class="transition duration-200 group-hover:text-white text-gray-600 text-center px-10">
{{ user.short_description }}
<p class="transition duration-200 group-hover:text-white text-gray-600 text-center px-10">{{ user.description }}</p>
<p class="transition duration-200 group-hover:text-white text-gray-600 text-center px-10 py-4 bg-gray-100 rounded-md shadow-md">
<span class="font-semibold text-lg">Discounted Hourly Rate:</span>
<span class="text-green-600 font-bold text-xl">${{ user.discounted_hourly_rate }}</span>
</p>
<div class="group-hover:text-white flex items-center justify-center gap-3 mt-2 w-auto h-5 text-gray-600 mt-7">
<a href="{{ user.twitter }}" target="_blank" rel="noopener noreferrer">
<i class="group-hover:text-white scale-150 m-3 fa-brands fa-x-twitter fa-lg cursor-pointer transition duration-200 hover:text-gray-400">
</i>
<a href="{{ user.x_username }}"
target="_blank"
rel="noopener noreferrer">
<i class="group-hover:text-white scale-150 m-3 fa-brands fa-x-twitter fa-lg cursor-pointer transition duration-200 hover:text-gray-400"></i>
</a>
<a href="{{ user.linkedin }}" target="_blank" rel="noopener noreferrer">
<a href="{{ user.linkedin_url }}"
target="_blank"
rel="noopener noreferrer">
<i class="group-hover:text-white scale-150 m-3 fa-brands fa-linkedin fa-lg cursor-pointer transition duration-200 hover:text-gray-400"></i>
</a>
<a href="{{ user.website }}" target="_blank" rel="noopener noreferrer">
<a href="{{ user.website_url }}"
target="_blank"
rel="noopener noreferrer">
<i class="group-hover:text-white scale-150 m-3 fa-brands fa-dribbble fa-lg cursor-pointer transition duration-200 hover:text-gray-400"></i>
</a>
<a href="{{ user.github_url }}"
target="_blank"
rel="noopener noreferrer">
<i class="group-hover:text-white scale-150 m-3 fa-brands fa-github fa-lg cursor-pointer transition duration-200 hover:text-gray-400"></i>
</a>
</div>
<a href="{% url 'profile' slug=user.user.username %}"
class="w-[150px] h-[40px] rounded-md shadow-md bg-red-500 text-white flex justify-center items-center mt-10 no-underline hover:text-white group-hover:bg-white group-hover:text-red-500 font-bold">More Info</a>
Expand Down

0 comments on commit 5c69420

Please sign in to comment.