Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = {
title: 'React Native Owl',
tagline: 'Visual Regression Testing for React Native',
url: 'https://formidable.com/',
url: 'https://formidable.com',
baseUrl: '/open-source/react-native-owl/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand Down Expand Up @@ -50,7 +50,7 @@ const config = {
},
announcementBar: {
id: 'announcement-blogpost',
content: `Read the announcement "<strong><a target="_blank" rel="noopener noreferrer" href="/blog/2022/react-native-owl/">We're Building a Visual Regression Testing Library for React Native</a></strong>" in our blog.`,
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.`,
isCloseable: false,
},
navbar: {
Expand Down
38 changes: 21 additions & 17 deletions website/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,26 @@ const FeatureList = [
},
];

export const HomepageFeatures = () => {
return FeatureList.map(({ title, description, imageSource }, idx) => {
return (
<section key={idx} className={styles.feature}>
<h2 className={styles.title}>{title}</h2>
<p className={styles.subtitle}>{description}</p>
export const HomepageFeatures: React.FC = () => {
return (
<>
{FeatureList.map(({ title, description, imageSource }, idx) => {
return (
<section key={idx} className={styles.feature}>
<h2 className={styles.title}>{title}</h2>
<p className={styles.subtitle}>{description}</p>

<div>
{!!imageSource && (
<img
src={`/open-source/react-native-owl${imageSource}`}
className={styles.sectionImageMockup}
/>
)}
</div>
</section>
);
});
<div>
{!!imageSource && (
<img
src={`/open-source/react-native-owl${imageSource}`}
className={styles.sectionImageMockup}
/>
)}
</div>
</section>
);
})}
</>
);
};
15 changes: 9 additions & 6 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import Layout from '@theme/Layout';
import { Hero } from '../components/Hero';
import { HomepageFeatures } from '../components/HomepageFeatures';

const META_DESCRIPTION =
'React Native Owl is a visual regression testing library for React Native that enables developers to introduce visual regression tests to their apps for iOS and Android.';

export default function Home() {
return (
<Layout
image="/images/homepage/social.png"
title="Visual Regression Testing"
description="Description will go into a meta tag in <head />"
description={META_DESCRIPTION}
wrapperClassName="homepage"
>
<Hero />
Expand All @@ -24,16 +28,15 @@ export default function Home() {
tests locally and on your preferred CI service, seamless.
</p>

{/* REMOVE INITIALLY AS THIS WILL BE DEPLOYED BEFORE THE BLOG IN PUBLISHED
<p>
<p className="intro">
Learn more about the background behind this library in{' '}
<a href="https://formidable.com/blog/" target="_blank">
<a href="/blog/2022/react-native-owl/" target="_blank">
the announcement on the Formidable Blog
</a>
.
</p> */}
</p>

<p>
<p className="intro">
<em>
Note: This library is{' '}
<a href="/docs/introduction/work-in-progress">work-in-progress</a>.
Expand Down
Binary file added website/static/images/social.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.