Skip to content

Commit c462c73

Browse files
authored
Brand updates (#174)
* update readme banner * remove announcement and update colors * replace formidable logo in nav * update footer --------- Co-authored-by: Christy Presler <cpresler@users.noreply.github.com>
1 parent 13d1989 commit c462c73

File tree

10 files changed

+38
-151
lines changed

10 files changed

+38
-151
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![React Native Owl — Formidable, We build the modern web](https://raw.githubusercontent.com/FormidableLabs/react-native-owl/main/website/static/images/RNO-Hero.png)](https://formidable.com/open-source/)
1+
[![React Native Owl](https://oss.nearform.com/api/banner?badge=owl&bg=95dd77&text=react+native+owl)](https://commerce.nearform.com/open-source/react-native-owl/)
22

33
`react-native-owl` — Visual regression testing for React Native
44

website/docusaurus.config.js

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ const config = {
5858
disableSwitch: true,
5959
respectPrefersColorScheme: false,
6060
},
61-
announcementBar: {
62-
id: 'announcement-blogpost',
63-
content: `Read the announcement "<strong><a target="_blank" href="/blog/2022/react-native-owl/">We're Building a Visual Regression Testing Library for React Native</a></strong>" in our blog.`,
64-
isCloseable: false,
65-
},
6661
navbar: {
6762
style: 'dark',
6863
title: 'React Native Owl',
@@ -104,42 +99,23 @@ const config = {
10499
position: 'right',
105100
},
106101
{
107-
href: 'https://formidable.com',
108-
className: 'header-formidable-link',
109-
'aria-label': 'Formidable Website',
102+
href: 'https://commerce.nearform.com/',
103+
className: 'header-nearform-link',
104+
'aria-label': 'Nearform Commerce Website',
110105
position: 'right',
111106
},
112107
],
113108
},
114109
footer: {
115110
style: 'dark',
116-
links: [
117-
{
118-
title: null,
119-
items: [
120-
{
121-
label: 'Getting Started',
122-
to: '/docs/introduction/getting-started',
123-
},
124-
{
125-
label: 'Config File',
126-
to: '/docs/introduction/config-file/',
127-
},
128-
{
129-
label: 'CLI',
130-
to: '/docs/cli/building-the-app/',
131-
},
132-
{
133-
label: 'Methods',
134-
to: '/docs/api/methods/',
135-
},
136-
{
137-
label: 'Matchers',
138-
to: '/docs/api/matchers/',
139-
},
140-
],
141-
},
142-
],
111+
logo: {
112+
alt: "Nearform logo",
113+
src: "images/nearform-logo-white.svg",
114+
href: "https://commerce.nearform.com",
115+
width: 100,
116+
height: 100,
117+
},
118+
copyright: `Copyright © ${new Date().getFullYear()} Nearform`,
143119
},
144120
prism: {
145121
defaultLanguage: 'javascript',

website/src/components/Hero/styles.module.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
.hero:after {
1616
background: inherit;
17-
border-bottom: 10px solid var(--brand-orange);
17+
border-bottom: 11px solid var(--brand-primary);
1818
content: '';
1919
display: block;
2020
height: 50%;
@@ -69,8 +69,7 @@
6969

7070
.buttons .ctaButton {
7171
border-radius: 3px;
72-
border-color: var(--brand-orange);
73-
background-color: var(--brand-orange);
74-
color: white;
72+
border-color: var(--brand-primary);
73+
background-color: var(--brand-primary);
7574
padding: 0.75rem 1.75rem;
7675
}

website/src/components/HomepageFeatures/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.feature {
2-
background-color: var(--brand-beige);
2+
background-color: var(--brand-neutral);
33
padding: 2rem;
44
margin: 2rem auto;
55
text-align: center;

website/src/css/custom.css

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--brand-blue: #1e2852;
10-
--brand-orange: #f04d21;
11-
--brand-beige: #ebe5da;
9+
--brand-blue: #000e38;
10+
--brand-primary: #95dd77;
11+
--brand-neutral: #f6f8fa;
1212

1313
--ifm-navbar-height: 4.25rem;
1414

1515
--ifm-h3-font-size: 2.2rem;
1616
--ifm-code-font-size: 95%;
1717

18-
--ifm-footer-padding-horizontal: 2rem;
19-
--ifm-footer-padding-vertical: 3.5rem;
18+
--ifm-footer-padding-vertical: 1rem;
2019
}
2120

2221
html[data-theme='dark'] {
@@ -56,16 +55,16 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
5655
no-repeat;
5756
}
5857

59-
.header-formidable-link:hover {
58+
.header-nearform-link:hover {
6059
opacity: 0.6;
6160
}
6261

63-
.header-formidable-link:before {
62+
.header-nearform-link:before {
6463
content: '';
65-
width: 26px;
66-
height: 26px;
64+
width: 32px;
65+
height: 24px;
6766
display: flex;
68-
background: url("data:image/svg+xml,%3Csvg fill='%23ffffff' viewBox='0 0 39 50' xmlns='http://www.w3.org/2000/svg' aria-labelledby='header-formidable-logo-icon'%0A%3E%3Ctitle id='header-formidable-logo-icon'%3EFormidable Icon%3C/title%3E%3Cpath d='M33.527 17.493l4.546-7.942c.145-.253.145-.56 0-.814L33.291.398V.38c-.018-.018-.036-.036-.036-.072l-.018-.019c-.018-.018-.036-.054-.054-.072-.018-.018-.055-.036-.073-.054l-.018-.018c-.018-.018-.036-.036-.054-.036 0 0-.018 0-.018-.019-.055-.036-.109-.054-.181-.072h-.019c-.018 0-.054-.018-.072-.018H5.561h-.018c-.019 0-.055 0-.073.018h-.018c-.054.018-.127.036-.181.072 0 0-.018 0-.018.019-.018.018-.037.018-.055.036L5.18.163c-.018.018-.054.036-.072.054-.018.018-.036.054-.055.072l-.018.019C5.017.326 5 .344 5 .38v.018L.11 8.738c-.145.253-.145.56 0 .813l4.673 8.159v26.863c0 .018 0 .054.018.072v.019c.018.054.036.126.072.18 0 0 0 .019.018.019.019.018.019.036.037.054l.018.018c.018.018.036.054.054.072.018.018.054.036.073.055l.018.018c.018.018.036.036.072.036h.018l8.35 4.775c.127.073.272.109.399.109.145 0 .271-.036.398-.109l8.35-4.775h.018c.018-.018.037-.036.073-.036l.018-.018c.018-.019.054-.037.072-.055.018-.018.037-.054.055-.072l.018-.018c.018-.018.036-.036.036-.054 0 0 0-.019.018-.019.036-.054.055-.108.073-.18v-.019c0-.018.018-.054.018-.072v-.018-9.57H32.657c.019 0 .055 0 .073-.018h.018c.054-.018.127-.036.181-.072 0 0 .018 0 .018-.018.018-.018.036-.018.055-.036l.018-.018c.018-.018.054-.036.072-.055.018-.018.036-.036.054-.072l.019-.018c.018-.018.036-.036.036-.072v-.018l4.782-8.34c.144-.253.144-.56 0-.814l-4.456-7.941zm-6.195 7.525H13.983c-.2-.018-.398.054-.561.181l-.019.018-.036.036c-.145.145-.235.344-.235.58v13.386l-6.738 3.853V18.289h24.778l-3.84 6.73zM21.5 43.054L14.762 39.2V27.786l6.738 6.73v8.538zM27.332 8.32H10.85L6.992 1.61H31.19l-3.858 6.711zM10.85 9.95h16.482l3.858 6.73H6.992l3.858-6.73zm21.735 5.898l-3.84-6.712 3.84-6.711 3.84 6.711-3.84 6.712zM5.597 2.424l3.84 6.711-3.84 6.712-3.858-6.712 3.858-6.711zm8.35 45.876l-6.72-3.835 6.72-3.835 6.72 3.835-6.72 3.835zm8.694-14.943l-6.738-6.729h11.43l3.857 6.73h-8.549zm9.944-.814l-3.84-6.71 3.84-6.712 3.84 6.711-3.84 6.711z' fill-rule='nonzero' %3E%3C/path%3E%3C/svg%3E%0A")
67+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='60 60 111.98 85.72'%3E%3Cpath class='cls-2' d='m60.18,60.18h11.3l36.71,53.4v-53.4h12.17v75.36h-11.3l-36.71-53.4v53.4h-12.17V60.18Z' stroke-width='0' fill='%23fff'/%3E%3Cpath class='cls-1' d='m126.51,135.54h45.29v11.09h-45.29v-11.09Z' fill='%2300e5a4'/%3E%3C/svg%3E")
6968
no-repeat;
7069
}
7170

@@ -112,19 +111,16 @@ html[data-theme='dark'] .docusaurus-highlight-code-line {
112111
}
113112

114113
/* Footer */
115-
116-
.footer {
117-
margin-top: 3rem;
114+
.footer__bottom.text--center {
115+
display: flex;
116+
justify-content: space-between;
117+
align-items: center;
118118
}
119119

120-
@media (max-width: 996px) {
121-
.footer {
122-
--ifm-footer-padding-horizontal: 2rem;
123-
}
120+
.footer__bottom.text--center a {
121+
opacity: 1 !important;
124122
}
125123

126-
@media (min-width: 1416px) {
127-
.footer {
128-
margin-top: 5rem;
129-
}
124+
.footer__copyright {
125+
color: white;
130126
}

website/src/theme/AnnouncementBar/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
display: flex;
77
align-items: center;
88
height: var(--docusaurus-announcement-bar-height);
9-
background-color: var(--brand-orange);
9+
background-color: var(--brand-primary);
1010
color: var(--ifm-color-white);
1111
}
1212

website/src/theme/Footer/index.tsx

Lines changed: 0 additions & 66 deletions
This file was deleted.

website/src/theme/Footer/styles.module.css

Lines changed: 0 additions & 22 deletions
This file was deleted.

website/static/images/RNO-Hero.png

-472 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)