Feat: show colors by pressing words
This commit is contained in:
13
components/cardword.html
Normal file
13
components/cardword.html
Normal file
@ -0,0 +1,13 @@
|
||||
{{define "cardword"}}
|
||||
<div id="card-%s" style="
|
||||
background-color: {{.Color}};
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
color: white;
|
||||
text-shadow: 0 2px 4px rgba(0,0,0,0.8);
|
||||
cursor: pointer;"> {{.Word}}
|
||||
</div>
|
||||
{{end}}
|
Reference in New Issue
Block a user