From dc2c1491fd3664f419772833210ce7916b8217f5 Mon Sep 17 00:00:00 2001 From: Sas Andy Date: Mon, 29 Apr 2024 15:26:58 +0700 Subject: [PATCH] revisi landing page scroll card --- assets/sindhu/landingpage.html | 5 +- services/landingpage.services.go | 24 ++++++ views/landingpage/landingpage.templ | 92 +++++++++++++++++++---- views/landingpage/landingpage_templ.go | 6 +- views/landingpage/medicalservice.templ | 21 +++--- views/landingpage/medicalservice_templ.go | 28 +++---- 6 files changed, 135 insertions(+), 41 deletions(-) diff --git a/assets/sindhu/landingpage.html b/assets/sindhu/landingpage.html index 1ebb4ea..e3dd05b 100644 --- a/assets/sindhu/landingpage.html +++ b/assets/sindhu/landingpage.html @@ -277,6 +277,9 @@ License: You must have a valid license purchased only from themeforest(the above /* background: #C3C4C5; */ height: 0.2px; } + .img-header { + object-fit: contain; + } @@ -340,7 +343,7 @@ License: You must have a valid license purchased only from themeforest(the above > Your Brand diff --git a/services/landingpage.services.go b/services/landingpage.services.go index c45c8f6..419a1ef 100644 --- a/services/landingpage.services.go +++ b/services/landingpage.services.go @@ -121,6 +121,20 @@ func (su *ServicesLandingPage) GetClientService() ([]ClientService, error) { ClientServiceIcon: "jam:medical", ClientServiceLink: "/", }, + { + ClientServiceID: 4, + ClientServiceName: "Medical Check Up 2", + ClientServiceDescription: "Supported by a professional medical, paramedical team, and as well as laboratory equipment ", + ClientServiceIcon: "jam:medical", + ClientServiceLink: "/", + }, + { + ClientServiceID: 5, + ClientServiceName: "Medical Check Up 3", + ClientServiceDescription: "Supported by a professional medical, paramedical team, and as well as laboratory equipment ", + ClientServiceIcon: "jam:medical", + ClientServiceLink: "/", + }, } return data, nil @@ -175,6 +189,16 @@ func (su *ServicesLandingPage) GetPromotionList() ([]Promotion, error) { PromotionAsset: "../../asset-corporate-portal/media/landingpage/promotion_3.png", PromotionLink: "", }, + { + PromotionID: 4, + PromotionAsset: "../../asset-corporate-portal/media/landingpage/promotion_2.png", + PromotionLink: "", + }, + { + PromotionID: 5, + PromotionAsset: "../../asset-corporate-portal/media/landingpage/promotion_3.png", + PromotionLink: "", + }, } return data, nil diff --git a/views/landingpage/landingpage.templ b/views/landingpage/landingpage.templ index 24ab491..3a7082d 100644 --- a/views/landingpage/landingpage.templ +++ b/views/landingpage/landingpage.templ @@ -60,20 +60,30 @@ templ MainLandingPage(medicalServiceComponent templ.Component, listAdvantageComp } templ CssLandingPage() { -
- - - - -
} templ JsLandingPage() { + + + + } templ ShowLandingPage(title string, cmp templ.Component, css templ.Component, js templ.Component) { diff --git a/views/landingpage/landingpage_templ.go b/views/landingpage/landingpage_templ.go index 7c93e98..ce5d530 100644 --- a/views/landingpage/landingpage_templ.go +++ b/views/landingpage/landingpage_templ.go @@ -115,7 +115,7 @@ func CssLandingPage() templ.Component { templ_7745c5c3_Var2 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -139,6 +139,10 @@ func JsLandingPage() templ.Component { templ_7745c5c3_Var3 = templ.NopComponent } ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } if !templ_7745c5c3_IsBuffer { _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) } diff --git a/views/landingpage/medicalservice.templ b/views/landingpage/medicalservice.templ index a293a94..a877e81 100644 --- a/views/landingpage/medicalservice.templ +++ b/views/landingpage/medicalservice.templ @@ -5,8 +5,9 @@ import ( ) templ MedicalService(title string, desciption string, icon string, link string) { -
-
+
+ +
{ desciption }

+
+