-
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.
- Loading branch information
1 parent
8c18245
commit f1c9c4c
Showing
4 changed files
with
191 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@import url(../style.css); | ||
|
||
.img-res { | ||
width: 100%; | ||
height: auto; | ||
} | ||
|
||
.img-round-250px { | ||
border-radius: 50%; | ||
width: 250px; | ||
height: 250px; | ||
object-fit: cover; | ||
} | ||
|
||
.img-round-150px { | ||
border-radius: 50%; | ||
width: 150px; | ||
height: 150px; | ||
object-fit: cover; | ||
} | ||
|
||
.img-square-250px { | ||
width: 250px; | ||
height: 250px; | ||
object-fit: cover; | ||
} | ||
|
||
.img-square-150px { | ||
width: 150px; | ||
height: 150px; | ||
object-fit: cover; | ||
} |
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,45 @@ | ||
<!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>image</title> | ||
<link rel="stylesheet" href="image.css"> | ||
<style> | ||
/* JUST FOR DISPLAY PURPOSES. NOT A PART OF COMPONENT */ | ||
|
||
.container { | ||
background-color: var(--bg-cus); | ||
width: fit-content; | ||
padding: 1rem; | ||
margin: 1rem; | ||
border-radius: .25rem; | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<img src="https://picsum.photos/800/400" alt="image" class="img-res"> | ||
</div> | ||
|
||
<div class="container"> | ||
<img src="https://picsum.photos/300" alt="image" class="img-round-250px"> | ||
<img src="https://picsum.photos/500/600" alt="image" class="img-round-250px"> | ||
</div> | ||
|
||
<div class="container"> | ||
<img src="https://picsum.photos/500" alt="image" class="img-round-150px"> | ||
<img src="https://picsum.photos/400/600" alt="image" class="img-round-150px"> | ||
</div> | ||
|
||
<div class="container"> | ||
<img src="https://picsum.photos/500" alt="image" class="img-square-150px"> | ||
<img src="https://picsum.photos/400/600" alt="image" class="img-square-150px"> | ||
</div> | ||
|
||
</body> | ||
</html> |
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,35 @@ | ||
@import url(../style.css); | ||
|
||
.input-group { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
} | ||
|
||
.input-group input { | ||
padding: .5rem; | ||
} | ||
|
||
.input-group input:focus { | ||
outline: none; | ||
} | ||
|
||
.error { | ||
color: var(--danger); | ||
} | ||
|
||
.warning { | ||
color: var(--warning); | ||
} | ||
|
||
.success { | ||
color: var(--success); | ||
} | ||
|
||
.error input { | ||
border: 1px solid var(--danger); | ||
} | ||
|
||
.msg { | ||
font-size: small; | ||
} |
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,79 @@ | ||
<!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>input</title> | ||
<link rel="stylesheet" href="input.css"> | ||
<style> | ||
/* JUST FOR DISPLAY PURPOSES. NOT A PART OF COMPONENT */ | ||
|
||
.container { | ||
background-color: var(--bg-cus); | ||
padding: 2rem 6rem; | ||
margin: 1rem; | ||
border-radius: .25rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 2rem; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
<div class="container"> | ||
|
||
<div class="input-group"> | ||
<label>Username *</label> | ||
<input type="text" /> | ||
</div> | ||
|
||
<div class="input-group"> | ||
<label>Password *</label> | ||
<input type="password" /> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="container"> | ||
|
||
<div class="input-group error"> | ||
<label>Username *</label> | ||
<input type="text" /> | ||
<div class="error-msg">Invalid Username</div> | ||
</div> | ||
|
||
<div class="input-group error"> | ||
<label>Password *</label> | ||
<input type="password" /> | ||
<div class="error-msg">Invalid Password</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="container"> | ||
|
||
<div class="input-group"> | ||
<label>Password *</label> | ||
<input type="password" /> | ||
<div class="error msg">Too short. Must be more than 6 characters</div> | ||
</div> | ||
|
||
<div class="input-group"> | ||
<label>Password *</label> | ||
<input type="password" /> | ||
<div class="warning msg">Weak Password</div> | ||
</div> | ||
|
||
<div class="input-group"> | ||
<label>Password *</label> | ||
<input type="password" /> | ||
<div class="success msg">Good to go !!</div> | ||
</div> | ||
|
||
</div> | ||
|
||
</body> | ||
</html> |