Skip to content

Commit fa157e2

Browse files
updates
1 parent fbd1133 commit fa157e2

File tree

5 files changed

+83
-6
lines changed

5 files changed

+83
-6
lines changed

.github/workflows/nextjs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: npm
2424
id: install-npm
25-
run: npm i && npm install --save-dev style-loader css-loader && npm install react-monaco-editor && npm install [email protected] --save-dev
25+
run: npm i && npm install --save-dev style-loader@4.0.0 css-loader@7.1.2 react-monaco-editor@0.59.0 [email protected]
2626
- name: Detect package manager
2727
id: detect-package-manager
2828
run: |

lib/builder.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import dynamic from 'next/dynamic';
3131

3232
const MonacoEditor = dynamic(() => import('react-monaco-editor'), { ssr: false });
3333

34+
console.log(MonacoEditor);
35+
3436
const Builder = () => {
3537
const translate = useTranslations();
3638

pages/_app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import './style.css';
21
import '../globals.css';
2+
import './style.css';
33

44
import { GlobalProvider } from '../global-context';
55
import { NextIntlProvider } from 'next-intl';

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 className='bg lz'>Just an Ultimate Site Tool Demo</h1>
39+
<h1 className='bg lz cw demo agt'>Just an Ultimate Site Tool</h1>
4040
<Builder className='builder' />
4141
</>
4242
);

pages/style.css

Lines changed: 78 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,92 @@ SOFTWARE.
2424
2525
*/
2626

27-
.rmo {
27+
:root {
28+
--a: 5s ease-in-out infinite; /* Animation */
29+
--g: 0px 0px 12px rgba(255,255,255,0.4); /* Glow */
30+
}
31+
32+
.rmo { /* Rubik Mono One */
2833
font-family: "Rubik Mono One", "Rubik", monospace;
2934
}
30-
.scp {
35+
.scp { /* Source Code Pro */
3136
font-family: "Source Code Pro", monospace;
3237
}
33-
.lz {
38+
.lz { /* Lexend Zetta */
3439
font-family: "Lexend Zetta", sans-serif;
3540
}
3641

3742
.builder {
3843
left: 50%;
3944
translate: -50% 0%;
4045
}
46+
47+
h1 {
48+
margin: 0;
49+
padding: 50px 10px;
50+
text-align: center;
51+
animation: gt var(--a);
52+
-webkit-animation: gt var(--a);
53+
}
54+
.demo::after {
55+
content: 'Demo';
56+
margin-left: 20px;
57+
padding: 0px 10px;
58+
background-color: white;
59+
color: black;
60+
border-radius: 15px;
61+
animation: g var(--a);
62+
-webkit-animation: g var(--a);
63+
animation-delay: 0.2s;
64+
-webkit-animation-delay: 0.2s;
65+
}
66+
67+
.cw { /* Color White */
68+
color: white;
69+
}
70+
71+
.ag { /* Animation Glow (Text) */
72+
animation: g var(--a);
73+
-webkit-animation: g var(--a);
74+
}
75+
.agt { /* Animation Glow (Text) */
76+
animation: gt var(--a);
77+
-webkit-animation: gt var(--a);
78+
}
79+
80+
@keyframes g { /* Glow */
81+
0%, 100% {
82+
filter: none;
83+
-webkit-filter: none;
84+
}
85+
40% {
86+
filter: drop-shadow(var(--g));
87+
-webkit-filter: drop-shadow(var(--g));
88+
}
89+
}
90+
@-webkit-keyframes g {
91+
0%, 100% {
92+
filter: none;
93+
-webkit-filter: none;
94+
}
95+
40% {
96+
filter: drop-shadow(var(--g));
97+
-webkit-filter: drop-shadow(var(--g));
98+
}
99+
}
100+
@keyframes gt { /* Glow (Text) */
101+
0%, 100% {
102+
text-shadow: none;
103+
}
104+
40% {
105+
text-shadow: var(--g);
106+
}
107+
}
108+
@-webkit-keyframes gt {
109+
0%, 100% {
110+
text-shadow: none;
111+
}
112+
40% {
113+
text-shadow: var(--g);
114+
}
115+
}

0 commit comments

Comments
 (0)