-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviews.bpp
152 lines (136 loc) · 3.62 KB
/
views.bpp
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
view BaseText {
type = "p"
font-family = "Inter, sans-serif"
margin = "0"
color = colors.text-light
}
view HeadingText:BaseText {
type = "h1"
font-weight = font-weights.black
letter-spacing = "-2px"
background = "linear-gradient(135deg, " + colors.primary + " 0%, " + colors.primary-dark + " 50%, " + colors.primary-darker + " 100%)"
background-clip = "text"
color = "transparent"
}
view SubtleText:BaseText {
color = colors.text-muted
font-size = font-sizes.body
letter-spacing = "0.5px"
}
view body {
type = "body"
content = MainContainer
margin = "0"
padding = "0"
background = "linear-gradient(135deg, " + colors.bg-dark + " 0%, " + colors.bg-darker + " 100%)"
min-height = "100vh"
font-family = "Inter, sans-serif"
overflow-x = "hidden"
}
view MainContainer {
type = "div"
content = [Title, QuoteCard, ButtonContainer]
width = "100%"
display = "flex"
flex-direction = "column"
align-items = "center"
justify-content = "center"
height = "calc(100vh - 48px)"
padding = "24px"
}
view Title {
type = "div"
content = [TitleText, SubtitleText]
margin-bottom = "64px"
text-align = "center"
transition = transitions.transform
onmouseover = TitleHover
onmouseout = TitleUnhover
}
view TitleText:HeadingText {
content = "🏎️ Bwoah"
font-size = font-sizes.h1
margin-bottom = "16px"
text-shadow = "0 20px 40px rgba(0,0,0,0.15)"
}
view SubtitleText:SubtleText {
content = "Random Kimi Räikkönen Quotes"
}
view BaseCard {
type = "div"
background = "rgba(30, 41, 59, 0.8)"
backdrop-filter = "blur(20px)"
border-radius = "24px"
transition = transitions.all
border = "1px solid rgba(148, 163, 184, 0.1)"
}
view QuoteCard:BaseCard {
content = [QuoteContent, Attribution]
max-width = "800px"
width = "100%"
padding = "40px"
margin-bottom = "48px"
box-shadow = shadows.card + ", " + shadows.inset-light
position = "relative"
onmouseover = QuoteCardHover
onmouseout = QuoteCardUnhover
}
view QuoteContent {
type = "div"
content = [QuoteIcon, QuoteText]
margin-bottom = "24px"
position = "relative"
}
view QuoteIcon {
type = "span"
content = "❝"
font-size = font-sizes.h1
color = colors.primary
display = "block"
margin-bottom = "24px"
text-align = "center"
opacity = "0.8"
transition = transitions.transform
onmouseover = QuoteIconHover
onmouseout = QuoteIconUnhover
}
view QuoteText:HeadingText {
content = KimiQuote.quote
font-size = font-sizes.h2
font-weight = font-weights.medium
text-align = "center"
transition = transitions.all
}
view Attribution:SubtleText {
content = "— Kimi Räikkönen"
font-style = "italic"
text-align = "right"
font-size = font-sizes.small
}
view ButtonContainer {
type = "div"
content = RefreshButton
text-align = "center"
margin-top = "16px"
}
view BaseButton {
type = "button"
border = "none"
cursor = "pointer"
font-family = "Inter, sans-serif"
transition = transitions.all
onmouseover = ButtonHover
onmouseout = ButtonUnhover
}
view RefreshButton:BaseButton {
content = "🏁 Leave Me Alone, I Know What To Do"
background = "linear-gradient(135deg, " + colors.primary + " 0%, " + colors.primary-dark + " 100%)"
color = colors.text-light
font-weight = font-weights.semibold
padding = "20px 40px"
border-radius = "9999px"
font-size = font-sizes.small
box-shadow = shadows.button + ", " + shadows.inset-light
letter-spacing = "0.5px"
onclick = QuoteRefresh
}