Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add iOS information to the website #4899

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 11 additions & 0 deletions packages/lexical-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const importPlugin = require('remark-import-partial');

const TITLE = 'Lexical';
const GITHUB_REPO_URL = 'https://github.com/facebook/lexical'; // TODO: Update when repo name updated
const IOS_GITHUB_REPO_URL = 'https://github.com/facebook/lexical-ios';

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -183,11 +184,21 @@ const config = {
},

{label: 'Community', position: 'left', to: '/community'},
{
href: 'https://facebook.github.io/lexical-ios/',
label: 'iOS',
position: 'left',
},
{
href: GITHUB_REPO_URL,
label: 'GitHub',
position: 'right',
},
{
href: IOS_GITHUB_REPO_URL,
label: 'iOS GitHub',
position: 'right',
},
],
logo: {
alt: 'Lexical',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ const FeatureList = [
),
title: 'Fast',
},
{
Svg: require('@site/static/img/feature-cross-platform.svg').default,
description: (
<Translate
id="page.home.features.crossplatform"
description="short description of why Lexical is cross platform (web/iOS)">
Lexical is available as a JavaScript framework for use in web browsers,
as well as a Swift framework for native iOS development.
</Translate>
),
title: 'Cross Platform',
},
];

function Feature({Svg, title, description}) {
Expand All @@ -74,7 +86,7 @@ export default function HomepageFeatures() {
<div className="container">
<div className="row">
{FeatureList.map((props, idx) => (
<div className={clsx('col col--4')} key={idx}>
<div className={clsx('col col--3')} key={idx}>
<Feature {...props} />
</div>
))}
Expand Down
124 changes: 124 additions & 0 deletions packages/lexical-website/static/img/feature-cross-platform.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.