Skip to content

Commit

Permalink
Вёрстка, стилизация и адаптация блоков Process и Studies
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChoirSPb committed Oct 22, 2024
1 parent aad9902 commit 4ad1ee1
Show file tree
Hide file tree
Showing 6 changed files with 657 additions and 2 deletions.
210 changes: 210 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,216 @@ <h3 class="banner__title">Let’s make things happen</h3>
</div>
</div>
</section>

<section class="section section--hidden-x container">
<header class="section__header">
<h2 class="section__title puddle-bg">Case Studies</h2>
<div class="section__description">
<p>
Explore Real-Life Examples of Our Proven Digital Marketing Success
through Our Case Studies
</p>
</div>
</header>

<div class="section__body">
<div class="studies">
<ul class="studies__list">
<li class="studies__item">
<div class="studies__description">
<p>
For a local restaurant, we implemented a targeted PPC
campaign that resulted in a 50% increase in website traffic
and a 25% increase in sales.
</p>
</div>
<a href="" class="studies__link">
<span>Learn more</span>
<svg
width="21"
height="20"
viewBox="0 0 21 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M1.25 13.701C0.532561 14.1152 0.286748 15.0326 0.700962 15.75C1.11518 16.4674 2.03256 16.7133 2.75 16.299L1.25 13.701ZM20.7694 5.38823C20.9838 4.58803 20.5089 3.76552 19.7087 3.55111L6.66874 0.0570541C5.86854 -0.157359 5.04603 0.317515 4.83162 1.11771C4.61721 1.91791 5.09208 2.74042 5.89228 2.95483L17.4834 6.06066L14.3776 17.6518C14.1631 18.452 14.638 19.2745 15.4382 19.4889C16.2384 19.7033 17.0609 19.2284 17.2753 18.4282L20.7694 5.38823ZM2.75 16.299L20.0705 6.29904L18.5705 3.70096L1.25 13.701L2.75 16.299Z"
fill="#B9FF66"
/>
</svg>
</a>
</li>
<li class="studies__item">
<div class="studies__description">
<p>
For a B2B software company, we developed an SEO strategy
that resulted in a first page ranking for key keywords and a
200% increase in organic traffic.
</p>
</div>
<a href="" class="studies__link">
<span>Learn more</span>
<svg
width="21"
height="20"
viewBox="0 0 21 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M1.25 13.701C0.532561 14.1152 0.286748 15.0326 0.700962 15.75C1.11518 16.4674 2.03256 16.7133 2.75 16.299L1.25 13.701ZM20.7694 5.38823C20.9838 4.58803 20.5089 3.76552 19.7087 3.55111L6.66874 0.0570541C5.86854 -0.157359 5.04603 0.317515 4.83162 1.11771C4.61721 1.91791 5.09208 2.74042 5.89228 2.95483L17.4834 6.06066L14.3776 17.6518C14.1631 18.452 14.638 19.2745 15.4382 19.4889C16.2384 19.7033 17.0609 19.2284 17.2753 18.4282L20.7694 5.38823ZM2.75 16.299L20.0705 6.29904L18.5705 3.70096L1.25 13.701L2.75 16.299Z"
fill="#B9FF66"
/>
</svg>
</a>
</li>
<li class="studies__item">
<div class="studies__description">
<p>
For a national retail chain, we created a social media
marketing campaign that increased followers by 25% and
generated a 20% increase in online sales.
</p>
</div>
<a href="" class="studies__link">
<span>Learn more</span>
<svg
width="21"
height="20"
viewBox="0 0 21 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M1.25 13.701C0.532561 14.1152 0.286748 15.0326 0.700962 15.75C1.11518 16.4674 2.03256 16.7133 2.75 16.299L1.25 13.701ZM20.7694 5.38823C20.9838 4.58803 20.5089 3.76552 19.7087 3.55111L6.66874 0.0570541C5.86854 -0.157359 5.04603 0.317515 4.83162 1.11771C4.61721 1.91791 5.09208 2.74042 5.89228 2.95483L17.4834 6.06066L14.3776 17.6518C14.1631 18.452 14.638 19.2745 15.4382 19.4889C16.2384 19.7033 17.0609 19.2284 17.2753 18.4282L20.7694 5.38823ZM2.75 16.299L20.0705 6.29904L18.5705 3.70096L1.25 13.701L2.75 16.299Z"
fill="#B9FF66"
/>
</svg>
</a>
</li>
</ul>
</div>
</div>
</section>

