Skip to content

Commit 08bf712

Browse files
authored
Merge pull request #60 from couchbase/change-footer-ui
Change footer UI
2 parents 1ba9ffb + 2ac9a23 commit 08bf712

File tree

10 files changed

+124
-73
lines changed

10 files changed

+124
-73
lines changed

src/css/footer.css

Lines changed: 20 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
padding: 2.5rem 0;
55
position: relative;
66
z-index: var(--z-index-footer);
7+
box-shadow: 0 0 10px -5px #999;
78
}
89

910
.footer a {
@@ -21,18 +22,17 @@
2122
height: 1px;
2223
background-color: var(--color-footer-text);
2324
transform: scale3d(0, 0.9999, 0.9999);
24-
transition: transform 0.1s;
25+
transition: transform 0.3s;
2526
}
2627

27-
.footer a.icon::after,
28-
.footer a.btn::after {
28+
.footer .footer-logo a.icon::after {
2929
content: none;
3030
}
3131

3232
.footer a:focus::after,
3333
.footer a:hover::after {
3434
transform: scale3d(1, 0.9999, 0.9999);
35-
transition-duration: 0.05s;
35+
transition-duration: 0.3s;
3636
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3737
}
3838

@@ -45,7 +45,7 @@
4545
}
4646

4747
.footer-links .col {
48-
flex-basis: 33.3333%;
48+
flex-basis: 100%;
4949
padding-top: 0.625rem;
5050
}
5151

@@ -54,10 +54,6 @@
5454
padding: 0 0 1.25rem;
5555
}
5656

57-
.footer-links .col:nth-child(5) {
58-
flex-basis: 100%;
59-
}
60-
6157
.footer-logo {
6258
padding: 1rem 0;
6359
width: 193px;
@@ -135,41 +131,26 @@
135131
justify-content: center;
136132
flex-wrap: wrap;
137133
margin-top: -4px;
134+
flex-direction: column;
138135
}
139136

140137
.footer-links .social-icons li {
141-
display: inline-block;
138+
display: flex;
139+
justify-content: flex-start;
140+
align-items: center;
142141
padding: 0;
142+
margin-bottom: 1rem;
143143
}
144144

145145
.footer-links .social-icons a {
146146
display: flex;
147147
align-items: center;
148148
justify-content: center;
149-
width: 45px;
150-
height: 45px;
151-
margin: 0 0.125rem;
149+
margin: 0 0 0 0.5rem;
152150
border-radius: 50%;
153151
transition: background-color 0.3s ease-in-out;
154152
}
155153

156-
.footer-links .social-icons svg {
157-
fill: var(--color-footer-text);
158-
width: 35px;
159-
height: 29px;
160-
transition: fill 0.3s ease-in-out;
161-
}
162-
163-
.footer-links .social-icons a:focus,
164-
.footer-links .social-icons a:hover {
165-
background-color: var(--color-footer-text);
166-
}
167-
168-
.footer-links .social-icons a:focus svg,
169-
.footer-links .social-icons a:hover svg {
170-
fill: var(--color-footer-bg);
171-
}
172-
173154
.footer-terms {
174155
font-size: 0.875rem;
175156
line-height: 1;
@@ -190,16 +171,18 @@
190171
margin: 0.625rem 0.3125rem;
191172
}
192173

193-
@media screen and (min-width: 769px) {
174+
.footer-terms-links a {
175+
font-weight: var(--weight-bold);
176+
}
177+
178+
/* Responsive css */
179+
180+
@media screen and (min-width: 768px) {
194181
.footer-links .col {
195-
flex-basis: 22%;
182+
flex-basis: 24%;
196183
}
197184

198185
.footer-links .col:nth-child(1) {
199-
flex-basis: 34%;
200-
}
201-
202-
.footer-links .col:nth-child(5) {
203186
flex-basis: 100%;
204187
}
205188

@@ -228,22 +211,14 @@
228211
}
229212

230213
.footer-links .col {
231-
flex-basis: 17%;
214+
flex-basis: calc((100% - 27%) / 4);
232215
}
233216

234217
.footer-links .col:nth-child(1) {
235218
flex-basis: 27%;
236219
padding: 0 1.25rem;
237220
}
238221

239-
.footer-links .col:nth-child(2) {
240-
flex-basis: 16%;
241-
}
242-
243-
.footer-links .col:nth-child(5) {
244-
flex-basis: 23%;
245-
}
246-
247222
.footer-links li a {
248223
font-size: inherit;
249224
}
@@ -253,22 +228,7 @@
253228
padding-right: 0.75rem;
254229
}
255230

