Skip to content

Commit 2da6134

Browse files
committed
sytling....
1 parent 4c57555 commit 2da6134

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

app/views/showcase/new.html.erb

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<%= render "shared/page_title", title: "Showcase", subtitle: "The new vote thing" %>
33

44
<!-- 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">
66

77
<!-- LHS -->
88
<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 ">
1010
<div class="flex items-start gap-4">
1111
<div class="h-20 w-20 flex-shrink-0">
1212
<%= image_tag @project.banner, alt: @project.title, class: "w-full h-full object-cover rounded-lg", loading: "lazy" %>
@@ -39,7 +39,7 @@
3939
</div>
4040
</div>
4141

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">
4343
<% @devlogs.each do |devlog| %>
4444
<%= render "devlogs/devlog_card",
4545
devlog: devlog,
@@ -56,30 +56,26 @@
5656
<!-- RHS -->
5757
<div class="lg:sticky lg:top-4 lg:h-fit">
5858
<%= 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| %>
6161
<%= hidden_field_tag :project_id, @project.id %>
6262
<%= hidden_field_tag :time_spent_voting_ms, 0, id: "time_spent_voting_ms" %>
6363

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>
7066
</div>
7167

72-
<div class="space-y-4">
68+
<div class="space-y-3">
7369
<% explain = {
7470
"technical" => "Engineering quality: Do you think the author has put in effort in ensuring the robustness, perfomance and correctness of this?",
7571
"creativity" => "Is this creative?",
7672
"storytelling" => "How well it tells how it was made: clear README/devlogs, documentation, etc",
7773
"originality" => "How distinct it is from common projects?"
7874
} %>
7975
<% @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>
8379

8480
<div class="star-rating"
8581
data-controller="star-rating"
@@ -103,7 +99,7 @@
10399
<% end %>
104100
</div>
105101

106-
<div class="flex justify-center items-center w-full mt-6">
102+
<div class="flex justify-center items-center w-full mt-4">
107103
<%= render C::StyledButton.new(text: "Submit", type: :submit) %>
108104
</div>
109105
<% end %>

0 commit comments

Comments
 (0)