A lightweight react library to create fullpage websites

栏目: IT技术 · 发布时间: 4年前

内容简介:Here's a previewYou can check out a live demo

fullpage-react-fs

A lightweight react library to create fullpage websites

Here's a preview

A lightweight react library to create fullpage websites

You can check out a live demo here

View it being used in my personal blog at faisalrashid.online

Install

npm install --save fullpage-react-fs
or
yarn add fullpage-react-fs

Usage

import React from 'react'

import { FullPageContainer, FullPagePanel } from 'fullpage-react-fs'
import 'fullpage-react-fs/dist/index.css'

export const App = () => {
  return (
    <FullPageContainer showIndicators={true}>

      {/* Panel 1 */}
      <FullPagePanel bgColor='azure'>
        Your Content
      </FullPagePanel>

      {/* Panel 2 */}
      <FullPagePanel bgColor='lightgoldenrodyellow'>
        <div>Goes</div>
      </FullPagePanel>

      {/* Panel 3 */}
      <FullPagePanel>
        <h1>here</h1>
      </FullPagePanel>

    </FullPageContainer>
  )
}

As shown in the sample code above do not forget to import the CSS file.

License

MIT © FaisalST32


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Ruby语言入门

Ruby语言入门

Yugui / 丁明、吕嘉 / 东南大学出版社 / 2010 年4月 / 32.00元

《Ruby 语言入门(中文版)》为具有一定其他语言的编程经验的读者介绍Ruby的特征、Ruby中的编程方法和编程习惯。这些内容都是为了让读者能够边阅读Ruby的资料边进行实践性的学习所必须具备的基础知识。《Ruby 语言入门(中文版)》对Ruby的基础部分和元类、块语句这样独特的概念,以及由此产生的特有的文化进行了说明,以使读者能够了解到Ruby独特的思考方式。读完《Ruby 语言入门(中文版)》......一起来看看 《Ruby语言入门》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器