Skip to content

Commit

Permalink
Try svg background
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Nov 19, 2024
1 parent c48f1d8 commit ba39a5a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/opsmaru_web/components/course_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ defmodule OpsmaruWeb.CourseComponents do

def infrastructure_setup(assigns) do
~H"""
<div class="mx-auto max-w-2xl lg:max-w-7xl">
<h3 class="mt-24 font-mono text-xs/5 font-semibold uppercase tracking-widest text-gray-500 data-[dark]:text-gray-400">
<div id="infrastructure-setup" class="mx-auto max-w-2xl lg:max-w-7xl">
<h3 class="mt-24 font-mono text-xs/5 font-semibold uppercase tracking-widest text-slate-500">
<%= @category.name %>
</h3>
<hr class="mt-6 border-t border-slate-200" />
Expand Down
6 changes: 3 additions & 3 deletions lib/opsmaru_web/components/home_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ defmodule OpsmaruWeb.HomeComponents do
</div>
<div
id="slides"
class="relative"
class="relative bg-[url('/site/images/liquid-cheese.svg')] bg-cover bg-center bg-repeat bg-fixed py-32"
>
<div id="slides-container" class="relative">
<div
:for={slide <- @slides}
class="slide-item flex items-center justify-center mb-32"
class="slide-item flex items-center justify-center mb-32 last:mb-0"
>
<div>
<div class="slide-image w-[20rem] h-[14rem] sm:w-[576px] sm:h-[384px] md:w-[704px] md:h-[469px] lg:w-[960px] lg:h-[640px] xl:w-[1216px] xl:h-[811px] 2xl:w-[1472px] 2xl:h-[981px] relative aspect-[var(--width)/var(--height)] [--radius:theme(borderRadius.xl)]">
Expand All @@ -76,7 +76,7 @@ defmodule OpsmaruWeb.HomeComponents do
class="h-full aspect-[3/2] rounded-[var(--radius)] shadow-2xl"
/>
</div>
<div class="slide-caption mt-12 mx-auto text-center bg-slate-100 w-fit px-8 py-4 rounded-full">
<div class="slide-caption mt-12 mx-auto text-center bg-white w-fit px-8 py-4 rounded-full">
<h2 class="slide-title bg-gradient-to-br from-blue-500 from-[28%] via-purple-400 via-[70%] to-violet-600 font-semibold text-transparent bg-clip-text text-2xl">
<%= slide.title %>
</h2>
Expand Down
1 change: 1 addition & 0 deletions lib/opsmaru_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule OpsmaruWeb.Router do
live "/blog/:id", BlogLive

live "/how-to", CourseLive.Index
live "/how-to/:id", CourseLive

live "/our-product/pricing", PricingLive

Expand Down
1 change: 1 addition & 0 deletions priv/static/images/liquid-cheese.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ba39a5a

Please sign in to comment.