diff --git a/lib/commands/definitions.ts b/lib/commands/definitions.ts index fe45e1f..2ec1361 100644 --- a/lib/commands/definitions.ts +++ b/lib/commands/definitions.ts @@ -1,6 +1,7 @@ import type { Diary, Project } from "../content/types"; import type { Command, Flag } from "./types"; import Color from "color"; +import styles from "../../styles/Random.module.scss"; function getCommandByName(name: string): Command | undefined { return commandList.find(cmd => cmd.name === name); @@ -285,7 +286,10 @@ const color: Command = { switch(true) { case color.hex().toLowerCase() === "#1f1e33": { if (cmdIf.callbacks?.setModalHTML && cmdIf.callbacks?.setModalVisible) { - cmdIf.callbacks?.setModalHTML(''); + cmdIf.callbacks?.setModalHTML(` +
');
+ const img = pingiImg[Math.floor(Math.random()*pingiImg.length)];
+ cmdIf.callbacks.setModalHTML(`
+
+ Loading cute image...
+
+
+ Made with DALL-E`);
cmdIf.callbacks.setModalVisible(true);
}
return ["<3"];
diff --git a/next.config.js b/next.config.js
index 3dd7ef1..5e46f31 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,4 +1,7 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
+ images: {
+ domains: ["openai-labs-public-images-prod.azureedge.net"]
+ }
};
diff --git a/styles/Random.module.scss b/styles/Random.module.scss
new file mode 100644
index 0000000..ea6453b
--- /dev/null
+++ b/styles/Random.module.scss
@@ -0,0 +1,40 @@
+.modalImageContainerSquare {
+ width: 100%;
+ height: 0;
+ padding-bottom: 100%;
+ display: block;
+ position: relative;
+
+ img {
+ position: absolute;
+ left: 0;
+ right: 0;
+ top: 0;
+ bottom: 0;
+ border-radius: 5px
+ }
+
+ .imgLoading {
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ transform: translate(-50%, -50%);
+ display: block;
+ }
+}
+
+.modalVideoContainer {
+ width: 100%;
+ height: 0;
+ padding-bottom: 56.25%;
+ display: block;
+ position: relative;
+
+ iframe {
+ position:absolute;
+ top:0;
+ left:0;
+ width:100%;
+ height:100%;
+ }
+}
\ No newline at end of file