Skip to content

Commit

Permalink
Componentize HR
Browse files Browse the repository at this point in the history
  • Loading branch information
fditrapani committed Sep 4, 2020
1 parent 56f3def commit ba5784b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,25 @@ function renderTextButton( $text, $textColor = "#1282D6" ){
return $textButton;
}

function renderHorizontalRule() {
$color = include("colors.php");

return "<hr size='1' noshade color='$color[border]' />";
}

function renderSupport() {
$color = include("colors.php");
$verticalSpacer = renderVerticalSpacer( "40px" );
$halfVerticalSpacer = renderVerticalSpacer( "20px" );
$horitontalLine = renderHorizontalRule();
$title = renderSecondaryTitle("Need help? No problem!", "center");
$content = "<p style='max-width:400px;'>" . renderRegularText("Our Happiness Engineers are here to answer your questions & help you set up your site.") . "</p>";
$buttonCta = renderTextButton("Contact support");

$support = <<<EOD
<hr size="1" noshade color="$color[border]" />
$horitontalLine
$verticalSpacer
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center">
Expand Down

0 comments on commit ba5784b

Please sign in to comment.