upped the abmout of banner repetitions
This commit is contained in:
parent
8ab42a6360
commit
ef871f4fbd
|
@ -5,7 +5,7 @@ import "fmt"
|
||||||
templ Banner(text string, icon string, colorBg string, colorText string) {
|
templ Banner(text string, icon string, colorBg string, colorText string) {
|
||||||
<div class={"col-span-3 text-center py-3 overflow-hidden", fmt.Sprintf("bg-[%s]", colorBg), fmt.Sprintf("text-[%s]", colorText)}
|
<div class={"col-span-3 text-center py-3 overflow-hidden", fmt.Sprintf("bg-[%s]", colorBg), fmt.Sprintf("text-[%s]", colorText)}
|
||||||
style="scrollbar-width: none; -ms-overflow-style: none;">
|
style="scrollbar-width: none; -ms-overflow-style: none;">
|
||||||
for i, x:= 0, 10 ; i < x ; i++ {
|
for i, x:= 0, 50 ; i < x ; i++ {
|
||||||
<div class="inline">
|
<div class="inline">
|
||||||
{text}
|
{text}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -47,7 +47,7 @@ func Banner(text string, icon string, colorBg string, colorText string) templ.Co
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
for i, x := 0, 10; i < x; i++ {
|
for i, x := 0, 50; i < x; i++ {
|
||||||
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"inline\">")
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"inline\">")
|
||||||
if templ_7745c5c3_Err != nil {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
|
|
Loading…
Reference in New Issue