Skip to content

Commit a196e21

Browse files
authored
Merge pull request #102 from couchbase/FEWD-5215-update-header-and-search-dropdown
update free trial button with GA event
2 parents 68dce77 + 25cbf23 commit a196e21

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

src/css/header.css

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,18 @@
133133
margin-left: var(--column-space);
134134
}
135135

136+
.free-trial-link {
137+
font-size: 16px;
138+
font-weight: 600;
139+
color: var(--color-brand-blue-secondary);
140+
text-decoration: none;
141+
margin-left: 35px;
142+
}
143+
144+
.free-trial-link:hover {
145+
text-decoration: none;
146+
}
147+
136148
.parent-site {
137149
/* margin: 0 10px;
138150
padding: 0 10px; */
@@ -297,13 +309,25 @@
297309

298310
.search {
299311
margin: 10px 0;
312+
width: 100%;
313+
text-align: center;
300314
}
301315

316+
.search input,
302317
.search .query {
303-
border: 1px solid var(--color-brand-gray5);
304-
padding: 10px 20px;
318+
height: 35px;
319+
padding: 7px;
320+
font-size: 15px;
321+
line-height: 21px;
322+
border: 1px solid #FFFFFFBF;
323+
border-radius: 4px;
324+
margin-right: 5px;
305325
}
306326

327+
.search .fa-search {
328+
font-size: 18px;
329+
color: #FFFFFFBF;
330+
}
307331
/* .parent-site {
308332
border-left: none;
309333
}
@@ -317,6 +341,9 @@
317341
color: var(--color-brand-blue);
318342
margin: 0;
319343
}
344+
.free-trial-link {
345+
color: var(--color-brand-white);
346+
}
320347

321348
.header-bottom-row.is-active {
322349
display: block;

src/partials/header-content.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,14 @@
7171
<div class="primary-action">
7272
{{#if env.ALGOLIA_API_KEY}}
7373
<form class="navbar-item search" id="search">
74-
<input class="query" type="text" placeholder="Search Docs"{{#if page.home}} autofocus{{/if}}><i class="fas fa-search"></i>
74+
<input class="dataLayer query" type="text" placeholder="Search Docs"{{#if page.home}} autofocus{{/if}}><i class="fas fa-search"></i>
7575
</form>
7676
{{/if}}
77-
<a class="btn btn-primary try-btn" href="https://www.couchbase.com/downloads">
77+
<a href="https://cloud.couchbase.com/sign-up" class="free-trial-link" onclick="(window.dataLayer=window.dataLayer||[]).push({'event':'customEvent', 'category':'CTA', 'action':'Button Click', 'label':'Free Trial'});" >
78+
<i class="fas fa-cloud"></i>
79+
Free Trial
80+
</a>
81+
<a class="btn btn-primary try-btn" onclick="(window.dataLayer=window.dataLayer||[]).push({'event':'customEvent', 'category':'CTA', 'action':'Button Click', 'label':'Download'});" href="https://www.couchbase.com/downloads">
7882
Downloads
7983
</a>
8084
</div>

0 commit comments

Comments
 (0)