// Code generated by templ - DO NOT EDIT.

// templ: version: v0.2.663
package public_landingpage

//lint:file-ignore SA4006 This context is only used if a nested component is present.

import "github.com/a-h/templ"
import "context"
import "io"
import "bytes"

import (
	"cpone/layout"
)

func MainLandingPage(medicalServiceComponent templ.Component, listAdvantageComponent templ.Component, listPromotion templ.Component, footer templ.Component) templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var1 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var1 == nil {
			templ_7745c5c3_Var1 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"wrapper-custom mb-25\"><!-- Navbar Start --><nav class=\"navbar navbar-expand-sm navbar-expand-lg navbar-lp justify-content-between\"><a class=\"navbar-brand\" href=\"#\"><img src=\"/asset-corporate-portal/media/landingpage/logo.png\" width=\"126\" height=\"40\" class=\"d-inline-block align-top\" alt=\"Your Brand\"></a> <button type=\"button\" class=\"btn btn-lg btn-primary btn-pill\"><span class=\"title\">Login</span></button></nav><!-- Navbar End --><!-- jumbotron START --><!-- <div class=\"jumbotron jumbotron-lp d-none d-lg-block\"> -->")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = HeaderCard().Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!-- jumbotron END --><!-- Our Medical Service START --><div class=\"row\">")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = HeaderSection("Our Medical Services", "Discover excellence in healthcare at Our Medical Services. From diagnosis to treatment, our dedicated team provides personalized care for your well-being.").Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = medicalServiceComponent.Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!-- Our Medical Service END --><!-- Why Westerindo START  belum fix di ukuran < 1400 --><div class=\"container p-0 mt-5 \"><div class=\"row\">")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = HeaderSection("Why Westerindo", "With a dedicated team of professionals we’re committed to providing medical attention tailored to your needs, ensuring a journey to optimal health and vitality.").Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = listAdvantageComponent.Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><!-- Why Westerindo END --><!-- Promotion START --><div class=\"container mt-4\"><div class=\"row\">")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = HeaderSection("Promotions", "Seize This Opportunity to Enhance Your Health").Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = listPromotion.Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("</div><!-- Promotion END --><!-- footer START -->")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		templ_7745c5c3_Err = footer.Render(ctx, templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!-- footer END --></div>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}

