Skip to content

Commit 3d72534

Browse files
committed
fix: update styling for user and homepage components
- Changed background colors for various elements to improve visual consistency. - Adjusted layout properties for better alignment and spacing across the homepage. - Replaced the image for Louis Beaumont to enhance the testimonial section's visual appeal.
1 parent af971d1 commit 3d72534

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

lib/algora_web/components/layouts/user.html.heex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
rel="noopener"
197197
href={AlgoraWeb.Constants.get(:youtube_url)}
198198
>
199-
<div class="rounded-[3px] hidden h-8 shrink-0 select-none items-center justify-center whitespace-nowrap bg-transparent px-2 text-center text-sm font-semibold transition duration-150 hover:bg-slate-850 disabled:opacity-50 group-focus:outline-none group-disabled:pointer-events-none group-disabled:opacity-75 lg:flex">
199+
<div class="rounded-[3px] hidden h-8 shrink-0 select-none items-center justify-center whitespace-nowrap bg-transparent px-2 text-center text-sm font-semibold transition duration-150 hover:bg-gray-850 disabled:opacity-50 group-focus:outline-none group-disabled:pointer-events-none group-disabled:opacity-75 lg:flex">
200200
<div class="flex w-full items-center justify-center gap-x-1">
201201
<AlgoraWeb.Components.Logos.youtube class="mr-0.5 h-5 shrink-0 justify-start text-gray-300 transition" />
202202
</div>
@@ -208,7 +208,7 @@
208208
target="_blank"
209209
href={AlgoraWeb.Constants.get(:discord_url)}
210210
>
211-
<div class="rounded-[3px] hidden h-8 shrink-0 select-none items-center justify-center whitespace-nowrap bg-transparent px-2 text-center text-sm font-semibold transition duration-150 hover:bg-slate-850 disabled:opacity-50 group-focus:outline-none group-disabled:pointer-events-none group-disabled:opacity-75 lg:flex">
211+
<div class="rounded-[3px] hidden h-8 shrink-0 select-none items-center justify-center whitespace-nowrap bg-transparent px-2 text-center text-sm font-semibold transition duration-150 hover:bg-gray-850 disabled:opacity-50 group-focus:outline-none group-disabled:pointer-events-none group-disabled:opacity-75 lg:flex">
212212
<div class="flex w-full items-center justify-center gap-x-1">
213213
<AlgoraWeb.Components.Logos.discord class="h-7 w-7" />
214214
</div>
@@ -221,7 +221,7 @@
221221
rel="noopener"
222222
href={AlgoraWeb.Constants.get(:github_url)}
223223
>
224-
<div class="rounded-[3px] hidden h-8 shrink-0 select-none items-center justify-center whitespace-nowrap bg-transparent p-2 text-center text-sm font-semibold transition duration-150 hover:bg-slate-850 disabled:opacity-50 group-focus:outline-none group-disabled:pointer-events-none group-disabled:opacity-75 lg:flex">
224+
<div class="rounded-[3px] hidden h-8 shrink-0 select-none items-center justify-center whitespace-nowrap bg-transparent p-2 text-center text-sm font-semibold transition duration-150 hover:bg-gray-850 disabled:opacity-50 group-focus:outline-none group-disabled:pointer-events-none group-disabled:opacity-75 lg:flex">
225225
<div class="flex w-full items-center justify-center gap-x-1">
226226
<AlgoraWeb.Components.Logos.github class="mr-0.5 h-5 shrink-0 justify-start text-gray-300 transition" />
227227
<span class="hidden xl:block">Star</span>

lib/algora_web/live/home_live.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defmodule AlgoraWeb.HomeLive do
5252
aria-hidden="true"
5353
>
5454
<div
55-
class="left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] rotate-[30deg] relative -translate-x-1/2 bg-gradient-to-tr from-slate-400 to-secondary opacity-20 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"
55+
class="left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] rotate-[30deg] relative -translate-x-1/2 bg-gradient-to-tr from-gray-400 to-secondary opacity-20 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"
5656
style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
5757
>
5858
</div>
@@ -76,7 +76,7 @@ defmodule AlgoraWeb.HomeLive do
7676
7777
<div class="absolute inset-x-0 -z-10 transform overflow-hidden blur-3xl" aria-hidden="true">
7878
<div
79-
class="left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] relative -translate-x-1/2 bg-gradient-to-tr from-slate-400 to-secondary opacity-20 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
79+
class="left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] relative -translate-x-1/2 bg-gradient-to-tr from-gray-400 to-secondary opacity-20 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
8080
style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
8181
>
8282
</div>
@@ -162,7 +162,7 @@ defmodule AlgoraWeb.HomeLive do
162162
<.link
163163
href="https://github.com/zed-industries/zed/issues/4440"
164164
rel="noopener"
165-
class="relative flex items-center gap-x-4 rounded-xl bg-card/50 p-6 ring-1 ring-border hover:bg-card/70 transition-colors"
165+
class="relative flex items-center gap-x-4 rounded-xl bg-black p-6 ring-1 ring-border transition-colors"
166166
>
167167
<div class="flex -space-x-4">
168168
<img
@@ -192,7 +192,7 @@ defmodule AlgoraWeb.HomeLive do
192192
<.link
193193
href="https://github.com/PX4/PX4-Autopilot/issues/22464"
194194
rel="noopener"
195-
class="relative flex items-center gap-x-4 rounded-xl bg-card/50 p-6 ring-1 ring-border hover:bg-card/70 transition-colors"
195+
class="relative flex items-center gap-x-4 rounded-xl bg-black p-6 ring-1 ring-border transition-colors"
196196
>
197197
<div class="flex items-center -space-x-6">
198198
<img
@@ -220,7 +220,7 @@ defmodule AlgoraWeb.HomeLive do
220220
</.button>
221221
</.link>
222222
223-
<div class="relative grid grid-cols-5 items-center w-full gap-x-4 rounded-xl bg-card/50 p-12 ring-2 ring-success/20 hover:bg-card/70 transition-colors">
223+
<div class="relative grid grid-cols-5 items-center w-full gap-x-4 rounded-xl bg-black p-12 ring-2 ring-success/20 transition-colors">
224224
<div class="col-span-2 text-base leading-6 flex-1">
225225
<div class="text-3xl font-semibold text-foreground">
226226
Fund any issue <span class="text-success">in seconds</span>
@@ -335,16 +335,16 @@ defmodule AlgoraWeb.HomeLive do
335335
</p>
336336
<div class="mx-auto mt-16 max-w-6xl gap-8 text-sm leading-6 sm:mt-32">
337337
<div class="grid items-center gap-x-12 gap-y-8 lg:grid-cols-10">
338-
<div class="lg:col-span-4 order-first lg:order-last">
339-
<div class="relative flex aspect-square size-[24rem] items-center justify-center overflow-hidden rounded-2xl bg-gray-800">
338+
<div class="lg:col-span-5 order-first lg:order-last">
339+
<div class="relative flex aspect-[791/576] items-center justify-center overflow-hidden rounded-2xl bg-gray-800">
340340
<img
341341
src={~p"/images/people/louis-beaumont.png"}
342342
alt="Louis Beaumont"
343343
class="object-cover"
344344
/>
345345
</div>
346346
</div>
347-
<div class="lg:col-span-6 order-last lg:order-first">
347+
<div class="lg:col-span-5 order-last lg:order-first">
348348
<h3 class="text-3xl font-display font-bold leading-[3rem]">
349349
I posted our bounty on Upwork to try it, overall it's 1000x more friction than OSS bounties with Algora.
350350
</h3>
151 KB
Loading

0 commit comments

Comments
 (0)