Skip to content

Commit

Permalink
alt: responsive + credits
Browse files Browse the repository at this point in the history
  • Loading branch information
Irusou committed Aug 15, 2023
1 parent c9a5cbd commit 55fb511
Show file tree
Hide file tree
Showing 2 changed files with 128 additions and 130 deletions.
248 changes: 123 additions & 125 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,153 +17,151 @@ p {
}

/* MOBILE */
@media (min-width: 375px) and (max-width: 1440px) {
main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.score-header {
background: linear-gradient(hsl(252, 100%, 67%), hsl(241, 81%, 54%));
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 0 0 30px 30px;
}
main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.score-header {
background: linear-gradient(hsl(252, 100%, 67%), hsl(241, 81%, 54%));
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 0 0 30px 30px;
}

.score-result {
color: hsl(0, 0%, 80%);
font-weight: 400;
margin: 20px 0;
}
.score-result {
color: hsl(0, 0%, 80%);
font-weight: 400;
margin: 20px 0;
}

.score-value {
background: linear-gradient(hsla(256, 72%, 46%, 1), hsla(241, 72%, 46%, 0));
border-radius: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 150px;
height: 150px;
}
.score-value {
background: linear-gradient(hsla(256, 72%, 46%, 1), hsla(241, 72%, 46%, 0));
border-radius: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 150px;
height: 150px;
}

.score-value h1 {
color: white;
font-size: 54px;
font-weight: 500;
}
.score-value h1 {
color: white;
font-size: 54px;
font-weight: 500;
}

.score-value p {
color: hsl(0, 0%, 60%);
font-weight: 500;
}
.score-value p {
color: hsl(0, 0%, 60%);
font-weight: 500;
}

.score-text {
padding: 20px 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 80%;
}
.score-text {
padding: 20px 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 80%;
}

.score-text h2 {
font-size: 24px;
font-weight: 500;
color: white;
}
.score-text p {
color: hsl(0, 0%, 70%);
}
.score-text h2 {
font-size: 24px;
font-weight: 500;
color: white;
}
.score-text p {
color: hsl(0, 0%, 70%);
}

.score-summary {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
padding: 20px 0;
gap: 20px;
}
.score-summary {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100%;
padding: 20px 0;
gap: 20px;
}

.summary-text {
align-self: start;
padding: 0 30px;
}
.summary-text {
align-self: start;
padding: 0 30px;
}

.reaction-container,
.memory-container,
.verbal-container,
.visual-container {
width: 85%;
height: 60px;
background-color: antiquewhite;
border-radius: 8px;
padding: 0 10px;
display: flex;
align-items: center;
justify-content: space-between;
}
.reaction-container,
.memory-container,
.verbal-container,
.visual-container {
width: 85%;
height: 60px;
background-color: antiquewhite;
border-radius: 8px;
padding: 0 10px;
display: flex;
align-items: center;
justify-content: space-between;
}

.reaction-container {
background: #fff6f5;
color: #e86f76;
}
.reaction-container {
background: #fff6f5;
color: #e86f76;
}

.reaction-container p {
color: hsl(0, 0%, 50%);
}
.reaction-container p {
color: hsl(0, 0%, 50%);
}

.memory-container {
background: #fffbf2;
color: #ecb956;
}
.memory-container {
background: #fffbf2;
color: #ecb956;
}

.memory-container p {
color: hsl(0, 0%, 50%);
}
.memory-container p {
color: hsl(0, 0%, 50%);
}

.verbal-container {
background: #f2fafa;
color: #47a991;
}
.verbal-container {
background: #f2fafa;
color: #47a991;
}

.verbal-container p {
color: hsl(0, 0%, 50%);
}
.verbal-container p {
color: hsl(0, 0%, 50%);
}

.visual-container {
background: #f3f3fd;
color: #20248d;
}
.visual-container {
background: #f3f3fd;
color: #20248d;
}

.visual-container p {
color: hsl(0, 0%, 50%);
}
.visual-container p {
color: hsl(0, 0%, 50%);
}

p span {
color: #353643;
font-weight: 600;
}
p span {
color: #353643;
font-weight: 600;
}

.btn-continue {
background: none;
border: none;
color: white;
background-color: #303b59;
width: 85%;
height: 50px;
border-radius: 50px;
font-size: 18px;
font-weight: 500;
}
.btn-continue {
background: none;
border: none;
color: white;
background-color: #303b59;
width: 85%;
height: 50px;
border-radius: 50px;
font-size: 18px;
font-weight: 500;
}

/* DESKTOP */
@media (min-width: 1440px) {
@media (min-width: 375px) {
body {
margin: 0;
padding: 0;
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
<title>Frontend Mentor | Results summary component</title>

<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<!-- <style>
<style>
.attribution {
font-size: 11px;
text-align: center;
}
.attribution a {
color: hsl(228, 45%, 44%);
}
</style> -->
</style>
</head>
<body>
<main>
Expand Down Expand Up @@ -88,11 +88,11 @@ <h4>Visual</h4>
</div>
</main>

<!-- <div class="attribution">
<div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by <a href="#">Your Name Here</a>.
</div> -->
>. Coded by <a href="https://github.com/Irusou">João Morais</a>.
</div>
</body>
</html>

0 comments on commit 55fb511

Please sign in to comment.