Newer
Older
Liliana Sanfilippo
committed
export function Hhopp({text}:{text: string}){
const arr = [];
for (let i = 0; i < text.length; i++) {
const x = text.charAt(i);
arr.push(<span aria-hidden="true">{x}</span>)
}
return(
<h1 className="playful" aria-label="Wash your hands">
{arr}
</h1>
)
}
Liliana Sanfilippo
committed
export function Hsmoke({text}:{text: string}){
const arr = [];
for (let i = 0; i < text.length; i++) {
const x = text.charAt(i);
arr.push(<span aria-hidden="true">{x}</span>)
}
return(
<h1 className="smoke" aria-label="Wash your hands">
{arr}
</h1>
)
}
export function H1({text}:{text: string}){
return(
Liliana Sanfilippo
committed
<div className="row hone">
<svg width="100%" height="100%">
<text x="0%" y="60%">
{text}
</text>
</svg>
</div>
)
}
/* export function Hprompt({text}:{text: string}){
return(
<div>
<h2>{text}</h2>
<hr/>
</div>
)
} */
<hr/>
</div>
)
}
Liliana Sanfilippo
committed
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
export function Hhighlight({children}:{children: React.ReactNode}){
return(
<div className="content v2">
{children}
</div>
)
}
export function Hspoiler({children}:{children: React.ReactNode}){
return(
<div className="content v3">
{children}
</div>
)
}
export function Hwave({text}:{text: string}){
return(
<svg viewBox="0 0 100 20">
<defs>
<linearGradient id="gradient" x1="0" x2="0" y1="0" y2="1">
<stop offset="5%" stop-color="#850F78"/>
<stop offset="95%" stop-color="#A0A7F3"/>
</linearGradient>
<pattern id="wave" x="0" y="0" width="120" height="20" patternUnits="userSpaceOnUse">
<path id="wavePath" d="M-40 9 Q-30 7 -20 9 T0 9 T20 9 T40 9 T60 9 T80 9 T100 9 T120 9 V20 H-40z" mask="url(#mask)" fill="url(#gradient)">
<animateTransform
attributeName="transform"
begin="0s"
dur="1.5s"
type="translate"
from="0,0"
to="40,0"
repeatCount="indefinite" />
</path>
</pattern>
</defs>
<text text-anchor="middle" x="50" y="15" font-size="17" fill="url(#wave)" fill-opacity="0.6">{text}</text>
<text text-anchor="middle" x="50" y="15" font-size="17" fill="url(#gradient)" fill-opacity="0.1">{text}</text>
</svg>
)
}
<div className="row">
<div className="col">
<div className="relative popart-wrapper">
)
}
export function Hshadone({text}:{text: string}){
return(
<div>
<p className="stroke shadow-stroke">{text}</p>
</div>
)
}