From 6ae87bdf8dec6d48cd9822def7c68af205dcd75e Mon Sep 17 00:00:00 2001 From: bluestar_ Date: Mon, 29 Jan 2024 16:57:00 +0700 Subject: [PATCH] easter egg that u want --- public/random.js | 71 +++++++++++++++++++++++++++++++++++++++ src/components/Avatar.jsx | 2 +- src/pages/_document.jsx | 2 ++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 public/random.js diff --git a/public/random.js b/public/random.js new file mode 100644 index 0000000..40ff84f --- /dev/null +++ b/public/random.js @@ -0,0 +1,71 @@ + +const lines = [ + "ねえ 女の子になりたい", + "お願い いいですか?", + "チョコレートの森をくぐる", + "オレンジかぼちゃの馬車に", + "乗せられて 連れられて", + "ミルク色のお城", + "みんなきっと憧れている", + "童話の中のヒロイン", + "いつか見た 夢に見た", + "ガラスのハイヒール", + "ナイショの気持ち ホントの気持ち", + "ちょっと話しちゃおう", + "ワンツースリー 魔法をかけて", + "新しいボクになりたいのです お願い!", + "やっぱりボクも可愛くなりたいな", + "あの子みたく可愛くなりたいな", + "フリルドレスを召しませ", + "世界でひとりのシンデレラ", + "ちっちゃなユウキとおっきなハジメテ", + "きっと怖くなって震えちゃうけど", + "女の子になりたい!", + "お願い いいですか?", + "可愛くなっていいですか?", + "大人になれど下がらない", + "可笑しな声のトーンと", + "何しても 何しても", + "うまくいかない今日だ", + "ならば!", + "束の間でも夢の中に", + "ボクを見つけてみようかな", + "少しだけ 少しだけ", + "変われる気がする", + "ドキドキして ドキドキして", + "眠れない夜", + "ワンツースリー 勇気を出せば", + "童話に続く入口はもうそこだよ", + "上目遣いで太陽が昇って", + "ウィンクのひとつで喧嘩が収まる", + "小さなリボン結んだら", + "世界もひとつに シンデレラ", + "花も照れて恥ずかしがるような", + "もう少し君をひとり占めできるような", + "女の子になりたい!", + "隣にいいですか?", + "当たり前のものどれもが", + "違って見えたんだ", + "ワンツースリー 魔法をかけて", + "新しいボクになりたいのです お願い!", + "やっぱりボクも可愛くなりたいな", + "あの子みたく可愛くなりたいな", + "小さく首を傾げたら", + "ボクも今だけはシンデレラ", + "大事な今日を隅っこに隠れて", + "自分のこともわかんなくなる前に", + "女の子になりたい!", + "お願い いいですか?", + "可愛くなっていいですか?", + "ナイショだよ" + ]; + + const transFlagColors = ['#55CDFC', '#F7A8B8', 'white']; + + const linesPerSection = Math.ceil(lines.length / transFlagColors.length); + + lines.forEach((line, index) => { + const sectionIndex = Math.floor(index / linesPerSection) % transFlagColors.length; + const color = transFlagColors[sectionIndex]; + console.log(`%c${line}`, `color: ${color}; font-size: 28px;`); + }); \ No newline at end of file diff --git a/src/components/Avatar.jsx b/src/components/Avatar.jsx index 8f352fd..aa205f9 100644 --- a/src/components/Avatar.jsx +++ b/src/components/Avatar.jsx @@ -4,7 +4,7 @@ const Avatar = () => { return ( <>
- Profile picture + Profile picture
diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx index 097cb7f..0c16605 100644 --- a/src/pages/_document.jsx +++ b/src/pages/_document.jsx @@ -1,4 +1,5 @@ import { Html, Head, Main, NextScript } from "next/document" +import Script from 'next/script' export default function Document() { return ( @@ -7,6 +8,7 @@ export default function Document() {
+