Skip to content

Commit

Permalink
iiiiMerge branch 'master' of https://github.com/8-bit-sheep/lamb-quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
Liv Green authored and Liv Green committed Aug 2, 2019
2 parents afce6b1 + fd3860e commit fb78585
Show file tree
Hide file tree
Showing 13 changed files with 584 additions and 205 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added Yle-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#about-container {
width: 50rem;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
max-width: 500px;
margin: 0 auto;
padding: 5rem;
}

#headline {
display: flex;

width: 50rem;
}

h1 {
color: #7badb6;
}

img {
display: block;
width: auto;
height: auto;
}

.text {
font-size: 1.8rem;
margin-bottom: 3rem;
width: 50rem;
z-index: 2;
position: relative;
top: -5.5rem;
text-align: justify;
text-justify: inter-word;
}

#family-pic {
width: 50rem;
z-index: 1;
}
#sheep {
width: 30rem;
height: 17rem;
}

:root {
background-color: black;
}

* {
color: white;
}

#continue-btn {
background-color: #7badb6;
color: white;
width: 30rem;
}

#yle-logo {
width: 5rem;
}

#made-possible {
display: flex;
justify-content: flex-end;
align-items: center;
margin-top: 10rem;
}
38 changes: 38 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>About</title>
<link rel="stylesheet" href="app.css" />
<link rel="stylesheet" href="about.css" />
</head>
<body>
<div id="about-container">
<div id="headline">
<h1>About this project...</h1>
<img src="sheep-logo.gif" alt="sheep logo" id="sheep" />
</div>

<img src="family-pic.jpg" alt="lamb family pic" id="family-pic" />
<div class="text">
<h4>
The Summer Lambs Project is a cooperation between 8-bit-sheep and Eija
Moisala at Yleisradio. The idea was to offer summer jobs to high
schoolers, teach them to code JavaScript and give them a sense of
working in tech. This *very cool* website is the product of that
summer. Enjoy!
</h4>
</div>
<a href="index.html?about=seen" class="btn" id="continue-btn"
>Continue to *very cool* quiz</a
>
<div id="made-possible">
<h4>Thank you</h4>
<img src="Yle-logo.png" alt="logo" id="yle-logo" />
<h4>for making this possible!</h4>
</div>
</div>
</body>
</html>
3 changes: 2 additions & 1 deletion app.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ h4 {
transform: translateY(-0.1rem);
transition: transform 150ms;
}
.btn[disabled]:hover {
.btn[disabled]:hover,
#save-improvement-button[disabled]:hover {
cursor: not-allowed;
box-shadow: none;
transform: none;
Expand Down
4 changes: 2 additions & 2 deletions end.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const parseUrlParameters = parameter =>
.reduce((acc, cur) => ({ ...acc, [cur[0]]: cur[1] }), {});

const username = document.getElementById("username");
const finalScore = document.getElementById("finalScore");
finalScore = document.getElementById("finalScore");
const mostRecentScore = localStorage.getItem("mostRecentScore");
const saveScoreBtn = document.getElementById("saveScoreButton");
const urlParams = parseUrlParameters(window.location.search);
Expand All @@ -20,7 +20,7 @@ const saveHighscore = e => {

const rankingUrl = `https://script.google.com/macros/s/AKfycbwdGGPzI9JdH_6FN-na4boXQNZmGyv6y_690ErJc0Xhzd_CQ4A_/exec?contentId=${
urlParams.contentId
}&score=${mostRecentScore}&name=${username.value}`;
}&name=${username.value}&score=${mostRecentScore}`;
fetch(rankingUrl);
setInterval(
() =>
Expand Down
Binary file added family-pic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 94 additions & 26 deletions game.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.choice-container {
display: flex;
margin-bottom: 0.5rem;
width: 100%;
font-size: 1.8rem;
border: 0.1rem solid #7badb6;
background-color: white;
display: flex;
margin-bottom: 0.5rem;
width: 100%;
font-size: 1.8rem;
border: 0.1rem solid #7badb6;
background-color: white;
}

.choice-text {
Expand Down Expand Up @@ -50,10 +50,10 @@
}

.episode-info {
width: 100%;
padding: 1rem 2rem;
text-align: center;
font-family: "Times New Roman", Times, serif;
width: 100%;
padding: 1rem 2rem;
text-align: center;
font-family: "Times New Roman", Times, serif;
}

#episodeName:hover {
Expand Down Expand Up @@ -91,30 +91,98 @@

.segment-btn,
.all-btn {
font-size: 1.8rem;
font-weight: 500;
background-color: white;
border: 0.1rem solid #7badb6;
box-shadow: none;
color: #a9431e;
padding: 1rem;
width: 100%;
text-align: left;
font-size: 1.8rem;
font-weight: 500;
background-color: white;
border: 0.1rem solid #7badb6;
box-shadow: none;
color: #a9431e;
padding: 1rem;
width: 100%;
text-align: left;
}

.segment-btn {
margin-top: 0.25rem;
margin-top: 0.25rem;
}

#all-btns {
padding: 0rem;
border-width: 0rem;
list-style: none;
margin-bottom: 1rem;
width: 100%;
padding: 0rem;
border-width: 0rem;
list-style: none;
margin-bottom: 1rem;
width: 100%;
}

.segment-btn:hover {
color: #a9431e;
color: #a9431e;
}
#red-answer {
color: red;
}
#correct-answer-box {
font-size: 1.8rem;
font-weight: 500;
}
input {
}
#improvement-input {
height: 10rem;
width: 100%;
position: relative;
z-index: 1;
}

#username-input {
margin-right: 2rem;
}

#email-input,
#username-input {
font-size: 1.2rem;
}

#save-improvement-button,
#improvement-btn {
width: 10rem;
height: 3rem;
background-color: white;
border-radius: 0.7rem;
color: #7badb6;
border: 0.1rem solid #7badb6;
font-size: 1.4rem;
}
#personal-info {
width: 100%;
}
#improvement-form {
justify-content: flex-start;
align-items: flex-start;
}

#improvement-btn {
width: 20rem;
font-size: 1.2rem;
height: 2rem;
margin-bottom: 1.7rem;
}
#exit-improvement {
position: relative;
z-index: 2;
left: -20.3rem;
top: 3.4rem;
box-shadow: 0 0.2rem 0.4rem 0 rgba(123, 173, 182, 0.5);
}
#improvement-thnx {
color: #a9431e;
animation: fade 1.5s ease-out 2.6s;
}

@keyframes fade {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
Loading

0 comments on commit fb78585

Please sign in to comment.