Skip to content

Commit 05e7aa0

Browse files
updates
1 parent e2fa600 commit 05e7aa0

File tree

7 files changed

+62
-11
lines changed

7 files changed

+62
-11
lines changed

lib/builder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ const Builder = () => {
3232
const translate = useTranslations();
3333

3434
return (
35-
<>
36-
<span>{translate.raw('builder.file')}</span>
37-
</>
35+
<div>
36+
<span>{translate.raw('builder-file')}</span>
37+
</div>
3838
)
3939
}
4040

locales/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"builder.file": "File",
3-
"builder.filecontent": "Content",
4-
"builder.filetype": "Type"
2+
"builder-file": "File",
3+
"builder-filecontent": "Content",
4+
"builder-filetype": "Type"
55
}

locales/ru.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"builder.file": "Файл",
3-
"builder.filecontent": "Содержание",
4-
"builder.filetype": "Тип"
2+
"builder-file": "Файл",
3+
"builder-filecontent": "Содержание",
4+
"builder-filetype": "Тип"
55
}

pages/_document.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class CustomDocument extends Document {
3030
return (
3131
<Html>
3232
<Head>
33+
<link rel="preconnect" href="https://fonts.googleapis.com" />
34+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
3335
<title>Just an Ultimate Site Tool Demo</title>
3436
</Head>
3537
<body>

pages/iframe/builder.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { useEffect, useState } from 'react';
2+
import { useTranslations } from 'next-intl';
3+
import { useRouter } from 'next/router';
4+
import Builder from '../lib/builder';
5+
6+
const Home = () => {
7+
const [loading, setLoading] = useState(true);
8+
const translate = useTranslations();
9+
const router = useRouter();
10+
11+
return (
12+
<>
13+
<Builder />
14+
</>
15+
);
16+
};
17+
18+
export default Home;
19+
20+
export async function getStaticProps(context) {
21+
const messages = (await import('/locales/' + context.locale + '.json'))
22+
.default
23+
return {
24+
props: {
25+
messages,
26+
...context,
27+
},
28+
}
29+
}

pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Home = () => {
3636

3737
return (
3838
<>
39-
<h1>Just an Ultimate Site Tool Demo</h1>
39+
<h1 className='.bg .lz'>Just an Ultimate Site Tool Demo</h1>
4040
<Builder />
4141
</>
4242
);

pages/style.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ SOFTWARE.
2424
2525
*/
2626

27+
@import url('https://fonts.googleapis.com/css2?family=Lexend+Zetta:[email protected]&family=Rubik+Mono+One&family=Rubik:ital,wght@0,300..900;1,300..900&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
28+
2729
html {
28-
30+
font-family: "Rubik", monospace;
31+
}
32+
33+
.bg {
34+
background: #b2e3f7;
35+
background: -webkit-linear-gradient(148deg, rgba(178, 227, 247, 1) 0%, rgba(87, 115, 199, 1) 50%, rgba(107, 54, 214, 1) 100%);
36+
background: -moz-linear-gradient(148deg, rgba(178, 227, 247, 1) 0%, rgba(87, 115, 199, 1) 50%, rgba(107, 54, 214, 1) 100%);
37+
background: linear-gradient(148deg, rgba(178, 227, 247, 1) 0%, rgba(87, 115, 199, 1) 50%, rgba(107, 54, 214, 1) 100%);
38+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#B2E3F7", endColorstr="#6B36D6", GradientType=0);
39+
}
40+
41+
.rmo {
42+
font-family: "Rubik Mono One", "Rubik", monospace;
43+
}
44+
.scp {
45+
font-family: "Source Code Pro", monospace;
46+
}
47+
.lz {
48+
font-family: "Lexend Zetta", sans-serif;
2949
}

0 commit comments

Comments
 (0)