256-
.footer-terms {
257-
text-align: left;
258-
}
259-
260231
.footer-terms span {
261232
margin-left: 0.125rem;
262233
}
263234
}
264-
265-
@media screen and (min-width: 1200px) {
266-
.footer-links .social-icons a {
267-
width: 52px;
268-
height: 52px;
269-
}
270-
271-
.footer-links .social-icons svg {
272-
width: 50px;
273-
}
274-
}

src/css/vars.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@
5656
--color-shade: #f3f3f3;
5757
--color-navbar-bg: var(--color-brand-black);
5858
--color-navbar-text: var(--color-brand-white);
59-
--color-footer-bg: var(--color-brand-black);
60-
--color-footer-text: var(--color-brand-white);
59+
--color-footer-bg: var(--color-shade);
60+
--color-footer-bg-gray: var(--color-brand-black);
61+
--color-footer-text: var(--color-text);
6162

6263
/* Color for code block */
6364
--hljs-attr: #407787;

src/img/couchbase_logo_black.svg

Lines changed: 22 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Loading

src/partials/footer-content.hbs

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="col">
55
<div class="footer-logo">
66
<a href="https://www.couchbase.com" class="icon">
7-
<img src="{{{uiRootPath}}}/img/logo.svg" alt="Couchbase">
7+
<img src="{{{uiRootPath}}}/img/couchbase_logo_black.svg" alt="Couchbase">
88
</a>
99
</div>
1010
</div>
@@ -32,30 +32,37 @@
3232
<div class="col">
3333
<ul class="social-icons">
3434
<li>
35+
<svg width="14" height="14" viewBox="0 0 32 32"> <path id="facebook" class="cls-1" d="M29,0H3A2.652,2.652,0,0,0,0,3V29a2.652,2.652,0,0,0,3,3H16V18H12V14h4V12a6.452,6.452,0,0,1,6-6h4v4H22a2.151,2.151,0,0,0-2,2v2h6l-1,4H20V32h9a2.652,2.652,0,0,0,3-3V3A2.652,2.652,0,0,0,29,0Z"/></svg>
3536
<a href="https://www.facebook.com/Couchbase" class="icon">
36-
<svg width="50px" height="50px" viewBox="26.363 116.363 560.215 560.215"><path d="m586.58 209.58c0-48.96-44.252-93.212-93.212-93.212h-373.79c-48.96 0-93.212 44.252-93.212 93.212v373.79c0 48.96 44.252 93.212 93.212 93.212h186.42v-211.85h-68.732v-93.212h68.732v-36.72c0-63.083 47.077-119.58 105.45-119.58h75.323v93.212h-75.323c-8.474 0-17.889 10.357-17.889 25.422v37.662h93.212v93.212h-93.212v211.85h99.803c48.96 0 93.212-44.252 93.212-93.212v-373.79z"/></svg>
37+
Facebook
3738
</a>
3839
</li>
3940
<li>
41+
<svg width="14" height="14" viewBox="0 0 32.1 26.1"> <path id="twitter" class="cls-1" d="M32,7.1a11.836,11.836,0,0,1-3.8,1,6.462,6.462,0,0,0,2.9-3.6,12.606,12.606,0,0,1-4.2,1.6A6.492,6.492,0,0,0,22.1,4a6.594,6.594,0,0,0-6.6,6.6,7.719,7.719,0,0,0,.2,1.5A18.458,18.458,0,0,1,2.2,5.2a6.294,6.294,0,0,0-.9,3.3A6.765,6.765,0,0,0,4.2,14a6.109,6.109,0,0,1-3-.8v.1a6.543,6.543,0,0,0,5.3,6.4,4.678,4.678,0,0,1-1.7.2,4.869,4.869,0,0,1-1.2-.1,6.679,6.679,0,0,0,6.1,4.6,12.917,12.917,0,0,1-8.2,2.8,9.151,9.151,0,0,1-1.6-.1,18.438,18.438,0,0,0,10.1,3c12.1,0,18.7-10,18.7-18.7v-.8A13.336,13.336,0,0,0,32,7.2Z" transform="translate(0.1 -4)"/></svg>
4042
<a href="https://twitter.com/couchbase" class="icon">
41-
<svg width="50px" height="50px" viewBox="32.012 176.622 542.326 437.815"><path d="m574.34 227.46c-19.772 8.474-41.428 15.065-64.025 17.889 22.597-14.123 40.486-35.778 48.96-61.2-21.655 13.182-45.194 21.655-70.615 27.305-20.714-21.655-48.96-34.837-80.972-34.837-61.2 0-111.1 49.902-111.1 111.1 0 8.474 0.942 16.948 2.825 25.422-92.271-5.649-174.18-49.902-229.74-117.69-9.415 16.006-15.065 35.778-15.065 55.551 0 38.603 19.772 72.498 49.902 92.271-17.889-0.942-35.778-5.649-50.843-14.123v0.942c0 53.668 38.603 98.862 89.446 109.22-9.415 2.825-18.831 3.766-29.188 3.766-7.532 0-14.123-0.942-20.714-1.883 14.123 44.252 55.551 76.265 103.57 77.206-37.662 30.129-85.68 48.018-138.41 48.018-9.415 0-17.889-0.941-26.363-1.883 48.96 32.012 107.34 49.902 170.42 49.902 204.31 0 316.36-169.48 316.36-316.36v-14.123c21.656-14.125 40.487-33.897 55.551-56.494z"/></svg>
43+
Twitter
4244
</a>
4345
</li>
4446
<li>
45-
<a href="https://www.linkedin.com/company/couchbase" class="icon">
46-
<svg width="50px" height="50px" viewBox="31.071 119.188 539.537 540.443"><path d="m531.97 119.19h-461.35c-21.655 0-39.545 16.948-39.545 38.603v463.24c0 21.655 17.889 38.603 39.545 38.603h460.41c21.655 0 39.545-16.948 39.545-38.603v-463.24c0.942-21.656-16.947-38.603-38.603-38.603zm-337.07 451.94h-81.914v-243.86h81.914v243.86zm-40.486-276.81c-28.246 0-46.135-18.831-46.135-42.369s17.889-42.369 46.135-42.369 45.194 17.889 45.194 42.369c0.942 23.538-16.948 42.369-45.194 42.369zm335.19 276.81h-81.914v-129.93c0-32.954-12.24-55.551-41.428-55.551-22.597 0-35.778 15.065-41.428 30.129-1.883 5.649-2.825 12.24-2.825 19.772v136.52h-81.914s0.942-221.26 0-243.86h81.914v34.837c11.298-16.948 30.129-40.486 73.44-40.486 53.668 0 94.154 34.837 94.154 110.16l1e-3 138.41zm-168.54-208.08s0.941-0.941 0 0z"/></svg>
47+
<svg width="14" height="14" viewBox="0 0 32 32"> <path id="linkedin" class="cls-1" d="M29,0H3A3.076,3.076,0,0,0,0,3V29a3.009,3.009,0,0,0,3,3H29a2.946,2.946,0,0,0,3-3V3A3.009,3.009,0,0,0,29,0ZM12,26H8V12h4ZM10,10a2,2,0,1,1,2-2A2.006,2.006,0,0,1,10,10ZM26,26H22V18a2,2,0,0,0-4,0v8H14V12h4v2.5c.8-1.1,2.1-2.5,3.5-2.5A4.736,4.736,0,0,1,26,17Z"/></svg>
48+
<a href="https://www.linkedin.com/company/couchbase" class="icon">
49+
Linkedin
4750
</a>
4851
</li>
4952
</ul>
5053
</div>
5154
</div>
5255
<div class="footer-terms">
53-
<span>{{{year}}} COUCHBASE All rights reserved.</span>
54-
<a href="https://www.couchbase.com/privacy-policy">Privacy Policy</a>
55-
<a href="https://www.couchbase.com/cookie-policy">Cookie Policy</a>
56-
<a href="https://www.couchbase.com/support-policy">Support Policy</a>
57-
<a href="https://www.couchbase.com/terms-of-use">Terms of Use</a>
58-
<a href="https://info.couchbase.com/unsubscribe-or-manage-preferences.html" target="_blank" rel="noopener">Marketing Preference Center</a>
56+
<div class="footer-terms-copyright">
57+
<span{{{year}}} Couchbase, Inc. Couchbase, Couchbase Lite and the Couchbase logo are registered trademarks of Couchbase, Inc.</span>
58+
</div>
59+
<div class="footer-terms-links">
60+
<a href="https://www.couchbase.com/terms-of-use">Terms of Use</a>
61+
<a href="https://www.couchbase.com/privacy-policy">Privacy Policy</a>
62+
<a href="https://www.couchbase.com/cookie-policy">Cookie Policy</a>
63+
<a href="https://www.couchbase.com/support-policy">Support Policy</a>
64+
<a href="https://info.couchbase.com/unsubscribe-or-manage-preferences.html" target="_blank" rel="noopener">Marketing Preference Center</a>
65+
</div>
5966
</div>
6067
</div>
6168
</footer>

0 commit comments

Comments
 (0)