-
Notifications
You must be signed in to change notification settings - Fork 1
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
1922200
commit d6a95aa
Showing
2 changed files
with
96 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,44 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Valentine Project</title> | ||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"> | ||
<link rel="stylesheet" href="style.css"> | ||
</head> | ||
|
||
<body> | ||
<div class="container-fluid main"> | ||
<div class="container wrapper"> | ||
<div class="container heading"> | ||
<h1>Do you like me?</h1> | ||
</div> | ||
<div class="container buttonSection"> | ||
<button class="yes">Yes</button> | ||
<button class="no">No</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script> | ||
<script> | ||
let no=document.querySelector(".no"); | ||
let yes=document.querySelector(".yes"); | ||
let ran=Math.random()*1000; | ||
console.log(ran); | ||
|
||
no.addEventListener('click', (ck)=>{ | ||
no.style.position = "absolute"; | ||
|
||
no.style.left = ran+"px"; | ||
no.style.top = ran+ "px"; | ||
|
||
console.log(ck); | ||
}) | ||
|
||
</script> | ||
</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,52 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
|
||
font-family: 'Times New Roman', Times, serif; | ||
font-weight: 600; | ||
} | ||
|
||
.main { | ||
width: 100vw; | ||
height: 100vh; | ||
background-color: rgb(175, 123, 38); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
} | ||
|
||
.wrapper { | ||
height: 90vh; | ||
width: 90vw; | ||
border-radius: 23px; | ||
background: rgba(255, 255, 255, 0.2); | ||
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); | ||
backdrop-filter: blur(10px); | ||
-webkit-backdrop-filter: blur(10px); | ||
border-radius: 10px; | ||
border: 1px solid rgba(255, 255, 255, 0.18); | ||
|
||
} | ||
|
||
h1 { | ||
text-align: center; | ||
padding: 23px; | ||
} | ||
|
||
.buttonSection { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
} | ||
|
||
button { | ||
margin: 4px; | ||
padding: 9px 25px; | ||
border-radius: 9px; | ||
background-image: linear-gradient(red, yellow); | ||
border: 2px solid rgba(252, 0, 135, 0.783); | ||
font-size: 1.1rem; | ||
} |