From ba5784b59cddcac2b6d7aa650500c6ca6ba0c3b8 Mon Sep 17 00:00:00 2001 From: fditrapani Date: Fri, 4 Sep 2020 12:56:17 -0400 Subject: [PATCH] Componentize HR --- components.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components.php b/components.php index ede5dbf..bb96c18 100644 --- a/components.php +++ b/components.php @@ -218,17 +218,25 @@ function renderTextButton( $text, $textColor = "#1282D6" ){ return $textButton; } +function renderHorizontalRule() { + $color = include("colors.php"); + + return "
"; +} + function renderSupport() { $color = include("colors.php"); $verticalSpacer = renderVerticalSpacer( "40px" ); $halfVerticalSpacer = renderVerticalSpacer( "20px" ); + $horitontalLine = renderHorizontalRule(); $title = renderSecondaryTitle("Need help? No problem!", "center"); $content = "

" . renderRegularText("Our Happiness Engineers are here to answer your questions & help you set up your site.") . "

"; $buttonCta = renderTextButton("Contact support"); $support = << + $horitontalLine $verticalSpacer +