Skip to content

Commit fe2e9b7

Browse files
committed
paragraph added about changes
1 parent 08cecc0 commit fe2e9b7

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

CSS/wa12.css

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,24 @@ html {
1313
body {
1414
font-family: 'Courier New', Courier, monospace;
1515
background-color: #000000;
16+
display: flex;
17+
flex-direction: column;
18+
align-items: center;
19+
justify-content: center;
20+
padding: 20px;
1621
}
1722

1823
.app {
19-
position: absolute;
24+
/* position: absolute;
2025
top: 50%;
2126
left: 50%;
22-
transform: translate(-50%, -50%);
27+
transform: translate(-50%, -50%); */
2328
width: 600px;
2429
background-color: white;
2530
border-radius: 5px;
2631
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
32+
margin-bottom: 30px;
33+
margin-top: 50px;
2734
}
2835

2936
header {
@@ -87,6 +94,20 @@ html {
8794
color: #666666;
8895
cursor: not-allowed;
8996
}
97+
98+
footer{
99+
width: 900px;
100+
font-size: 0.9em;
101+
padding: 10px;
102+
text-align: center;
103+
background-color: rgba(255, 255, 255, 0.2);
104+
border-radius: 5px;
105+
}
106+
107+
p{
108+
text-align: center;
109+
margin: 0;
110+
}
90111

91112
@media screen and (max-width: 600px) {
92113
.app {

js/wa12.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ function updateUIColors(hex){
100100
quotes.style.backgroundColor = `#${hex}` + "65";
101101
document.querySelector("#js-quote-text").style.color = textColor;
102102
controls.style.backgroundColor = `#${hex}` + "95";
103+
document.querySelector("footer").style.color = textColor;
104+
document.querySelectorAll("a").forEach((e) => {
105+
e.style.color = textColor;
106+
});
103107

104108
btn.style.backgroundColor = `#${hex}`;
105109
btn.style.color = textColor;

wa/wa12.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
</button>
2525
<!-- <a class="answer button" id="js-tweet" target="_blank" rel="noreferrer">Show me the answer!</a> -->
2626
</section>
27-
</div>
28-
</body>
27+
</div>
28+
<footer>
29+
<p>I made this app my own using <a href = "https://v2.jokeapi.dev">JokeAPI</a> to generate nerdy jokes
30+
and <a href = "https://php-noise.com/">PHP Noise</a> to generate the background images. Getting the background
31+
to work was weird because I was trying to treat it the same as the json from JokeAPI, but it turned out I
32+
could just treat it as an image link, pretty cool!<br><br></p>
33+
<p>Using the same random hex code I generated for the background to update the colors of the UI was a fun
34+
challenge too, and I think it really brought the whole thing together.</p>
35+
</footer>
36+
</body>
2937
</html>

0 commit comments

Comments
 (0)