Skip to content

Commit d3f5fe2

Browse files
committed
fix: style
1 parent b2799a8 commit d3f5fe2

File tree

9 files changed

+66
-39
lines changed

9 files changed

+66
-39
lines changed

site/components/home/Page2.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Page2() {
3333
<Button
3434
style={{ marginTop: 40, padding: '4px 56px' }}
3535
type="primary"
36-
href="/docs/getting-started.html"
36+
href="/docs/getting-started"
3737
>
3838
查看文档
3939
</Button>

site/components/layout/Footer.tsx

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// import React from 'react';
2-
import { Row, Col } from 'antd';
2+
import { Row, Col } from "antd";
33

44
function Footer() {
55
return (
@@ -13,7 +13,9 @@ function Footer() {
1313
<a href="mailto:hi@charmlot.com">邮箱 hi@charmlot.com</a>
1414
</div>
1515
<div>
16-
<span style={{ color: 'rgba(255,255,255,.9)' }}>QQ群 729013783</span>
16+
<span style={{ color: "rgba(255,255,255,.9)" }}>
17+
QQ群 729013783
18+
</span>
1719
</div>
1820
</div>
1921
</Col>
@@ -36,9 +38,7 @@ function Footer() {
3638
<div className="footer-center">
3739
<h2>帮助</h2>
3840
<div>
39-
<a target="_blank" rel="noopener noreferrer" href="/docs/faq">
40-
常见问题
41-
</a>
41+
<a href="/docs/faq">常见问题</a>
4242
</div>
4343
<div>
4444
<a
@@ -55,12 +55,20 @@ function Footer() {
5555
<div className="footer-center">
5656
<h2>链接</h2>
5757
<div>
58-
<a target="_blank" rel="noopener noreferrer" href="https://reactnative.cn/">
58+
<a
59+
target="_blank"
60+
rel="noopener noreferrer"
61+
href="https://reactnative.cn/"
62+
>
5963
React Native中文网
6064
</a>
6165
</div>
6266
<div>
63-
<a target="_blank" rel="noopener noreferrer" href="https://zh-hans.reactjs.org/">
67+
<a
68+
target="_blank"
69+
rel="noopener noreferrer"
70+
href="https://zh-hans.reactjs.org/"
71+
>
6472
ReactJS
6573
</a>
6674
</div>
@@ -69,10 +77,16 @@ function Footer() {
6977
</Row>
7078
</div>
7179
<section className="bottom-bar">
72-
<p>React Native中文网 © {new Date().getFullYear()} 武汉青罗网络科技有限公司</p>
80+
<p>
81+
React Native中文网 © {new Date().getFullYear()}{" "}
82+
武汉青罗网络科技有限公司
83+
</p>
7384
<p>
7485
<a href="http://beian.miit.gov.cn/">鄂ICP备20002031号-3</a>
7586
<img
87+
style={{
88+
display: "inline",
89+
}}
7690
src="https://img.alicdn.com/tfs/TB1..50QpXXXXX7XpXXXXXXXXXX-40-40.png"
7791
alt="鄂公网安备 42011202001821号"
7892
/>

site/components/pricing/index.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ import {
66
SendOutlined,
77
} from "@ant-design/icons";
88

9-
function gotoPurchase() {
10-
window.location.href = "https://update.reactnative.cn/profile";
11-
}
12-
139
const AppText = () => (
1410
<Tooltip title="iOS 和 Android 版本记做不同的应用。您可删除已不再使用的应用来有效利用配额。">
1511
<a>应用</a>
@@ -116,7 +112,8 @@ function Pricing() {
116112
style={{ marginTop: "auto" }}
117113
shape="round"
118114
type="primary"
119-
onClick={gotoPurchase}
115+
target="_blank"
116+
href="https://pushy-admin.reactnative.cn/#/user"
120117
>
121118
立即升级
122119
</Button>
@@ -155,7 +152,8 @@ function Pricing() {
155152
style={{ marginTop: "auto" }}
156153
shape="round"
157154
type="primary"
158-
onClick={gotoPurchase}
155+
target="_blank"
156+
href="https://pushy-admin.reactnative.cn/#/user"
159157
>
160158
立即升级
161159
</Button>
@@ -194,7 +192,8 @@ function Pricing() {
194192
style={{ marginTop: "auto" }}
195193
shape="round"
196194
type="primary"
197-
onClick={gotoPurchase}
195+
target="_blank"
196+
href="https://pushy-admin.reactnative.cn/#/user"
198197
>
199198
立即升级
200199
</Button>
@@ -204,16 +203,16 @@ function Pricing() {
204203
style={{
205204
color: "#8b909d",
206205
textAlign: "center",
207-
fontSize: "15px",
206+
fontSize: "16px",
208207
marginTop: 10,
209208
}}
210209
>
211-
<p>
210+
<p className="mb-4">
212211
如您需要更高配额,我们也提供定制版本或是私有服务器部署,您可将具体需求发送至{" "}
213212
<a href="mailto:hi@charmlot.com">hi@charmlot.com</a>{" "}
214213
我们将第一时间回复。
215214
</p>
216-
<p>
215+
<p className="mb-4">
217216
*注:iOS 和 Android 版本记做不同的应用。
218217
<br />
219218
原生包指完整的apk/ipa安装包。热更包指pushy

site/pages/docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ type: 其他
105105

106106
> 这里有一些对[包大小的优化建议](bestpractice#优化原生和热更包体积)可供参考。
107107
108-
以上 2、3 条为针对每个应用单独计算。具体配额和费用由于运营成本可能会有调整,请以[价格表](/pricing.html)页面为准。已购买的用户在续费前不受调整影响。
108+
以上 2、3 条为针对每个应用单独计算。具体配额和费用由于运营成本可能会有调整,请以[价格表](/pricing)页面为准。已购买的用户在续费前不受调整影响。
109109

110110
---
111111

@@ -142,7 +142,7 @@ type: 其他
142142

143143
#### 可以使用银行转账付款吗?
144144

145-
可以的。请对照[价格表](/pricing.html),将对应版本的款项转账至:
145+
可以的。请对照[价格表](/pricing),将对应版本的款项转账至:
146146

147147
<style>
148148
.markdown > table {

site/pages/docs/integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const hash = await downloadUpdate(
9191

9292
你可以通过`isFirstTime`来获知这是当前版本的首次启动,也可以通过`isRolledBack`来获知应用刚刚经历了一次回滚操作。你可以在此时给予用户合理的提示。
9393

94-
以上提及的所有 api 的说明文档可在[这里](api.html)查看。
94+
以上提及的所有 api 的说明文档可在[这里](api)查看。
9595

9696
### 完整的示例
9797

site/styles/index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
15
// @import '~antd/es/style/themes/default.less';
26
@import "react-github-button/assets/style.css";
37
// import 'rc-drawer-menu/assets/index.css';

site/styles/pricing.scss

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
min-height: 100vh;
44
position: relative;
55
/* color: #eaebed; */
6+
67
.pricing {
78
display: -webkit-flex;
89
display: flex;
@@ -23,12 +24,18 @@
2324
-webkit-align-items: stretch;
2425
align-items: stretch;
2526
text-align: center;
26-
-webkit-flex: 0 1 330px;
27-
flex: 0 1 330px;
27+
-webkit-flex: 0 1 350px;
28+
flex: 0 1 350px;
29+
.anticon {
30+
display: inline-block;
31+
}
2832
}
2933

3034
.pricing__feature-list {
3135
text-align: left;
36+
a {
37+
color: #1890ff;
38+
}
3239
}
3340

3441
.pricing__action {
@@ -45,10 +52,10 @@
4552
/* Rabten */
4653
.pricing--rabten .pricing__item {
4754
font-family: "Roboto", sans-serif;
48-
padding: 2em 4em;
55+
padding: 25px 60px;
4956
cursor: default;
5057
color: #262b38;
51-
max-width: 320px;
58+
// max-width: 320px;
5259
}
5360

5461
.pricing--rabten .pricing__item {
@@ -60,7 +67,7 @@
6067
}
6168

6269
.pricing--rabten .pricing__title {
63-
font-size: 1.4em;
70+
font-size: 22.5px !important;
6471
margin: 1.5em 0 0.5em;
6572
}
6673

@@ -159,13 +166,13 @@
159166
}
160167

161168
.pricing--rabten .pricing__feature-list {
162-
font-size: 1.1em;
169+
font-size: 16px;
163170
margin: 0;
164171
padding: 0.5em 0 3em;
165172
line-height: 1.6em;
166173
list-style: none;
167174
text-align: center;
168-
color: #8b909d;
175+
// color: #8b909d;
169176
}
170177
}
171178

site/tailwind.config.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
import type { Config } from 'tailwindcss'
1+
import type { Config } from "tailwindcss";
22

33
const config: Config = {
4+
corePlugins: {
5+
preflight: false,
6+
},
47
content: [
5-
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
6-
'./components/**/*.{js,ts,jsx,tsx,mdx}',
7-
'./app/**/*.{js,ts,jsx,tsx,mdx}',
8+
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
9+
"./components/**/*.{js,ts,jsx,tsx,mdx}",
10+
"./app/**/*.{js,ts,jsx,tsx,mdx}",
811
],
912
theme: {
1013
extend: {
1114
backgroundImage: {
12-
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
13-
'gradient-conic':
14-
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
15+
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
16+
"gradient-conic":
17+
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
1518
},
1619
},
1720
},
1821
plugins: [],
19-
}
20-
export default config
22+
};
23+
export default config;

site/theme.config.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ export default {
9191
emptyResult: "暂无匹配的结果",
9292
},
9393

94-
gitTimestamp: false,
94+
gitTimestamp: null,
9595
};

0 commit comments

Comments
 (0)