|
2 | 2 | <%= render "shared/page_title", title: "Showcase", subtitle: "The new vote thing" %> |
3 | 3 |
|
4 | 4 | <!-- Two Column Layout --> |
5 | | - <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 max-w-full"> |
| 5 | + <div class="grid grid-cols-1 lg:grid-cols-[3fr_2fr] gap-6 max-w-full"> |
6 | 6 |
|
7 | 7 | <!-- LHS --> |
8 | 8 | <div class="space-y-6"> |
9 | | - <div class="sticky top-4 z-10 bg-[#F6DBBA] rounded-xl p-4"> |
| 9 | + <div class="sticky top-4 z-10 bg-[#F6DBBA] rounded-xl p-4 z-100 "> |
10 | 10 | <div class="flex items-start gap-4"> |
11 | 11 | <div class="h-20 w-20 flex-shrink-0"> |
12 | 12 | <%= image_tag @project.banner, alt: @project.title, class: "w-full h-full object-cover rounded-lg", loading: "lazy" %> |
|
39 | 39 | </div> |
40 | 40 | </div> |
41 | 41 |
|
42 | | - <div class="space-y-4 max-h-[calc(100vh-20rem)] overflow-y-auto pr-2"> |
| 42 | + <div class="space-y-4 max-h-[calc(100vh-16rem)] overflow-y-auto pr-2"> |
43 | 43 | <% @devlogs.each do |devlog| %> |
44 | 44 | <%= render "devlogs/devlog_card", |
45 | 45 | devlog: devlog, |
|
56 | 56 | <!-- RHS --> |
57 | 57 | <div class="lg:sticky lg:top-4 lg:h-fit"> |
58 | 58 | <%= render C::Container.new do %> |
59 | | - <div class="p-4 sm:p-6"> |
60 | | - <%= form_with url: showcase_path, method: :post, data: { turbo: true }, class: "space-y-4" do |f| %> |
| 59 | + <div class="p-3 sm:p-4"> |
| 60 | + <%= form_with url: showcase_path, method: :post, data: { turbo: true }, class: "space-y-2" do |f| %> |
61 | 61 | <%= hidden_field_tag :project_id, @project.id %> |
62 | 62 | <%= hidden_field_tag :time_spent_voting_ms, 0, id: "time_spent_voting_ms" %> |
63 | 63 |
|
64 | | - <div class="mb-6"> |
65 | | - <h2 class="text-2xl font-bold text-som-dark mb-3">Rate this Project</h2> |
66 | | - <ul class="list-disc pl-5 space-y-2 text-som-dark/90 text-base"> |
67 | | - <li>Grade each category independently using the 6‑point scale.</li> |
68 | | - <li>"Good" is solid; go higher only when it clearly stands out.</li> |
69 | | - </ul> |
| 64 | + <div class="mb-4"> |
| 65 | + <h2 class="text-xl font-bold text-som-dark mb-2">Your grades, cowboy</h2> |
70 | 66 | </div> |
71 | 67 |
|
72 | | - <div class="space-y-4"> |
| 68 | + <div class="space-y-3"> |
73 | 69 | <% explain = { |
74 | 70 | "technical" => "Engineering quality: Do you think the author has put in effort in ensuring the robustness, perfomance and correctness of this?", |
75 | 71 | "creativity" => "Is this creative?", |
76 | 72 | "storytelling" => "How well it tells how it was made: clear README/devlogs, documentation, etc", |
77 | 73 | "originality" => "How distinct it is from common projects?" |
78 | 74 | } %> |
79 | 75 | <% @criteria.each do |criterion| %> |
80 | | - <div class="bg-[#f8f1e6] border border-[#d5bfa6] rounded-lg p-4"> |
81 | | - <div class="mb-2 font-bold text-xl text-som-dark capitalize"><%= criterion %></div> |
82 | | - <p class="mb-3 text-sm text-som-dark/85"><%= explain[criterion.to_s] %></p> |
| 76 | + <div class="bg-[#f8f1e6] border border-[#d5bfa6] rounded-lg p-3"> |
| 77 | + <div class="mb-1 font-bold text-lg text-som-dark capitalize"><%= criterion %></div> |
| 78 | + <p class="mb-2 text-sm text-som-dark/85"><%= explain[criterion.to_s] %></p> |
83 | 79 |
|
84 | 80 | <div class="star-rating" |
85 | 81 | data-controller="star-rating" |
|
103 | 99 | <% end %> |
104 | 100 | </div> |
105 | 101 |
|
106 | | - <div class="flex justify-center items-center w-full mt-6"> |
| 102 | + <div class="flex justify-center items-center w-full mt-4"> |
107 | 103 | <%= render C::StyledButton.new(text: "Submit", type: :submit) %> |
108 | 104 | </div> |
109 | 105 | <% end %> |
|
0 commit comments