Skip to content

Commit

Permalink
Styled navbar on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Fideltodayy committed Oct 20, 2023
1 parent 7da1b90 commit 9f9db27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>

<link
href="https://fonts.googleapis.com/css2?family=Kalam:wght@300&display=swap"
rel="stylesheet"
Expand Down
8 changes: 6 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ function StarMatch(props) {
return (
<>
{showModal && <Modal showModal={showModal} setShowModal={setShowModal} />}
<div className={`game h-screen ${showModal ? "modal-open" : ""}`}>
<div
className={`game h-screen overflow-hidden ${
showModal ? "modal-open" : ""
}`}
>
<div className="flex justify-between items-center h-16 mx-4 px-4 bg-slate-200 dark:bg-gray-800 rounded-full border-2 border-gray-600">
<div>
<h2 className=" text-3xl" style={{ fontFamily: "Dancing Script" }}>
Expand All @@ -88,7 +92,7 @@ function StarMatch(props) {
className="marquee-content text-lg"
style={{ fontFamily: "Kalam" }}
>
<span>
<span className="md:block overflow-x-hidden">
For each random number of stars, pick 1 or more numbers that sum
up to the given number of stars. If you pick more numbers than the
count of stars, they will be marked as wrong in red. You can
Expand Down

0 comments on commit 9f9db27

Please sign in to comment.