Skip to content

Commit

Permalink
Style the title, button, canvas, pop-up box
Browse files Browse the repository at this point in the history
  • Loading branch information
kathejim committed Jun 16, 2024
1 parent a4ad43d commit dba530e
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 6 deletions.
9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,20 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playwrite+FR+Moderne:[email protected]&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<div class="container">
<div class="container-left">
<p>ETCH A SKETCH</p>
<button>NEW CANVAS</button>
<p id="title">ETCH A SKETCH</p>
<button id="new-canvas">NEW CANVAS</button>
</div>
<div class="popup-box">
<p id="popup-text">Enter the number of squares per side:</p>
<p id="popup-text">Enter the number of squares per side and click ENTER:</p>
<input type="text">
<button id="cancel">CANCEL</button>
</div>
Expand Down
60 changes: 57 additions & 3 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,48 @@
.container {
height: 100vh;
display: flex;
background-color: rgb(122, 88, 153);
/*! width: 100hv; */
}

.container-left {

width: 400px;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
align-items: center;
min-width: 0px;
}

#title {
font-size: 3vw;
text-align: center;
color: white;
font-weight: bolder;
/*! margin-top: -80px; */
margin-bottom: 15px;
min-width: 0px;
}

#new-canvas, #cancel {
padding: 10px 20px;
width: fit-content;
background-color: #2f2828;
color: whitesmoke;
border: none;
font-weight: bold;
border-radius: 10px;
}
.container-grid {
display: flex;
width: 100%;
height: 100%;
padding: 80px 80px 80px 360px;
/*! height: 100%; */
margin: 80px 80px 80px 80px;
background-color: whitesmoke;
border: 5px solid #201a26c4;
/*! flex-grow: 1; */
}

.container-horizontal {
Expand All @@ -32,14 +67,33 @@
}

.popup-box {
display: flex;
flex-direction: column;
align-items: center;
padding: 30px;
gap: 10px;
height: 280px;
width: 400px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: brown;
background-color: bisque;
position: absolute;
visibility: hidden;

}

#popup-text {
/*! padding: 40px; */
font-size: 20px;
}

input {
padding: 10px;
}

#cancel {
margin-top: 60px;
margin-left: auto;
}
}

0 comments on commit dba530e

Please sign in to comment.