func CssLandingPage() templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var2 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var2 == nil {
			templ_7745c5c3_Var2 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<link rel=\"stylesheet\" href=\"assets/css/googlefont/poppins.css\"><link rel=\"stylesheet\" href=\"assets/css/googlefont/publicsans.css\"><link rel=\"stylesheet\" href=\"assets/css/googlefont/roboto.css\"><!-- slick --><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/slick/slick.css\"><link rel=\"stylesheet\" type=\"text/css\" href=\"assets/css/slick/slick-theme.css\"><style>\r\n    body {\r\n      background-color: white;\r\n      /* padding-right: 100px;\r\n            padding-left: 100px; */\r\n    }\r\n\r\n    .navbar-lp {\r\n      padding-top: 40px;\r\n      padding-bottom: 40px;\r\n    }\r\n\r\n    .jumbotron-lp {\r\n      border-radius: 32px;\r\n      /* background: #3B4F9F; */\r\n    }\r\n\r\n    .title {\r\n      /* color: #FFF; */\r\n      font-family: Poppins;\r\n      font-size: 15px;\r\n      /* font-size: 1vw; */\r\n      font-style: normal;\r\n      font-weight: 700;\r\n    }\r\n\r\n    .title-jumbotron-sm {\r\n      /* color: #FFF; */\r\n      font-family: Poppins;\r\n      font-size: 32px;\r\n      /* font-size: 3vw; */\r\n      font-style: normal;\r\n      font-weight: 600;\r\n    }\r\n\r\n    .title-jumbotron-md {\r\n      /* color: #FFF; */\r\n      font-family: Poppins;\r\n      font-size: 42px;\r\n      /* font-size: 3vw; */\r\n      font-style: normal;\r\n      font-weight: 600;\r\n    }\r\n\r\n    .title-jumbotron {\r\n      /* color: #FFF; */\r\n      font-family: Poppins;\r\n      font-size: 52px;\r\n      /* font-size: 3vw; */\r\n      font-style: normal;\r\n      font-weight: 600;\r\n    }\r\n\r\n    .sub-title-jumbotron {\r\n      /* color: #FFF; */\r\n      font-family: Poppins;\r\n      font-size: 16px;\r\n      /* font-size: 1vw; */\r\n      font-style: normal;\r\n      font-weight: 400;\r\n    }\r\n\r\n    .btn-login {\r\n      border-radius: 40px;\r\n      /* background-color: #3B4F9F; */\r\n      box-shadow: 0px 8px 16px 0px rgba(59, 79, 159, 0.24);\r\n    }\r\n\r\n    .title-get-started {\r\n      /* color: #0C518C; */\r\n      font-family: Poppins;\r\n      font-size: 20px;\r\n      /* font-size: 1vw; */\r\n      font-style: normal;\r\n      font-weight: 700;\r\n    }\r\n\r\n    .custom-button-get-started {\r\n      border-radius: 40px;\r\n      /* background-color: #FFF; */\r\n      box-shadow: 0px 8px 16px 0px rgba(12, 81, 140, 0.24);\r\n      padding: 20px;\r\n      margin-top: 44px;\r\n      justify-content: center;\r\n      align-items: center;\r\n      width: 242px;\r\n    }\r\n\r\n    .title-section {\r\n      /* color: #000; */\r\n      font-family: Poppins;\r\n      font-size: 40px;\r\n      /* font-size: 3vw; */\r\n      font-style: normal;\r\n      font-weight: 600;\r\n      line-height: 80px;\r\n      margin-bottom: 16px;\r\n    }\r\n\r\n    .sub-title-section {\r\n      /* color: #212B36; */\r\n      font-family: Poppins;\r\n      font-size: 20px;\r\n      /* font-size: 1.5vw; */\r\n      font-style: normal;\r\n      font-weight: 400;\r\n      line-height: 36px;\r\n    }\r\n\r\n    .custom-card-lp {\r\n      border-radius: 24px;\r\n      border: 1px solid #d9d9d9;\r\n      margin-top: 40px;\r\n    }\r\n\r\n    .title-fs-20 {\r\n      /* color: #0E1E28; */\r\n      font-family: Poppins;\r\n      font-size: 20px;\r\n      /* font-size: 1.5vw; */\r\n      font-style: normal;\r\n      /* font-weight: 500; */\r\n      line-height: 36px;\r\n    }\r\n\r\n    .sub-title-fs-12 {\r\n      /* color: #0E1E28; */\r\n      font-family: Poppins;\r\n      font-size: 12px;\r\n      /* font-size: 0.9vw; */\r\n      font-style: normal;\r\n      font-weight: 400;\r\n      line-height: 20px;\r\n      margin-bottom: 16px;\r\n    }\r\n\r\n    .icon-container {\r\n      display: inline-block;\r\n      border-radius: 8px;\r\n      margin-bottom: 16px;\r\n      width: 40px;\r\n      height: 40px;\r\n      text-align: center;\r\n      line-height: 40px;\r\n    }\r\n\r\n    .link-learn-more {\r\n      /* color: #3B4F9F; */\r\n      font-family: Poppins;\r\n      font-size: 16px;\r\n      font-style: normal;\r\n      font-weight: 500;\r\n      line-height: normal;\r\n      text-decoration: none;\r\n    }\r\n\r\n    .wrapper-custom {\r\n      /* background: #1B1D1F; */\r\n      padding-left: 10vw;\r\n      padding-right: 10vw;\r\n    }\r\n\r\n    .media-left-icon {\r\n      width: 40px;\r\n      height: 40px;\r\n    }\r\n\r\n    .footer-title {\r\n      /* color: #FFF; */\r\n      font-family: Poppins;\r\n      font-size: 14px;\r\n      font-style: normal;\r\n      font-weight: 500;\r\n      line-height: 20px;\r\n    }\r\n\r\n    .footer-sub-title {\r\n      /* color: #C3C4C5; */\r\n      font-family: Poppins;\r\n      font-size: 12px;\r\n      font-style: normal;\r\n      font-weight: 400;\r\n      line-height: 20px;\r\n    }\r\n\r\n    .logo-footer {\r\n      margin-bottom: 24px;\r\n      margin-top: -20px;\r\n    }\r\n\r\n    .garis {\r\n      /* background: #C3C4C5; */\r\n      height: 0.2px;\r\n    }\r\n    .card-footer {\r\n        background-color: transparent !important;\r\n        border: none;\r\n      }\r\n      .slick-prev:before,\r\n      .slick-next:before {\r\n        color: var(--primarybg);\r\n      }\r\n      .img-header {\r\n        object-fit: contain;\r\n      }\r\n      .underdev {\r\n        font-family: \"Public Sans\";\r\n        font-size: 64px;\r\n        font-style: normal;\r\n        font-weight: 700;\r\n        line-height: normal;\r\n      }\r\n      .underdevsub {\r\n        font-family: \"Public Sans\";\r\n        font-size: 26px;\r\n        font-style: normal;\r\n        font-weight: 400;\r\n        line-height: normal;\r\n      }\r\n  </style>")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}

