Skip to content

Commit 75af98b

Browse files
committed
feat: add ff-demo
1 parent 974ad34 commit 75af98b

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ import ShortcutsCorner from './components/shortcuts-corner.tsx';
1010
import LhComponents from './components/lh-components.tsx';
1111
import Blanks from './components/blanks.tsx';
1212
import FullSpacings from './components/full-spacings.tsx';
13+
import FfDemo from './components/ff-demo.tsx';
1314

1415
function App() {
1516
return (
1617
<div className="mx-auto mt-20 flex w-1/2 flex-col bg-gray-200 p-10">
18+
<FfDemo />
1719
<h1 className="text-2xl">Hello World</h1>
1820
<p className="z1">
1921
App<sup className="f8 z2">1.0.0</sup>

src/components/ff-demo.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @email: aric.zheng@alo7.com
3+
* @description: A React component.
4+
* @updated_at: 2024-09-08 11:49:14
5+
*/
6+
7+
const Anonymous = () => {
8+
return (
9+
<div className="rounded-md bg-gray-100 p-5 y-4">
10+
<h1 className="font-cn">你好,匿名用户!</h1>
11+
<h3 className="font-en">Welcome, Anonymous!</h3>
12+
<h3 className="font-num">0123456789</h3>
13+
</div>
14+
);
15+
};
16+
17+
export default Anonymous;

tailwind.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ export default {
55
presets: [twPresets],
66
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
77
theme: {
8-
extend: {}
8+
extend: {
9+
fontFamily: {
10+
cn: ['PingFang SC', 'Microsoft YaHei', 'sans-serif'],
11+
en: ['Impact'],
12+
num: ['Times New Roman']
13+
}
14+
}
915
},
1016
plugins: [
1117
function ({ addBase }) {

0 commit comments

Comments
 (0)