Skip to content

Commit 073f714

Browse files
committed
refactor : added phone version of challenge and dark mode to binary search
1 parent ea1f587 commit 073f714

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

app/visualizer/searching/binarysearch/content.jsx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,35 @@ const content = () => {
213213
</div>
214214
</section>
215215
</article>
216+
217+
{/* Mobile iframe at bottom */}
218+
<div className="block md:hidden w-full">
219+
{mounted && (
220+
<iframe
221+
key={theme}
222+
src={
223+
theme === "dark"
224+
? "https://hw.glich.co/resources/embed/daily/dsa?theme=dark"
225+
: "https://hw.glich.co/resources/embed/daily/dsa?theme=light"
226+
}
227+
width="100%"
228+
height="320"
229+
title="Daily DSA Challenge"
230+
></iframe>
231+
)}
232+
<div className="flex justify-center pb-8">
233+
<span className="text-xs">
234+
Powered by{" "}
235+
<a
236+
href="https://hw.glich.co/resources/daily"
237+
target="_blank"
238+
className="underline hover:text-blue-500 duration-300"
239+
>
240+
Hello World
241+
</a>
242+
</span>
243+
</div>
244+
</div>
216245
</main>
217246
);
218247
};

0 commit comments

Comments
 (0)