Skip to content

Commit

Permalink
design done but functionality not
Browse files Browse the repository at this point in the history
  • Loading branch information
sadaiprince committed Feb 25, 2024
1 parent 1922200 commit d6a95aa
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
44 changes: 44 additions & 0 deletions valentineProject1/index.html
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>
52 changes: 52 additions & 0 deletions valentineProject1/style.css
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;
}

0 comments on commit d6a95aa

Please sign in to comment.