Skip to content

Commit ab69023

Browse files
committed
added glorp
1 parent bfc980d commit ab69023

5 files changed

Lines changed: 17 additions & 5 deletions

File tree

public/glorpcat1.png

62.3 KB
Loading

public/glorpcat2.png

67.4 KB
Loading

src/components/InfoComponent.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from 'react'
2-
2+
import Image from 'react'
33
const InfoComponent = () => {
44
return (
55
<div className="flex-1 bg-[#2a2a2a] rounded-2xl p-3 flex flex-col gap-3">
66

77
{/* Title */}
88
<h1 className="text-center text-5xl tracking-widest text-green-400">
9-
GLORPYTHON
9+
GLORPYTHON
1010
</h1>
1111

1212
{/* Code panels */}
@@ -30,7 +30,7 @@ print(sum)`}</pre>
3030
<div className="bg-[#1f5c29] text-white text-s text-center py-2 tracking-widest font-bold">
3131
*** ALIEN CODE ***
3232
</div>
33-
<div className="bg-[#3a9447] m-2 rounded-xl p-3">
33+
<div className="bg-[#3a9447] transition m-2 rounded-xl p-3">
3434
<pre className="text-white text-xs leading-relaxed m-0">{`nums eats [1,2,3]
3535
sum eats 0
3636
i eats nums slowly:
@@ -48,6 +48,10 @@ print eats sum`}</pre>
4848
<p className="mb-2">Assume nums is already defined.</p>
4949
<p>(Hint: you cannot use any +-*/ or **)</p>
5050
</div>
51+
52+
<div className="group mb-2 h-10 flex">
53+
<img className="h-40 ml-40" src="glorpcat1.png"/>
54+
</div>
5155
</div>
5256
)
5357
}

src/components/OutputComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const OutputComponent = () => {
5959
<button
6060
onClick={runCode}
6161
disabled={!pyodideReady}
62-
className="bg-green-600 hover:bg-green-500 disabled:bg-gray-600 text-white font-bold py-2 px-6 rounded-lg text-sm w-fit"
62+
className="bg-green-600 hover:bg-green-500 hover:animate-pulse disabled:bg-gray-600 text-white font-bold py-2 px-6 rounded-lg text-sm w-fit transition duration:300"
6363
>
6464
{pyodideReady ? "submit" : "loading python..."}
6565
</button>

src/index.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
@import "tailwindcss";
1+
@import "tailwindcss";
2+
@theme {
3+
--animate-pulse: pulse 1.5s ease-in-out infinite;
4+
@keyframes pulse {
5+
50% {
6+
opacity: 0.7;
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)