1+ import styles from './index.module.less' ;
2+ import logo from '../../assets/logo-dark.svg' ;
3+
4+ const data = [
5+ {
6+ title : 'Product' ,
7+ childrens : [
8+ {
9+ href : 'https://github.com/uiwjs/react-native-uiw' ,
10+ title : 'React Native UIW on GitHub'
11+ } ,
12+ {
13+ href : 'https://github.com/uiwjs/react-native-template' ,
14+ title : 'React Native Template'
15+ } ,
16+ {
17+ href : 'https://github.com/uiwjs/uiw' ,
18+ title : 'UIW on GitHub'
19+ } ,
20+ {
21+ href : 'https://gitee.com/uiw/react-native-uiw' ,
22+ title : '国内镜像站点 🇨🇳'
23+ } ,
24+ ]
25+ } ,
26+ {
27+ title : '相关资源' ,
28+ childrens : [
29+ {
30+ href : 'https://uiwjs.github.io/icons' ,
31+ title : 'Preview Icons'
32+ } ,
33+ {
34+ href : 'https://github.com/uiwjs/react-native-uiw' ,
35+ title : 'React Native Upgrade Helper'
36+ } ,
37+ {
38+ href : 'https://github.com/jondot/awesome-react-native' ,
39+ title : 'Awesome React Native'
40+ } ,
41+ ]
42+ } ,
43+ {
44+ title : '相关组件' ,
45+ childrens : [
46+ {
47+ href : 'https://github.com/react-navigation/react-navigation' ,
48+ title : 'React Navigation'
49+ } ,
50+ {
51+ href : 'https://github.com/rematch/rematch' ,
52+ title : 'Rematch.js'
53+ } ,
54+ ]
55+ } ,
56+ {
57+ title : '其它资料' ,
58+ childrens : [
59+ {
60+ href : 'https://github.com/facebook/react' ,
61+ title : 'React'
62+ } ,
63+ {
64+ href : 'https://github.com/facebook/react-native' ,
65+ title : 'React Native'
66+ } ,
67+ {
68+ href : 'https://github.com/jaywcjlove/mocker-api' ,
69+ title : 'Mocker API'
70+ } ,
71+ ]
72+ }
73+ ] ;
74+
75+ type FooterProps = {
76+ placement ?: 'center' | 'left' ;
77+ }
78+
79+ export default function Footer ( props : FooterProps ) {
80+ const { placement } = props ;
81+ return (
82+ < footer className = { styles . warpper } >
83+ < div className = { styles . inner } style = { { ...( placement === 'left' ? { margin : 'inherit' } : { } ) } } >
84+ < div className = { styles . nav } >
85+ { data . map ( ( item , idx ) => {
86+ return (
87+ < nav key = { idx } >
88+ < div >
89+ < label > { item . title } </ label >
90+ < ul >
91+ { item . childrens . map ( ( child , _idx ) => {
92+ return (
93+ < li key = { _idx } >
94+ < a href = { child . href } target = "__blank" > { child . title } </ a >
95+ </ li >
96+ )
97+ } ) }
98+ </ ul >
99+ </ div >
100+ </ nav >
101+ ) ;
102+ } ) }
103+ </ div >
104+ < section >
105+ < div className = { styles . icons } >
106+ < a href = "https://uiwjs.github.io/react-native-uiw/" target = "__blank" >
107+ < img src = { logo } alt = "uiw logo" style = { { height : 27 } } />
108+ </ a >
109+ < a href = "https://github.com/uiwjs/react-native-uiw" target = "__blank" >
110+ < svg width = "20px" height = "20px" viewBox = "0 0 20 20" role = "img" >
111+ < path d = "M10 0C4.475 0 0 4.475 0 10a9.994 9.994 0 006.838 9.488c.5.087.687-.213.687-.476 0-.237-.013-1.024-.013-1.862-2.512.463-3.162-.612-3.362-1.175-.113-.287-.6-1.175-1.025-1.412-.35-.188-.85-.65-.013-.663.788-.013 1.35.725 1.538 1.025.9 1.512 2.337 1.087 2.912.825.088-.65.35-1.088.638-1.338-2.225-.25-4.55-1.112-4.55-4.937 0-1.088.387-1.987 1.025-2.688-.1-.25-.45-1.274.1-2.65 0 0 .837-.262 2.75 1.026a9.28 9.28 0 012.5-.338c.85 0 1.7.112 2.5.337 1.912-1.3 2.75-1.024 2.75-1.024.55 1.375.2 2.4.1 2.65.637.7 1.025 1.587 1.025 2.687 0 3.838-2.337 4.688-4.562 4.938.362.312.675.912.675 1.85 0 1.337-.013 2.412-.013 2.75 0 .262.188.574.688.474A10.016 10.016 0 0020 10c0-5.525-4.475-10-10-10z" />
112+ </ svg >
113+ </ a >
114+ < a href = "https://gitee.com/uiw/react-native-uiw" target = "__blank" >
115+ < svg viewBox = "0 0 1024 1024" width = "20" height = "20" >
116+ < path d = "M512 1024C229.2224 1024 0 794.7776 0 512S229.2224 0 512 0s512 229.2224 512 512-229.2224 512-512 512z m259.1488-568.8832H480.4096a25.2928 25.2928 0 0 0-25.2928 25.2928l-0.0256 63.2064c0 13.952 11.3152 25.2928 25.2672 25.2928h177.024c13.9776 0 25.2928 11.3152 25.2928 25.2672v12.6464a75.8528 75.8528 0 0 1-75.8528 75.8528H366.592a25.2928 25.2928 0 0 1-25.2672-25.2928v-240.1792a75.8528 75.8528 0 0 1 75.8272-75.8528h353.9456a25.2928 25.2928 0 0 0 25.2672-25.2928l0.0768-63.2064a25.2928 25.2928 0 0 0-25.2672-25.2928H417.152a189.6192 189.6192 0 0 0-189.6192 189.6448v353.9456c0 13.9776 11.3152 25.2928 25.2928 25.2928h372.9408a170.6496 170.6496 0 0 0 170.6496-170.6496v-145.408a25.2928 25.2928 0 0 0-25.2928-25.2672z" fill = "#C71D23" />
117+ </ svg >
118+ </ a >
119+ </ div >
120+ < div className = { styles . icons } >
121+ < a href = "https://github.com/uiwjs/react-native-uiw/issues" target = "__blank" >
122+ < img src = "https://img.shields.io/github/issues/uiwjs/react-native-uiw.svg" alt = "Github Issues" />
123+ </ a >
124+ < a href = "https://github.com/uiwjs/react-native-uiw/network" target = "__blank" >
125+ < img src = "https://img.shields.io/github/forks/uiwjs/react-native-uiw.svg" alt = "Github Forks" />
126+ </ a >
127+ < a href = "https://github.com/uiwjs/react-native-uiw/stargazers" target = "__blank" >
128+ < img src = "https://img.shields.io/github/stars/uiwjs/react-native-uiw.svg" alt = "Github Stars" />
129+ </ a >
130+ < a href = "https://github.com/uiwjs/react-native-uiw/releases" target = "__blank" >
131+ < img src = "https://img.shields.io/github/release/uiwjs/react-native-uiw.svg" alt = "Github Release" />
132+ </ a >
133+ < a href = "https://github.com/uiwjs/react-native-uiw" target = "__blank" >
134+ < img src = "https://img.shields.io/dub/l/vibe-d.svg" alt = "License MIT" />
135+ </ a >
136+ < a href = "https://www.npmjs.com/package/@uiw/react-native" target = "__blank" >
137+ < img src = "https://img.shields.io/npm/v/@uiw/react-native.svg" alt = "npm" />
138+ </ a >
139+ </ div >
140+ < p > Copyright © 2021 uiwjs. All rights reserved.</ p >
141+ </ section >
142+ </ div >
143+ </ footer >
144+ ) ;
145+ }
0 commit comments