From cb32d1258daec620ff24ed3223ee3098e1bb12fe Mon Sep 17 00:00:00 2001 From: Ali Date: Wed, 12 Feb 2025 15:58:58 +0300 Subject: [PATCH] new design --- tailwind.config.js | 13 +- themes/hugoplate/layouts/index.html | 328 +++++++++++++++++----------- 2 files changed, 214 insertions(+), 127 deletions(-) diff --git a/tailwind.config.js b/tailwind.config.js index b136f11..52d91fb 100755 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -30,7 +30,7 @@ if (theme.fonts.font_family.secondary) { module.exports = { content: ["./hugo_stats.json"], safelist: [{ pattern: /^swiper-/ }], - + theme: { screens: { sm: "540px", @@ -44,6 +44,15 @@ module.exports = { padding: "2rem", }, extend: { + animation: { + 'fade-in-up': 'fadeInUp 0.5s ease-out', + }, + keyframes: { + fadeInUp: { + '0%': { opacity: 0, transform: 'translateY(20px)' }, + '100%': { opacity: 1, transform: 'translateY(0)' }, + }, + }, colors: { text: theme.colors.default.text_color.default, light: theme.colors.default.text_color.light, @@ -54,7 +63,7 @@ module.exports = { border: theme.colors.default.theme_color.border, "theme-light": theme.colors.default.theme_color.theme_light, "theme-dark": theme.colors.default.theme_color.theme_dark, - + }, fontSize: { base: font_base + "px", diff --git a/themes/hugoplate/layouts/index.html b/themes/hugoplate/layouts/index.html index 08d03ae..fe2ee4b 100755 --- a/themes/hugoplate/layouts/index.html +++ b/themes/hugoplate/layouts/index.html @@ -1,34 +1,41 @@ {{ define "main" }} + + + {{ with .Params.banner }}
-
-

+
+

{{ .title | markdownify }}

- -

+

{{ .subtitle | markdownify }}

- -
- {{ .content | markdownify }} -
- {{ with .button }} {{ if .enable }} {{ .label }} - + {{ end }} {{ end }} @@ -37,24 +44,28 @@

{{ end }} - - + + {{ with .Params.about }} -
-
-
-
- - who are we image +
+
+
+
+
+ About us +
-
-

+
+

{{ .title | markdownify }}

-

+

{{ .content | markdownify }}

@@ -62,29 +73,47 @@

{{ end }} - - + {{ with .Params.missionvision }} - -
-
-
-
-

{{ .mission_title }}

-

+

+
+
+
+
+
+ +
+

+ {{ replace .mission_title "🎯" "" }} + 🎯 +

+
+

{{ .mission | markdownify }}

-
-
-
-

{{ .vision_title }}

-

+ +

+
+
+ +
+

+ {{ replace .vision_title "🚀" "" }} + 🚀 +

+
+

{{ .vision | markdownify }}

@@ -92,132 +121,181 @@

{{ .vision_title }}

{{ end }} - - -
-
-
-
- -

{{ .Params.projects_title }}

-

{{ .Params.projects_description }}

-
- -
-

{{ .Params.cultural_exchange_title }}

-