forked from khushi-purwar/WebDev-ProjectKart
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated main index file. added drawing app and stopwatch project into it
- Loading branch information
1 parent
98a2c95
commit 303ead1
Showing
12 changed files
with
341 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
"liveServer.settings.port": 5503 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
} |
238 changes: 119 additions & 119 deletions
238
Drawing App/Assets/css/style.css → 17.Drawing_App/Assets/css/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.