Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design Polish #697

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/banchan_web/components/card.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ defmodule BanchanWeb.Components.Card do
def render(assigns) do
~F"""
<div class={
"bg-base-200 card card-compact flex flex-col grow rounded-none group focus:outline-none focus:ring-0",
"bg-base-200 card card-compact flex flex-col grow rounded-none",
@class
}>
{#if slot_assigned?(:image)}
<figure class={@image_class, "rounded-none group-focus:ring-1 group-focus:ring-primary"}>
<figure class={@image_class, "rounded-none"}>
<#slot {@image} />
</figure>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion lib/banchan_web/components/offering_card.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule BanchanWeb.Components.OfferingCard do
def render(assigns) do
~F"""
<offering-card class={
"group h-full transition-all relative flex flex-col border rounded-lg border-base-content border-opacity-10 p-0 m-0 hover:outline hover:outline-primary-focus hover:outline-3 hover:outline-offset-0 hover:border-primary-focus",
"group h-full transition-all relative flex flex-col border rounded-lg border-base-content border-opacity-10 p-0 m-0 sm:hover:outline sm:hover:outline-primary-focus sm:hover:outline-3 sm:hover:outline-offset-0 sm:hover:border-primary-focus",
"opacity-50": @archived?
}>
<div class="rounded-t-lg stack-custom">
Expand Down
10 changes: 5 additions & 5 deletions lib/banchan_web/live/home_live/components/studio_card.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ defmodule BanchanWeb.Components.StudioCard do
"border-base-content",
"border-opacity-10",
"bg-base-100",
"hover:outline",
"hover:outline-primary-focus",
"hover:outline-3",
"hover:outline-offset-0",
"hover:border-primary-focus",
"sm:hover:outline",
"sm:hover:outline-primary-focus",
"sm:hover:outline-3",
"sm:hover:outline-offset-0",
"sm:hover:border-primary-focus",
"transition-all",
"opacity-50": @studio.archived_at
}>
Expand Down
2 changes: 1 addition & 1 deletion lib/banchan_web/live/home_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ defmodule BanchanWeb.HomeLive do
<div class="absolute text-3xl font-bold text-white top-2 left-2 drop-shadow-[0_3px_3px_rgba(0,0,0,0.75)] md:top-6 md:left-6 sm:text-3xl md:text-6xl">
{studio.name}
</div>
<div class="absolute z-10 w-full h-full opacity-50 bg-gradient-to-t from-emerald-900" />
<div class="absolute z-10 w-full h-full opacity-50" />
<img
class="object-cover w-full aspect-header-image"
src={Routes.public_image_path(Endpoint, :image, :studio_header_img, studio.header_img_id)}
Expand Down
Loading