Skip to content

Commit

Permalink
updated main index file. added drawing app and stopwatch project into it
Browse files Browse the repository at this point in the history
  • Loading branch information
TechnicalAmanjeet committed Dec 26, 2021
1 parent 98a2c95 commit 303ead1
Show file tree
Hide file tree
Showing 12 changed files with 341 additions and 338 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5503
}
3 changes: 3 additions & 0 deletions 16.simple_quiz_App/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
238 changes: 119 additions & 119 deletions Drawing App/Assets/css/style.css → 17.Drawing_App/Assets/css/style.css
Original file line number Diff line number Diff line change
@@ -1,119 +1,119 @@
* {
box-sizing: border-box;
}

body {
background: #fcd1d1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
padding: 0;
}

/* canvas styling */

#canvas {
border: 4px solid #ef4f4f;
background: #fff;
}

/* toolbox styling */

.toolbox {
background-color: #ef4f4f;
display: flex;
width: 808px;
padding: 12px;
}

/* styling every element in toolbox */

.toolbox > * {
background-color: #fff;
border: none;
border-radius: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 24px;
height: 40px;
width: 40px;
margin: 5px;
padding: 5px;
cursor: pointer;
color: black;
border: 2px solid black;
}

/* styling clear button */

.toolbox > *:last-child {
margin-left: auto;
color: white;
background: #000;
border: 2px solid white;
}

button:focus {
outline: none;
}
input:focus {
outline: none;
}

/* Making website Responsive with media-queries */

@media (min-width: 320px) and (max-width: 375px) {
#canvas {
width: 300px;
height: 250px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 300px;
padding: 10px;
}
}

@media (min-width: 375px) and (max-width: 425px) {
#canvas {
width: 330px;
height: 300px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 330px;
padding: 10px;
}
}

@media (min-width: 425px) and (max-width: 767px) {
#canvas {
width: 400px;
height: 350px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 400px;
padding: 10px;
}
}

@media (min-width: 768px) and (max-width: 1023px) {
#canvas {
width: 700px;
height: 400px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 700px;
padding: 10px;
}
}
* {
box-sizing: border-box;
}

body {
background: #fcd1d1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
padding: 0;
}

/* canvas styling */

#canvas {
border: 4px solid #ef4f4f;
background: #fff;
}

/* toolbox styling */

.toolbox {
background-color: #ef4f4f;
display: flex;
width: 808px;
padding: 12px;
}

/* styling every element in toolbox */

.toolbox > * {
background-color: #fff;
border: none;
border-radius: 5px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 24px;
height: 40px;
width: 40px;
margin: 5px;
padding: 5px;
cursor: pointer;
color: black;
border: 2px solid black;
}

/* styling clear button */

.toolbox > *:last-child {
margin-left: auto;
color: white;
background: #000;
border: 2px solid white;
}

button:focus {
outline: none;
}
input:focus {
outline: none;
}

/* Making website Responsive with media-queries */

@media (min-width: 320px) and (max-width: 375px) {
#canvas {
width: 300px;
height: 250px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 300px;
padding: 10px;
}
}

@media (min-width: 375px) and (max-width: 425px) {
#canvas {
width: 330px;
height: 300px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 330px;
padding: 10px;
}
}

@media (min-width: 425px) and (max-width: 767px) {
#canvas {
width: 400px;
height: 350px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 400px;
padding: 10px;
}
}

@media (min-width: 768px) and (max-width: 1023px) {
#canvas {
width: 700px;
height: 400px;
}
.toolbox {
background-color: #ef4f4f;
display: flex;
width: 700px;
padding: 10px;
}
}
File renamed without changes.
66 changes: 33 additions & 33 deletions Drawing App/index.html → 17.Drawing_App/index.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Drawing App</title>
<link rel="stylesheet" href="Assets/css/style.css"/>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Itim&display=swap" rel="stylesheet">

</head>

<body>
<!--creating a canvas to draw-->
<canvas id="canvas" width="800" height="500"></canvas>

<!--A Drawing Toolbox containing buttons to choose size, color and clear drawing-->
<div class="toolbox">
<button id="decrease">-</button>
<span id="size" style="font-family: 'Itim', cursive;">5</span>
<button id="increase">+</button>
<input type="color" id="color">
<button id="clear">
<p style="font-family: 'Itim', cursive;">C</p>
</button>

</div>

<!--Connecting to JavaScript file-->
<script src="script.js"></script>
</body>
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Drawing App</title>
<link rel="stylesheet" href="Assets/css/style.css"/>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Itim&display=swap" rel="stylesheet">

</head>

<body>
<!--creating a canvas to draw-->
<canvas id="canvas" width="800" height="500"></canvas>

<!--A Drawing Toolbox containing buttons to choose size, color and clear drawing-->
<div class="toolbox">
<button id="decrease">-</button>
<span id="size" style="font-family: 'Itim', cursive;">5</span>
<button id="increase">+</button>
<input type="color" id="color">
<button id="clear">
<p style="font-family: 'Itim', cursive;">C</p>
</button>

</div>

<!--Connecting to JavaScript file-->
<script src="script.js"></script>
</body>
</html>
Loading

0 comments on commit 303ead1

Please sign in to comment.