Files
.gitea
assets
content
data
i18n
layouts
static
admin
links
previews
shortcodes
components
card.js
image.js
index.js
text-field.js
audio.js
card.js
download.js
gallery.js
image.js
index.js
slider.js
youtube.js
config.yml
icons.js
index.html
data
schulchronik
favicon.ico
.gitignore
LICENSE
config.yml
gcg-website/static/admin/shortcodes/components/card.js
Denys Konovalov 13dde42eb0 Static CMS v2.0 ()
- [x] Update auf Static CMS v2.0
- [x] aktualisierte Shortcodes (schließt )
- [x] aktualisierte Previews (schließt )
- Ordnerunterstützung
- [x] vervollständigte Seiten
- [x] Aufräumarbeiten

Reviewed-on: 
2023-04-19 22:44:06 +02:00

13 lines
402 B
JavaScript

const Card = (child, opts = { vertical: false }) =>
h(
"span",
{
className:
"relative flex border border-slate-400 focus-within:border-blue-800 dark:focus-within:border-blue-100 focus-within:bg-slate-100 dark:focus-within:bg-slate-800 hover:bg-slate-100 dark:hover:bg-slate-800 pb-3 cursor-text group/active" +
(opts.vertical ? " flex-col" : ""),
},
child
);
export default Card;