BetterColor

pull/96/head
HridoyHazard 4 years ago
parent f682234a3c
commit 055c9f7c40

File diff suppressed because one or more lines are too long

@ -0,0 +1,92 @@
.header-blue {
background: linear-gradient(135deg, #172a74, #21a9af);
background-color: #184e8e;
padding-bottom: 80px;
font-family: "Source Sans Pro", sans-serif;
}
h1 {
text-align: center;
font-family: Acme, sans-serif;
}
#upper {
background: linear-gradient(135deg, #172a74, #21a9af);
height: 240px;
}
#upper a {
margin-block-end: auto;
text-decoration: none;
font-weight: 500;
font-size: 0.9em;
color: white;
padding: 0.7em 0.9em;
transition: 0.3s all;
background: #4285f4;
border-radius: 4em;
box-shadow: 0 0.15em 0.5em rgb(66 133 244 / 75%);
font-family: Acme, sans-serif;
}
h1 {
padding-top: 30px;
color: #efb22d;
}
#upper p {
font-family: Bitter, serif;
text-align: center;
font-size: 25px;
color: var(--bs-gray-100);
word-spacing: 5px;
}
#text {
float: right;
}
#click {
display: flex;
padding: 40px;
margin-top: -60px;
justify-content: space-around;
}
#left {
color: var(--bs-gray-100);
font-size: 20px;
font-family: Acme, sans-serif;
}
#right {
color: var(--bs-gray-100);
font-size: 20px;
font-family: Acme, sans-serif;
}
#message {
color: #000000;
padding-top: 4rem;
font-size: 22px;
padding-top: 5rem;
text-align: center;
word-spacing: 5px;
font-family: Bitter, serif;
}
#bg {
padding: 8rem;
}
#one {
padding-top: 8rem;
text-align: center;
}
#two {
padding-top: 5rem;
text-align: center;
word-spacing: 5px;
font-family: Bitter, serif;
font-size: 22px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
<title>BetterColor</title>
<link rel="icon" href="img/view.png">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Acme&amp;display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Bitter:400,700&amp;display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700&amp;display=swap" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div id="upper">
<h1>BetterColor</h1>
<p>
A Website For Finding Better Color Combinations For Readability<br /><br />
</p>
<div id="click">
<p id="left">
Select Color For Text:<input type="color" id="text" value="#000000" />
</p>
<a href="https://github.com/HridoyHazard/BetterColor">View On Github</a>
<p id="right">
Select Color For Background:<input type="color" id="color" value="#ffffff" />
</p>
</div>
</div>
<div class="bg">
<h2 id="one">Read Below Message</h2>
<p id="two">When you work for peace or any other aspect of social change, there are often hardships to
overcome. You must believe deeply that what you are doing is right, or else you may become discouraged and give
up. I have found that there are no easy solutions to problems involving social change. When you commit yourself to
creating a better world, you are most likely committing yourself to a lifetime of effort.</p>
<p id="message">
Can You Read The Message Comfortably With This Background?
If Yes Then Copy The Color Code.Else Change Colors.
</p>
</div>
<script src="js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

@ -0,0 +1,13 @@
let colorInput = document.querySelector("#color");
let textInput = document.querySelector("#text");
colorInput.addEventListener('input', () => {
let color = colorInput.value;
document.body.style.backgroundColor = color;
});
textInput.addEventListener('input', () =>
{
let folor = textInput.value;
document.querySelector("#one").style.color = folor;
document.querySelector("#two").style.color = folor;
document.querySelector("#message").style.color = folor;
});
Loading…
Cancel
Save