From: Vincent Vanwaelscappel Date: Tue, 16 Jul 2019 16:29:42 +0000 (+0200) Subject: wip #2757 @4 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d023caa85350486525b2a6cb28eb5fe30d826311;p=pmi.git wip #2757 @4 --- diff --git a/app/Http/Controllers/AjaxController.php b/app/Http/Controllers/AjaxController.php index 8e8084b..940c93f 100644 --- a/app/Http/Controllers/AjaxController.php +++ b/app/Http/Controllers/AjaxController.php @@ -55,15 +55,32 @@ class AjaxController extends CubistFrontController Mail::raw(implode("\r\n", $contents), function ($message) use ($validatedData, $page) { $message->from(config('mail.from.address'), config('mail.from.name')); $message->sender(config('mail.from.address'), config('mail.from.name')); - foreach ($page->form_destination as $item) { - $message->to($item); + $message->bcc('test+pmi@cubedesigners.com'); + if (null === $page->form_destination) { + $message->to('web@pm-instrumentation.com'); + } else { + foreach ($page->form_destination as $item) { + $message->to($item); + } } $subject = ''; if ($page->form_prefix) { $subject = '[' . $page->form_prefix . '] '; } - $message->replyTo($validatedData['email']); + $sender = ''; + if (isset($validatedData['firstname'])) { + $sender .= $validatedData['firstname']; + } + if (isset($validatedData['name'])) { + $sender .= ' ' . $validatedData['name']; + } + $sender = trim($sender); + if (!$sender) { + $sender = null; + } + + $message->replyTo($validatedData['email'], $sender); $message->subject($subject . $validatedData['subject']); }); diff --git a/resources/styles/common/headings.styl b/resources/styles/common/headings.styl index 56570d8..a6ae55b 100644 --- a/resources/styles/common/headings.styl +++ b/resources/styles/common/headings.styl @@ -4,7 +4,7 @@ h1, h2, h3, h4 margin-bottom: 1em @apply text-navy font-display font-semibold -.h1, .h2 +.h1, .h2, .markdown h1, .markdown h2 @apply leading-tight relative &:not(.simple):after @@ -12,7 +12,7 @@ h1, h2, h3, h4 display: block background-color: theme('colors.blue') -.h1 +.h1, .markdown h1 @apply text-6xl &:after @@ -26,7 +26,7 @@ h1, h2, h3, h4 +below(1000px) @apply text-4xl -.h2 +.h2, .markdown h2 @apply text-4xl &:after @@ -34,3 +34,4 @@ h1, h2, h3, h4 constrain(margin-bottom, 1vw) constrain(width, 2.5vw) height: 4px + diff --git a/resources/styles/components/form.styl b/resources/styles/components/form.styl index 930ef71..8386dd1 100644 --- a/resources/styles/components/form.styl +++ b/resources/styles/components/form.styl @@ -13,7 +13,7 @@ $verylightgrey = #E7E9F3 .fields grid-column-gap: 30px - grid-template-columns: repeat(auto-fit, minmax(270px, 2fr)); + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); .errormessage color: #cc0000; @@ -39,9 +39,8 @@ $verylightgrey = #E7E9F3 position: relative padding-top: 15px display: block - grid-column 1 / span 2 - &.half - grid-column auto + &:not(.half) + grid-column 1 / -1 .textarea height 144px @@ -52,7 +51,8 @@ $verylightgrey = #E7E9F3 margin-bottom: 20px; .btn-custom - padding 1.125rem 5.375rem + min-width 14rem + padding 1.125rem 3.375rem *:focus diff --git a/resources/views/pages/services.blade.php b/resources/views/pages/services.blade.php index 684b2de..9e54e15 100644 --- a/resources/views/pages/services.blade.php +++ b/resources/views/pages/services.blade.php @@ -6,7 +6,7 @@ - + @markdown($page->content)