func JsLandingPage() templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var3 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var3 == nil {
			templ_7745c5c3_Var3 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<!-- SCRIPT --><script type=\"text/javascript\" src=\"assets/js/slick/slick.min.js\"></script><script type=\"text/javascript\">\r\n      $(document).ready(function () {\r\n        // lg\r\n        $(\".responsive-lg\").slick({\r\n          dots: false,\r\n          autoplay: true,\r\n          autoplaySpeed: 2000,\r\n          infinite: true,\r\n          lazyLoad: \"ondemand\",\r\n          slidesToShow: 3,\r\n          slidesToScroll: 3,\r\n          nextArrow: '<button type=\"button\" class=\"slick-next\">Next</button>',\r\n          prevArrow:\r\n            '<button type=\"button\" class=\"slick-prev\">Previous</button>',\r\n        });\r\n\r\n        // md\r\n        $(\".responsive-md\").slick({\r\n          dots: false,\r\n          autoplay: true,\r\n          autoplaySpeed: 2000,\r\n          infinite: true,\r\n          lazyLoad: \"ondemand\",\r\n          slidesToShow: 2,\r\n          slidesToScroll: 2,\r\n        });\r\n\r\n        // sm\r\n        $(\".responsive-sm\").slick({\r\n          dots: false,\r\n          autoplay: true,\r\n          autoplaySpeed: 2000,\r\n          infinite: true,\r\n          lazyLoad: \"ondemand\",\r\n          slidesToShow: 1,\r\n          slidesToScroll: 1,\r\n        });\r\n      });\r\n    </script><!-- SCRIPT -->")
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}

func ShowLandingPage(title string, cmp templ.Component, css templ.Component, js templ.Component) templ.Component {
	return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
		templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
		if !templ_7745c5c3_IsBuffer {
			templ_7745c5c3_Buffer = templ.GetBuffer()
			defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
		}
		ctx = templ.InitializeContext(ctx)
		templ_7745c5c3_Var4 := templ.GetChildren(ctx)
		if templ_7745c5c3_Var4 == nil {
			templ_7745c5c3_Var4 = templ.NopComponent
		}
		ctx = templ.ClearChildren(ctx)
		templ_7745c5c3_Var5 := templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) {
			templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer)
			if !templ_7745c5c3_IsBuffer {
				templ_7745c5c3_Buffer = templ.GetBuffer()
				defer templ.ReleaseBuffer(templ_7745c5c3_Buffer)
			}
			templ_7745c5c3_Err = cmp.Render(ctx, templ_7745c5c3_Buffer)
			if templ_7745c5c3_Err != nil {
				return templ_7745c5c3_Err
			}
			if !templ_7745c5c3_IsBuffer {
				_, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer)
			}
			return templ_7745c5c3_Err
		})
		templ_7745c5c3_Err = layout.PlaygroundLayout(title, css, js).Render(templ.WithChildren(ctx, templ_7745c5c3_Var5), templ_7745c5c3_Buffer)
		if templ_7745c5c3_Err != nil {
			return templ_7745c5c3_Err
		}
		if !templ_7745c5c3_IsBuffer {
			_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W)
		}
		return templ_7745c5c3_Err
	})
}
