scrimba
Code Reviews
Code Review: Clare's Solo Project - Basketball Scoreboard
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Code Review: Clare's Solo Project - Basketball Scoreboard
AboutCommentsNotes
Code Review: Clare's Solo Project - Basketball Scoreboard
Expand for more info
index.css
run
preview
console
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background-color: black;
text-align: center;
margin: auto;
width: 100%;
height:80vh;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}

@font-face{
font-family:cursedTimer;
src: url("CursedTimerUlil-Aznm.ttf");
}

.scoreboard-container {
background-color: rgba(27, 36, 74, 1);
display: flex;
justify-content: space-around;
align-items: center;
border: 8px solid rgba(255, 68, 0, 0.801);
margin: auto;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
width:500px;
}

.home-container,
.guest-container {
width:70%;
margin: auto;
border: 2px solid white;
}

img {
display: block;
width: 10em;
position: absolute;
top: 0;
border: 2px solid rgba(255, 68, 0, 0.774);
border-radius: 50%;
margin-top: 1em;
}

h2 {
font-weight: 700;
font-size: 2rem;
color: rgba(238, 238, 238, 1);
margin-top: 1.8em;
margin-bottom: 1.3em;
}

.score-container {
background-color: rgba(8, 0, 1, 1);
margin: auto;
display: flex;
align-items: center;
justify-content: center;
}

.score {
font-size: 4rem;
color: rgba(249, 79, 109, 1);
font-family: "cursedTimer", sans-serif;
width: 100%;
margin: auto;
padding: 0.3em;
}

.points {
width: 2em;
height: 2em;
margin: 2.5em 0.3em;
border: 2px solid #9aabd8;
border-radius: 5px;
color: rgba(154, 171, 216, 1);
background-color: rgba(27, 36, 74, 1);
font-family:cursedTimer, sans-serif;
font-size: 1rem;
cursor: pointer;
}

.points:hover {
transform: scale(1.3);
}

.reset {
position: absolute;
border-radius: 100%;
width: 4em;
height: 4em;
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: darkblue;
font-weight: bold;
font-size: 1.2rem;
cursor: pointer;
background-image: url(/images/orange-basketball.jpg);
background-position: cover;
background-position: center;
background-size:115%;
background-repeat:no-repeat;
top: 0;
left: 0;
right: 0;
bottom: 1.5em;
margin: auto auto 0 auto;
}

.reset:hover {
transform: scale(1.3);
}

.leading {
border: 5px solid red;
box-shadow: 0 0 20px 10px rgba(255, 68, 0, 0.774);
}
.draw {
border: 5px solid green;
box-shadow: 0 0 20px 10px green;
}
Console
/index.html
-19:17