Skip to content

Commit

Permalink
Merge pull request #127 from mansi066/br2
Browse files Browse the repository at this point in the history
Course material in principle of economic added
  • Loading branch information
avanimathur authored Jan 12, 2025
2 parents a8c5d02 + 80b1883 commit ec32020
Show file tree
Hide file tree
Showing 13 changed files with 3,273 additions and 1 deletion.
109 changes: 109 additions & 0 deletions Principle of Economics/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
:root{
--hue-neutral:200;
--hue-wrong:0;
--hue-correct:145;
}

body{
--hue: var(--hue-neutral);
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image:linear-gradient(45deg, #3498db, #2ecc71);

height: 100vh;
width: 100vw;
}

body.correct{
--hue: var(--hue-correct);
}

body.wrong{
--hue: var(--hue-wrong);
}

.container{
width: 800px;
max-width: 80%;
background-color: aliceblue;
border-radius: 5px;
padding: 10px;
box-shadow: 0 0 10px 2px;
margin-bottom: 20px;
}

.btn-grid {
display: grid;
grid-template-columns: repeat(2, auto);
gap: 10px;
margin: 20px 0;
}

.btn{
--hue: var(--hue-neutral);
border: 1px solid hsl(var(--hue), 100%, 30%);
background-color: rgba(6, 109, 109, 0.571);
border-radius: 5px;
padding: 5px 10px;
color: whitesmoke;
outline: none;
cursor: pointer;
}

.btn.correct {
background-color: hsl(var(--hue-correct), 100%, 30%);
}

.btn.wrong {
background-color: hsl(var(--hue-wrong), 100%, 30%);
}

.btn:hover{
border-color: black;
opacity: 2;
}

.start-btn,
.next-btn{
font-size: 1.5rem;
font-weight: bold;
padding: 10px 20px;
cursor: pointer;
}

.controls{
display: flex;
justify-content: center;
align-items: center;
}

.hide{
display: none;
}
.score-container {
--hue :var(--hue-neutral);
}

.score {
font-size: 1.5rem;
font-weight: bold;
text-align: center;
padding: 10px;
border-radius: 5px;
background-color: aliceblue;
box-shadow: 0 0 10px 2px;
}

.score.correct {
color: hsl(var(--hue-correct), 100%, 30%);

}

.score.wrong {
color: hsl(var(--hue-wrong), 100%, 30%);

}
Loading

0 comments on commit ec32020

Please sign in to comment.