forked from RomanTurner/rephlex-generated-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.rb
43 lines (40 loc) · 1.2 KB
/
test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require 'pry'
STYLES = {
hero_container: {
xs:
"relative isolate overflow-hidden bg-gray-900 px-6 pt-16 shadow-2xl",
sm: "sm:rounded-3xl sm:px-16",
md: "md:pt-24",
lg: "lg:flex lg:gap-x-20 lg:px-24 lg:pt-0"
},
header_container: {
xs: "mx-auto max-w-md text-center",
lg: "lg:mx-0 lg:flex-auto lg:py-32 lg:text-left"
},
header: {
xs: "text-3xl font-bold tracking-tight text-white",
sm: "sm:text-4xl"
},
cta_container: {
xs: "mt-10 flex items-center justify-center gap-x-6",
lg: "lg:justify-start"
},
get_started: {
xs:
"rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm",
hover: "hover:bg-gray-100",
focus_visible: "focus_visible:outline focus_visible:outline-2 focus_visible:outline-offset-2 focus_visible:outline-white"
},
page_container: {
xs: "mx-auto max-w-7xl py-24",
sm: "sm:px-6 sm:py-32",
lg: "lg:px-8"
}
}
def tw_classes(klass)
{
class:
STYLES[klass].inject(&:join)
}
end
binding.pry