Skip to content

Commit 1844c92

Browse files
committed
Refacrtor
1 parent 01cdf6b commit 1844c92

File tree

8 files changed

+845
-279
lines changed

8 files changed

+845
-279
lines changed

Diff for: package-lock.json

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
},
1212
"dependencies": {
1313
"@headlessui/react": "^1.7.17",
14+
"@types/prismjs": "^1.26.5",
1415
"framer-motion": "^10.16.4",
1516
"lucide-react": "^0.292.0",
17+
"prismjs": "^1.29.0",
1618
"react": "^18.2.0",
1719
"react-dom": "^18.2.0"
1820
},

Diff for: src/App.css

+62
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,65 @@
4040
.read-the-docs {
4141
color: #888;
4242
}
43+
44+
// Добавьте эти стили в ваш CSS файл или в компонент через styled-components
45+
const styles = `
46+
code[class*="language-"],
47+
pre[class*="language-"] {
48+
font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
49+
font-size: 14px;
50+
line-height: 1.5;
51+
direction: ltr;
52+
text-align: left;
53+
white-space: pre;
54+
word-spacing: normal;
55+
word-break: normal;
56+
word-wrap: normal;
57+
-moz-tab-size: 4;
58+
-o-tab-size: 4;
59+
tab-size: 4;
60+
-webkit-hyphens: none;
61+
-moz-hyphens: none;
62+
-ms-hyphens: none;
63+
hyphens: none;
64+
background: #2d2d2d;
65+
color: #ccc;
66+
border-radius: 0.5rem;
67+
}
68+
69+
.token.comment,
70+
.token.prolog,
71+
.token.doctype,
72+
.token.cdata {
73+
color: #999;
74+
}
75+
76+
.token.function,
77+
.token.class-name {
78+
color: #dd4a68;
79+
}
80+
81+
.token.keyword {
82+
color: #66d9ef;
83+
}
84+
85+
.token.string {
86+
color: #7ec699;
87+
}
88+
89+
.token.number {
90+
color: #f08d49;
91+
}
92+
93+
.token.operator {
94+
color: #66d9ef;
95+
}
96+
97+
.token.boolean {
98+
color: #ae81ff;
99+
}
100+
101+
.token.constant {
102+
color: #ae81ff;
103+
}
104+
`;

Diff for: src/components/Navigation.jsx

Whitespace-only changes.

0 commit comments

Comments
 (0)