Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

이혜정_0430 HTML CSS 과제 #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions FE_0430/LEE_HYE_JEONG/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->

<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<link rel="stylesheet" href=".\style.css">

<title>Frontend Mentor | Results summary component</title>

</head>
<body>
<div class="container">
<div class="result">
<h2 class="title">Your Result</h2>
<div class="circle">
<h1 class="score">76</h1>
<p>of 100</p>
</div>
<h2>Great</h2>
<p class="description">You scored higher than 65% of the people who have taken these tests.</p>
</div>

<div class="summary">
<h3 class="title">Summary</h3>
<div class="tags">
<div class="tag">
<div class="image-tag">
<img src="assets\images\icon-reaction.svg" alt="">
<h3>Reaction</h3>
</div>
<b>80<span> / 100</span></b>
</div>

<div class="tag">
<div class="image-tag">
<img src="assets\images\icon-memory.svg" alt="">
<h3>Memory</h3>
</div>
<b>92<span> / 100</span></b>
</div>

<div class="tag">
<div class="image-tag">
<img src="assets\images\icon-verbal.svg" alt="">
<h3>Verbal</h3>
</div>
<b>61<span> / 100</span></b>
</div>

<div class="tag">
<div class="image-tag">
<img src="assets\images\icon-visual.svg" alt="">
<h3>Visual</h3>
</div>
<b>72<span> / 100</span></b>
</div>
</div>
<button>Continue</button>
</div>
</div>
</body>
</html>
171 changes: 171 additions & 0 deletions FE_0430/LEE_HYE_JEONG/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
@font-face {
font-family: 'HankenGrotesk';
src: url('assets\fonts\HankenGrotesk-VariableFont_wght.ttf') format('truetype');
}

html {
box-sizing: border-box;
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
border: 0;
font-family: 'HankenGrotesk';
}

body {
width: 100vw;
height: 100vh;

display: flex;
justify-content: center;
align-items: center;
background-color: hsl(0, 0%, 100%);
}

.container{
display: flex;
justify-content: space-between;
border-radius: 25px;
box-shadow : 5px 5px 10px 10px hsl(221, 100%, 96%);
}

.result{
width: 300px;
height: 420px;
background: linear-gradient(to bottom, hsl(252, 100%, 67%), hsl(241, 81%, 54%));
border-radius: 25px;

text-align: center;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px 35px;

color:white;
}

.result > .title{
color: hsl(241, 100%, 89%);
font-size: large;
margin-top: 20px;
}

.circle{
display: flex;
flex-direction: column;
width: 140px;
height: 140px;
border-radius: 50%;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 10px;
color: hsl(241, 100%, 89%);
background: linear-gradient(to bottom, hsla(256, 72%, 46%, 1), hsla(241, 72%, 46%, 0));
}

.score{
color: white;
font-size: 50px;
}

.result h2{
color: white;
font-size: 30px;
margin-top: 30px;
margin-bottom: 15px;
}

.circle p{
font-size: small;
color: hsl(241, 100%, 89%);
}

.description{
font-size: medium;
color: hsl(241, 100%, 89%);
}

.summary{
display: flex;
width: 300px;
height: 420px;

border-radius: 25px;
flex-direction: column;
padding: 30px 35px;
gap: 25px;
}

.summary title{
color: black;
}

.tags{
display: flex;
flex-direction: column;
gap: 15px 0px;
}

.tag{
display: flex;
border-radius: 7px;
align-items: center;
justify-content: space-between;
height: 45px;
font-size: 12px;
padding: 10px 15px;
}

.tag span{
color:gray;
}

.tag:nth-child(1){
background-color: hsla(0, 100%, 67%, 0.1);
}

.tag:nth-child(2){
background-color: hsla(39, 100%, 56%, 0.1);
}

.tag:nth-child(3){
background-color: hsla(166, 100%, 37%, 0.1);
}

.tag:nth-child(4){
background-color: hsla(234, 85%, 45%, 0.1);
}

.tag:nth-child(1) > .image-tag{
color: hsla(0, 100%, 67%, 0.8);
}

.tag:nth-child(2) > .image-tag{
color: hsla(39, 100%, 56%, 0.8);
}

.tag:nth-child(3) > .image-tag{
color: hsla(166, 100%, 37%, 0.8);
}

.tag:nth-child(4) > .image-tag{
color: hsla(234, 85%, 45%, 0.8);
}

.image-tag{
display: flex;
align-items: center;
gap: 0px 5px;
}

.summary button{
background-color:hsl(224, 30%, 27%);
color: white;
height: 50px;
border-radius: 30px;
font-weight: 800;
}