Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,24 @@

<body>
<div class="container">
<h1>Welcome to your website!</h1>
<h1>Random Number Generator</h1>
<div id="numGen">
<script>
var number = Math.random();
number *= 100
number = Math.round(number)
document.write(number)
document.getElementById('numGen').style.color = '#66C4FF';

</script>

</div>
<div id="But">
<button id="Generate"> Generate </button>
</div>

<button id="clap-button" class="button">👏</button>
</div>
</body>

</html>
</html>
53 changes: 52 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,55 @@ body {

.button:active {
border: 5px solid #ffd300;
}
}

/* Random Number */


#numGen {

width: 220px;
padding: 50px;
margin: auto;
border: 2px solid var(--color-hyper-500);
background: var(--color-800);
border-radius: 12px;
text-align: center;
font-weight: bold;
font-size:4em;
font-family: 'Rubik', sans-serif;

}

#But {

display: block;
width: 100%;
padding: 15px 0;
margin: 30px 0 50px 0;
border-radius: 5px;
text-align: center;

}

#Generate {
border: 1px solid var(--color-paleBlue);
width: 25%;
padding:10px;

font-size: 14px;
border-radius: 12px;
background-color: var(--color-hyper-500);
cursor: pointer;
color: #66C4FF;
font-family: 'Rubik', sans-serif;
font-size: 18px;

}

#Generate:hover {
transform: scale(1.15);
background-color: #66C4FF;
color: var(--color-hyper-500);
border: 1px solid var(--color-hyper-500);
}