Skip to content

Commit

Permalink
update project structure
Browse files Browse the repository at this point in the history
+ pop up cards markups added
  • Loading branch information
TetiZ committed Jan 24, 2024
1 parent 73532e1 commit eba1836
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 171 deletions.
48 changes: 11 additions & 37 deletions src/css/layout/hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
}

.background-container {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 387px;
position: relative;
background-image: url(../img/hero/image\ 2.png);
background-repeat: no-repeat;
margin: 0 auto;
}
@media screen and (min-width: 768px) {
.background-container {
Expand All @@ -32,9 +35,10 @@
}

.container-hero {
width: 335px;
margin: 0 auto;
display: flex;
flex-direction: column;
flex-shrink: 0;
padding-top: 20px;
}
@media screen and (min-width: 768px) {
Expand All @@ -52,43 +56,15 @@
}
}

.link-energi-flow {
color: #1b1b1b;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 18px;
letter-spacing: -0.32px;
position: absolute;
top: 20px;
left: 20px;
}
@media screen and (min-width: 768px) {
.link-energi-flow {
font-size: 28px;
line-height: 28px;
letter-spacing: -0.56px;
height: 28px;
width: 150px;
top: 44px;
left: 32px;
}
}

@media screen and (min-width: 768px) {
.container-hero {
display: flex;
}
.hero-container-text {
display: flex;
flex-direction: column;
justify-content: center;
padding: 60px 20px;
}
}
.position-teg {
position: absolute;
bottom: 20px;
left: 10px;
}
@media screen and (min-width: 768px) {
.position-teg {
Expand Down Expand Up @@ -162,8 +138,7 @@
height: 365px;
flex-shrink: 0;
border-radius: 30px;
/* background: #fff; */
background: #f6f6f6;
background: #fff;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down Expand Up @@ -192,7 +167,6 @@
line-height: 50px;
letter-spacing: -1.12px;
margin-bottom: 20px;
margin-left: 20px;
}
@media screen and (min-width: 768px) {
.hero-title {
Expand Down Expand Up @@ -220,14 +194,14 @@
font-style: normal;
font-weight: 400;
line-height: 18px;
letter-spacing: -0.14px;
letter-spacing: -0.01em;
}
@media screen and (min-width: 768px) {
.hero-text {
width: 396px;
height: 72px;
line-height: 24px;
line-height: 1.28;
font-size: 18px;
letter-spacing: -0.18px;
letter-spacing: -0.18em;
}
}
3 changes: 1 addition & 2 deletions src/partials/hero.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<section class="section-hero">
<div class="container-hero container">
<div class="container-hero">
<div class="background-container">
<a href=".index.html" class="link-energi-flow">energy.flow</a>
<div class="position-teg">
<ul class="hero-teg-list">
<li class="hero-list-iteam">#Sport</li>
Expand Down
23 changes: 23 additions & 0 deletions src/partials/pop-up-email.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<div class="backdrop">
<form class="pop-up-rating">
<button class="pop-up-close-btn" type="button">
<svg class="pop-up-close-btn-icon">
<use href="../img/icons.svg#icon-close" width="12" height="12"></use>
</svg>
</button>
<p class="pop-up-title-rating">Rating</p>
<span class="pop-up-rating-value">0.0</span>
<label class="pop-up-field">
<input class="pop-up-input-email" type="email" placeholder="Email" />
</label>
<label class="pop-up-field">
<textarea
class="pop-up-message"
name="User comment"
rows="4"
placeholder="Your comment"
></textarea>
</label>
<button class="pop-up-send-btn" type="submit">Send</button>
</form>
</div>
91 changes: 91 additions & 0 deletions src/partials/pop-up-exersise-card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<div class="backdrop-ex is-open">
<div class="modal-ex">
<svg class="close-btn-icon" width="24" height="24" aria-label="close icon">
<use href="../img/icons.svg#icon-close"></use>
</svg>
<div class="exercises-img">
<img
src="https://ftp.goit.study/img/power-pulse/gifs/0003.gif"
class="img-ex"
width="295"
height="258"
/>
</div>

<div class="content-ex-container">
<h2 class="exercise-name">Air bake</h2>
<ul class="stars-list">
<p class="current-rating">4.0</p>
<li>
<svg class="rate-icon" width="18" height="18" aria-label="ratting">
<use href="../img/icons.svg#icon-star"></use>
</svg>
</li>
<li>
<svg class="rate-icon" width="18" height="18" aria-label="ratting">
<use href="../img/icons.svg#icon-star"></use>
</svg>
</li>
<li>
<svg class="rate-icon" width="18" height="18" aria-label="ratting">
<use href="../img/icons.svg#icon-star"></use>
</svg>
</li>
<li>
<svg class="rate-icon" width="18" height="18" aria-label="ratting">
<use href="../img/icons.svg#icon-star"></use>
</svg>
</li>
<li>
<svg class="rate-icon" width="18" height="18" aria-label="ratting">
<use href="../img/icons.svg#icon-star"></use>
</svg>
</li>
</ul>

<hr class="decorate-elem" />

<div class="ex-info">
<div class="field">
<span class="value">Target</span>
<span class="label">Abs</span>
</div>
<div class="field">
<span class="value">Body Part</span>
<span class="label">Waist</span>
</div>
<div class="field">
<span class="value">Equipment</span>
<span class="label">Body weight</span>
</div>
<div class="field">
<span class="value">Popular</span>
<span class="label">150</span>
</div>
</div>

<div class="calorie-info">
<span class="value">Burned Calories</span>
<span class="label">323/3 min</span>
</div>

<hr class="decorate-elem" />

<p class="desc-exercise">
This refers to your core muscles, which include the rectus abdominis,
obliques, and transverse abdominis. They're essential for maintaining
posture, stability, and generating force in many movements. Exercises
that target the abs include crunches, leg raises, and planks.
</p>

<div class="btns-container">
<button class="add-fav">
Add to favorites<svg class="heart-icon" width="18" height="18">
<use href="../img/icons.svg#icon-heart"></use>
</svg>
</button>
<button class="rating-btn">Give a rating</button>
</div>
</div>
</div>
</div>
132 changes: 0 additions & 132 deletions src/partials/pop-ups.html

This file was deleted.

0 comments on commit eba1836

Please sign in to comment.