Skip to content

Commit e184ae9

Browse files
authored
Merge pull request #24 from Sohan-Rout/main1
fix : dark mode of dsa challenge and mobile version enabled
2 parents 725ba7b + 073f714 commit e184ae9

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
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
};

app/visualizer/searching/linearsearch/content.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const content = () => {
215215
: "https://hw.glich.co/resources/embed/daily/dsa?theme=light"
216216
}
217217
width="100%"
218-
height="300"
218+
height="320"
219219
title="Daily DSA Challenge"
220220
></iframe>
221221
)}

0 commit comments

Comments
 (0)