Skip to content

Commit 54ce66b

Browse files
committed
Fix : added hello world iframe on mobile devices
1 parent 6dfffcb commit 54ce66b

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

app/visualizer/stack/isfull/content.jsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,35 @@ const content = () => {
239239
</div>
240240
</section>
241241
</article>
242+
243+
{/* Mobile iframe at bottom */}
244+
<div className="block md:hidden w-full">
245+
{mounted && (
246+
<iframe
247+
key={theme}
248+
src={
249+
theme === "dark"
250+
? "https://hw.glich.co/resources/embed/daily/dsa?theme=dark"
251+
: "https://hw.glich.co/resources/embed/daily/dsa?theme=light"
252+
}
253+
width="100%"
254+
height="320"
255+
title="Daily DSA Challenge"
256+
></iframe>
257+
)}
258+
<div className="flex justify-center pb-8">
259+
<span className="text-xs">
260+
Daily DSA Challenge by{" "}
261+
<a
262+
href="https://hw.glich.co/resources/daily"
263+
target="_blank"
264+
className="underline hover:text-blue-500 duration-300"
265+
>
266+
Hello World
267+
</a>
268+
</span>
269+
</div>
270+
</div>
242271
</main>
243272
);
244273
};

app/visualizer/stack/polish/postfix/content.jsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,35 @@ const content = () => {
203203
</div>
204204
</section>
205205
</article>
206+
207+
{/* Mobile iframe at bottom */}
208+
<div className="block md:hidden w-full">
209+
{mounted && (
210+
<iframe
211+
key={theme}
212+
src={
213+
theme === "dark"
214+
? "https://hw.glich.co/resources/embed/daily/dsa?theme=dark"
215+
: "https://hw.glich.co/resources/embed/daily/dsa?theme=light"
216+
}
217+
width="100%"
218+
height="320"
219+
title="Daily DSA Challenge"
220+
></iframe>
221+
)}
222+
<div className="flex justify-center pb-8">
223+
<span className="text-xs">
224+
Daily DSA Challenge by{" "}
225+
<a
226+
href="https://hw.glich.co/resources/daily"
227+
target="_blank"
228+
className="underline hover:text-blue-500 duration-300"
229+
>
230+
Hello World
231+
</a>
232+
</span>
233+
</div>
234+
</div>
206235
</main>
207236
);
208237
};

0 commit comments

Comments
 (0)