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