main #3
1 changed files with 13 additions and 4 deletions
|
@ -1,8 +1,17 @@
|
|||
import happyx
|
||||
|
||||
component Glass:
|
||||
arg: string
|
||||
var
|
||||
newClass = "flex items-center justify-center flex-1 m-14 max-md:m-7 max-sm:m-0 rounded-3xl max-sm:rounded-none bg-white/20 backdrop-blur-xl drop-shadow-lg noise text-5xl"
|
||||
newHomeClass = newClass & " font-giga"
|
||||
|
||||
component Glass:
|
||||
text: string
|
||||
`template`:
|
||||
tArticle(class="flex items-center justify-center flex-1 m-14 max-md:m-7 max-sm:m-0 rounded-3xl max-sm:rounded-none bg-white/20 backdrop-blur-xl drop-shadow-lg noise"):
|
||||
{self.arg}
|
||||
tH(class=newClass):
|
||||
{self.text}
|
||||
|
||||
component GlassHome:
|
||||
text: string
|
||||
`template`:
|
||||
tH(class=newHomeClass):
|
||||
{self.text}
|
Loading…
Add table
Reference in a new issue