Skip to content

Commit 3470fe0

Browse files
authored
home: try to fit in (vertically) (#10)
1 parent 6ace81c commit 3470fe0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/hexdocs/view/home/footer.gleam

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import lustre/attribute as a
22
import lustre/element/html as h
33

44
pub fn footer() {
5-
h.footer([a.class("mt-16 md:mt-0 lg:-mt-32")], [
5+
h.footer([], [
66
h.section([a.class("flex justify-end"), a.id("publishing-docs")], [hint()]),
77
h.section(
88
[
@@ -58,11 +58,13 @@ pub fn footer() {
5858
}
5959

6060
pub fn hint() {
61-
h.div([a.class("relative w-64 h-72")], [
61+
h.div([a.class("relative mx-6")], [
6262
h.div(
6363
[
6464
a.class("absolute"),
65-
a.class("inset-0"),
65+
a.class("w-64 h-72"),
66+
a.class("bottom-0"),
67+
a.class("right-0"),
6668
a.class("bg-gray-50"),
6769
a.class("dark:bg-gray-700"),
6870
a.class("rounded-tl-xl"),
@@ -138,11 +140,12 @@ pub fn hint() {
138140
h.div(
139141
[
140142
a.class("absolute"),
141-
a.class("inset-0"),
143+
a.class("w-64 h-68"),
144+
a.class("bottom-4"),
145+
a.class("-right-3.5"),
142146
a.class("bg-gray-100"),
143147
a.class("dark:bg-gray-800"),
144148
a.class("rotate-6"),
145-
a.class("left-4"),
146149
a.class("rounded-tl-xl"),
147150
a.class("rounded-tr-xl"),
148151
a.class("z-0"),

0 commit comments

Comments
 (0)