Skip to content

Create MiniApp.js #298

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
26 changes: 26 additions & 0 deletions src/Gallery/insertYourLoaderHere/MiniApp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from "react"
import ContentLoader from "react-content-loader"

const MiniAppLoader = props => {
return (
<ContentLoader viewBox="0 0 800 120" height={120} width={800}>
<Rect x="25" y="10" rx="20" ry="20" width="70" height="70" />
<Rect x="25" y="90" rx="0" ry="0" width="70" height="15" />
<Rect x="115" y="10" rx="20" ry="20" width="70" height="70" />
<Rect x="115" y="90" rx="0" ry="0" width="70" height="15" />
<Rect x="205" y="10" rx="20" ry="20" width="70" height="70" />
<Rect x="205" y="90" rx="0" ry="0" width="70" height="15" />
<Rect x="295" y="10" rx="20" ry="20" width="70" height="70" />
<Rect x="295" y="90" rx="0" ry="0" width="70" height="15" />
</ContentLoader>
)
}

MiniAppLoader.metadata = {
name: 'Randy Rebucas',
github: 'randy-rebucas',
description: 'A loading skeleton for your mini app programs.',
filename: 'MiniApp',
}

export default MiniAppLoader