Update landing page (#5)

- Changed the background color of the body and the content container to
be more engaging.
- Updated the code diff example to display more realistic changes that
one might see in a pull request.

Resolves #4
This commit is contained in:
Nycticorax Nycticorax 2023-05-12 01:24:42 -04:00 committed by GitHub
parent 47928d1aed
commit 4a91cb37cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,8 +9,7 @@
<style>
body {
font-family: Arial, sans-serif;
background-color: #f6f8fa;
/* background-color: #9ed5c0; */
background-color: #e2f3f8;
}
h1, h2 {
@ -31,12 +30,7 @@
margin: auto;
margin-top: 24px;
border: 1px solid #e4e8eb;
background-color: #f9fbfc;
/*
background-color: #f6f8fa;
*/
overflow: visible;
background-color: #f0f6fb;
}
.overflowcontainer {
@ -68,7 +62,6 @@
.card.show {
opacity: 1;
transform: translateY(0);
/* display: block; */
}
.issue-title {
@ -173,16 +166,12 @@ Files: README.md,index.html,main.go</div>
<div class="added">+ randomNumber := rand.Intn(31) + 20</div>
<div class="added">+ fmt.Fprint(w, strconv.Itoa(randomNumber))</div>
<div class="added">+ })</div>
<div class="removed">- Existing code line 2</div>
<div class="added">+ New code line 2</div>
<div class="removed">- Existing code line 1</div>
<div class="added">+ New code line 1</div>
<div class="removed">- Existing code line 2</div>
<div class="added">+ New code line 2</div>
<div class="removed">- Existing code line 1</div>
<div class="added">+ New code line 1</div>
<div class="removed">- Existing code line 2</div>
<div class="added">+ New code line 2</div>
<div class="removed">- func setHeaders(w *http.ResponseWriter) { </div>
<div class="added">+ func setCustomHeaders(w *http.ResponseWriter) { </div>
<div class="removed">- backgroundColor = "white" </div>
<div class="added">+ backgroundColor = "#f0f6fb" </div>
<div class="removed">- router.HandleFunc("/api/strings", stringHandler) </div>
<div class="added">+ router.HandleFunc("/api/number", numberHandler) </div>
</div>
</div>
</div>
@ -236,19 +225,8 @@ pauseBtn.addEventListener('click', () => {
nextBtn.addEventListener('click', () => {
updateCards();
});
/*
prevBtn.addEventListener('click', () => {
currentIndex -= 1;
updateCards();
});
nextBtn.addEventListener('click', () => {
currentIndex += 1;
updateCards();
});
*/
updateCards();
</script>
</body>
</html>
</html>