Skip to content

Commit 5034b4c

Browse files
committed
feat: add new intro page
1 parent 404ae82 commit 5034b4c

File tree

21 files changed

+212
-293
lines changed

21 files changed

+212
-293
lines changed
1.12 MB
Loading
2.14 MB
Loading
1.24 MB
Loading
2.4 MB
Loading
788 KB
Loading
1.47 MB
Loading

src/quo2/components/drawers/drawer_buttons/style.cljs

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@
44
(def outer-container {:height 216})
55

66
(def top-card
7-
{:flex 1
8-
:padding-vertical 12
9-
:padding-horizontal 20
10-
:border-radius 20
11-
:background-color colors/neutral-80})
7+
{:flex 1
8+
:padding-vertical 12
9+
:padding-horizontal 20
10+
:border-top-left-radius 20
11+
:border-top-right-radius 20
12+
:background-color colors/neutral-80})
1213

1314
(def bottom-card
14-
{:position :absolute
15-
:top 80
16-
:left 0
17-
:right 0
18-
:bottom 0
19-
:padding-vertical 12
20-
:padding-horizontal 20
21-
:border-radius 20
22-
:background-color (colors/alpha colors/white 0.05)})
15+
{:position :absolute
16+
:top 80
17+
:left 0
18+
:right 0
19+
:bottom 0
20+
:padding-vertical 12
21+
:padding-horizontal 20
22+
:border-top-left-radius 20
23+
:border-top-right-radius 20
24+
:background-color (colors/alpha colors/white 0.05)})
2325

2426
(def bottom-container
2527
{:flex-direction :row

src/quo2/components/drawers/drawer_buttons/view.cljs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,14 @@
3939
children))
4040

4141
(defn card
42-
[{:keys [on-press style heading gap top?]} children]
42+
[{:keys [on-press style heading gap accessibility-label top?]} children]
4343
[rn/touchable-highlight
44-
{:on-press on-press
45-
:border-radius 20
46-
:style style
47-
:underlay-color (:background-color style)}
48-
[rn/view {}
44+
{:accessibility-label accessibility-label
45+
:on-press on-press
46+
:border-radius 20
47+
:style style
48+
:underlay-color (:background-color style)}
49+
[rn/view
4950
[text/text
5051
{:size :heading-1
5152
:style (style/heading-text gap)
@@ -60,9 +61,11 @@
6061
opts
6162
{:container-style style-object
6263
:top-card { :on-press event
63-
:heading string}
64+
:heading string
65+
:accessibility-label keyword}
6466
:bottom-card { :on-press event
65-
:heading string}}
67+
:heading string
68+
:accessibility-label keyword}}
6669
child-1 string, keyword or hiccup
6770
child-2 string, keyword or hiccup
6871
"

0 commit comments

Comments
 (0)