sl1673495 / react-starry-sky

:tada: 非常漂亮的星空背景组件,基于React、Styled-Component开发。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Starry Sky

Introduction

a lovely and easy-to-use React background component develop for my girlfriend!💕

Usage

npm i react-starry-sky -S
.wrapper {
  position: relative;
  height: 100vh;
}
import React from 'react';
import ReactDOM from 'react-dom';
import Starry from 'react-starry-sky';

import './styles/index.css';

const Demo = () => (
  <Starry className="wrapper">
    SSH 💕 WYQ
  </Starry>
);

ReactDOM.render(<Demo />, window.document.getElementById('app'));

Preview

https://sl1673495.github.io/react-starry-sky/

Development

npm i
npm run dev

Navigate to http://localhost:8888

Build

npm run build:lib
npm run build:demo

Compiled assets files will be in build folder

About

:tada: 非常漂亮的星空背景组件,基于React、Styled-Component开发。


Languages

Language:JavaScript 100.0%