<section class="section container">
<header class="section__header">
<h2 class="section__title puddle-bg">Our Working Process</h2>
<div class="section__description">
<p>
Step-by-Step Guide to Achieving <br />
Your Business Goals
</p>
</div>
</header>
<div class="section__body">
<div class="process">
<ol class="process__list">
<li class="process__item">
<details class="process__accordion" open>
<summary class="process__accordion-header">
<h3 class="process__accordion-title">Consultation</h3>
<span class="process__accordion-indicator"></span>
</summary>
<div class="process__accordion-body">
<p>
During the initial consultation, we will discuss your
business goals and objectives, target audience, and
current marketing efforts. This will allow us to
understand your needs and tailor our services to best fit
your requirements.
</p>
</div>
</details>
</li>
<li class="process__item">
<details class="process__accordion">
<summary class="process__accordion-header">
<h3 class="process__accordion-title">
Research and Strategy Development
</h3>
<span class="process__accordion-indicator"></span>
</summary>
<div class="process__accordion-body">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Sapiente, perferendis.
</p>
</div>
</details>
</li>
<li class="process__item">
<details class="process__accordion">
<summary class="process__accordion-header">
<h3 class="process__accordion-title">Implementation</h3>
<span class="process__accordion-indicator"></span>
</summary>
<div class="process__accordion-body">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit.
Dolore quidem qui deserunt corporis voluptatem iure
adipisci molestiae delectus, fuga magnam nemo, officia
nostrum praesentium quia? Tempora, maiores! Quo, tempora
error.
</p>
</div>
</details>
</li>
<li class="process__item">
<details class="process__accordion">
<summary class="process__accordion-header">
<h3 class="process__accordion-title">
Monitoring and Optimization
</h3>
<span class="process__accordion-indicator"></span>
</summary>
<div class="process__accordion-body">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Sit, adipisci! Cum laboriosam et, temporibus unde
asperiores quibusdam suscipit pariatur neque. Blanditiis
officiis optio iure labore.
</p>
</div>
</details>
</li>
<li class="process__item">
<details class="process__accordion">
<summary class="process__accordion-header">
<h3 class="process__accordion-title">
Reporting and Communication
</h3>
<span class="process__accordion-indicator"></span>
</summary>
<div class="process__accordion-body">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit.
Nostrum voluptas dolore autem fugiat aut ratione?
</p>
</div>
</details>
</li>
<li class="process__item">
<details class="process__accordion">
<summary class="process__accordion-header">
<h3 class="process__accordion-title">
Continual Improvement
</h3>
<span class="process__accordion-indicator"></span>
</summary>
<div class="process__accordion-body">
<p>
Lorem ipsum dolor sit, amet consectetur adipisicing elit.
Fuga, vitae voluptas? Similique nihil at maiores eveniet
numquam facere ex minima?
</p>
</div>
</details>
</li>
</ol>
</div>
</div>
</section>
</main>
<dialog class="mobile-overlay visible-mobile" id="mobileOverlay">
<form class="mobile-overlay__close-button-wrapper" method="dialog">
Expand Down
125 changes: 125 additions & 0 deletions styles/blocks/_process.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
.process {

&__list {
display: flex;
flex-direction: column;
row-gap: 30px;
counter-reset: custom-counter;
list-style: none;

@include mobile {
row-gap: 20px;
}
}

&__item {
--counterContent: counter(custom-counter);

counter-increment: custom-counter;

&:nth-child(-n+9) {
--counterContent: '0' counter(custom-counter);
}
}

&__accordion {
--indicatorVerticalRotate: 90deg;

padding: 40px 60px;

background-color: var(--color-gray);
border: var(--border);
box-shadow: var(--shadow);
border-radius: var(--border-radius-large);
transition-duration: var(--transition-duration);

@include hover {
background-color: var(--color-accent);
}

@include mobile {
padding: 30px;
}

&[open] {
background-color: var(--color-accent);

--indicatorVerticalRotate: 0deg;
}

&-header {
display: flex;
justify-content: space-between;
align-items: center;
column-gap: 50px;

cursor: pointer;
user-select: none;

@include mobile {
column-gap: 28px;
}
}

&-title {
@include fluid-text(30,18);

display: flex;
align-items: center;
column-gap: 25px;

@include mobile {
column-gap: 33px;

}

&::before {
content: var(--counterContent);
font-size: 2em;

@include mobile {
font-size: 30px;
}
}
}

&-indicator {
@include flex-center;
@include square(58px);

flex-shrink: 0;

background-color: var(--color-gray);
border: var(--border);
border-radius: 50%;
position: relative;

@include mobile {
width: 30px;
}

&::before,
&::after {
@include abs-center;

content: '';
width: 45%;
height: 10%;
background-color: var(--color-dark);
}

&::after {
rotate: var(--indicatorVerticalRotate);
transition-duration: var(--transition-duration);
}


}

&-body {
margin-top: 30px;
padding-top: 30px;
border-top: var(--border);
}
}
}
Loading

0 comments on commit 4ad1ee1

Please sign in to comment.