mirror of
https://github.com/System-End/highway.git
synced 2026-04-19 19:45:10 +00:00
update highlighted projects
This commit is contained in:
parent
539e2cd6a5
commit
d74c635036
2 changed files with 5 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
<% if @projects.any? %>
|
||||
<div class="flex flex-col justify-center text-center">
|
||||
<p class="opacity-70">Check out what others are building!</p>
|
||||
<p class="opacity-70">Highlighted projects with blue borders are handpicked cool projects with good journals.</p>
|
||||
<p class="opacity-70"><i><%= pluralize(@projects.count, "project") %> <%= @projects.count == 1 ? "has" : "have" %> been started:</i></p>
|
||||
</div>
|
||||
<% else %>
|
||||
|
|
@ -17,7 +18,7 @@
|
|||
|
||||
<div class="grid xl:grid-cols-3 gap-4 mt-4 md:grid-cols-2 grid-cols-1">
|
||||
<% @projects.each do |project| %>
|
||||
<div class="bg-[#2E2A54] border-2 <%= project.is_highlighted? ? "border-yellow-800" : "border-[#403A88]" %> hover:border-[#544FFF] rounded-lg text-white hover:bg-[#3A3A6D] transition duration-100 transition-transform hover:scale-102 p-8 h-full flex flex-col">
|
||||
<div class="bg-[#2E2A54] border-2 <%= project.is_highlighted? ? "border-blue-600 shadow-[0_0_20px_5px_rgba(84,83,255,0.7)]" : "border-[#403A88]" %> hover:border-[#544FFF] rounded-lg text-white hover:bg-[#3A3A6D] transition duration-100 transition-transform hover:scale-102 p-8 h-full flex flex-col">
|
||||
<% if project.has_journal? %>
|
||||
<%= link_to project_path(user: project.user, project_name: project.project_name), class: "block mb-2" do %>
|
||||
<h1 class="text-2xl font-bold"><%= project.name.truncate(25) %></h1>
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
- hackclub/awesome-project
|
||||
- hackclub/awesome-project
|
||||
- AGB556/hydra
|
||||
- programmerturtle/donotdelta
|
||||
Loading…
Add table
Reference in a new issue