diff --git a/frontend/public/index.css b/frontend/public/index.css index 9615ea6..40e1b5e 100644 --- a/frontend/public/index.css +++ b/frontend/public/index.css @@ -107,7 +107,7 @@ } /* -! tailwindcss v3.4.12 | MIT License | https://tailwindcss.com +! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com */ /* @@ -2935,14 +2935,8 @@ input.tab:checked + .tab-content, margin: 0px; } -.mx-auto { - margin-left: auto; - margin-right: auto; -} - -.my-2 { - margin-top: 0.5rem; - margin-bottom: 0.5rem; +.m-2 { + margin: 0.5rem; } .mb-5 { @@ -3237,6 +3231,10 @@ input.tab:checked + .tab-content, padding: 0.25rem; } +.p-10 { + padding: 2.5rem; +} + .p-2 { padding: 0.5rem; } diff --git a/v2/library/web/comp/assetcard.templ b/v2/library/web/comp/assetcard.templ index 2d74e93..39c25c9 100644 --- a/v2/library/web/comp/assetcard.templ +++ b/v2/library/web/comp/assetcard.templ @@ -12,7 +12,7 @@ css bgimg(url string) { templ AssetCard(m *AssetCardModel) {
- @NodeKindIcon(m.Asset) + @AssetKindIcon(m.Asset)
{ *m.Asset.Label }
@@ -58,14 +58,12 @@ templ AssetCard(m *AssetCardModel) {
} -templ NodeKindIcon(asset *entities.Asset) { - switch asset.NodeKind { - case entities.NodeKindDir: - folder-outline - case entities.NodeKindBundle: - folder-zip-outline - } +templ AssetKindIcon(asset *entities.Asset) { switch utils.VoZ(asset.Kind) { + case "bundle": + folder-zip-outline + case "dir": + folder-outline case "file": file-outline case "image": diff --git a/v2/web/comp/home.templ b/v2/web/comp/home.templ new file mode 100644 index 0000000..d80f842 --- /dev/null +++ b/v2/web/comp/home.templ @@ -0,0 +1,8 @@ +package comp + +templ Home() { +
+

Welcome to MMP:v2

+

To navigate to your library click Here

+
+} diff --git a/v2/web/comp/wrapper.templ b/v2/web/comp/wrapper.templ index da22b93..7c5fe37 100644 --- a/v2/web/comp/wrapper.templ +++ b/v2/web/comp/wrapper.templ @@ -25,7 +25,7 @@ templ WrapperComponent(model WrapperModel) {