Skip to content

Commit

Permalink
docs: add logo to overview (firebase#2944)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehesp authored Jul 13, 2020
1 parent 8bbc97e commit 93f3543
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
19 changes: 16 additions & 3 deletions docs/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@
id: overview
title: FlutterFire Overview
sidebar_label: Overview
hide_title: true
---

Welcome to FlutterFire! 🔥
<img
data-asset="false"
src="/img/flutterfire.svg"
alt="FlutterFire Logo"
style={{
height: 100,
display: "block",
margin: "0 auto",
}}
/>

<h1 style={{ textAlign: 'center', marginBottom: '4rem' }}>FlutterFire Overview</h1>

Welcome to FlutterFire! 🔥

FlutterFire is a set of Flutter plugins which connect your Flutter application to [Firebase](https://firebase.com).

Expand Down Expand Up @@ -174,7 +188,7 @@ Once initialized, you're ready to get started using FlutterFire!

## Overriding Native SDK Versions

FlutterFire internally sets the versions of the native SDKs that each module uses. Each release is tested against a fixed
FlutterFire internally sets the versions of the native SDKs that each module uses. Each release is tested against a fixed
set of SDK version to ensure everything works as expected.

If you wish to change these versions, you can manually override the native SDK versions
Expand All @@ -200,7 +214,6 @@ Open your `/ios/Podfile` and add any of the globals below to the top of the file
$FirebaseSDKVersion = '21.1.0'
```


## Next Steps

On its own the [`firebase_core`](!firebase_core) plugin provides basic functionality for usage with Firebase. FlutterFire is broken down
Expand Down
4 changes: 4 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ module.exports = {
},
navbar: {
title: 'FlutterFire',
logo: {
alt: 'FlutterFire Logo',
src: '/img/flutterfire_300x.png',
},
links: [
{
to: 'docs/overview',
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function Home() {
<h1>{siteConfig.title}</h1>
<h2>{siteConfig.tagline}</h2>
<div className={styles.actions}>
<Link to={`${siteConfig.baseUrl}docs`}>Get Started &raquo;</Link>
<Link to={`${siteConfig.baseUrl}docs/overview`}>Get Started &raquo;</Link>
<Link to="https://github.com/firebaseextended/flutterfire">GitHub &raquo;</Link>
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion website/src/theme/MDXComponents/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { HTMLProps } from 'react';
import Link from '@docusaurus/Link';
import CodeBlock from '@theme/CodeBlock';
import Heading from '@theme/Heading';
import Tabs from '@theme/Tabs';
import Heading from '@theme/Heading';
import TabItem from '@theme/TabItem';
import IdealImage from '@theme/IdealImage';
import Zoom from 'react-medium-image-zoom';
Expand Down Expand Up @@ -41,6 +41,12 @@ export default {
},

img: (props: HTMLProps<HTMLImageElement>) => {
// @ts-ignore
if (props['data-asset'] === 'false') {
// @ts-ignore
return <img {...props} />;
}

let alt = props.alt || '';

// Prefix any alt tags with "hide:" to not show them as a caption
Expand Down

0 comments on commit 93f3543

Please sign in to comment.