Skip to content

Commit

Permalink
feat: about us section adapted for desktop devices
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfalconmx committed Apr 19, 2024
1 parent b196c44 commit cb3c4bf
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 19 deletions.
45 changes: 28 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,36 @@ <h1 class="hero__title">Make your dream business goal come true</h1>
</section>

<section class="about">
<span class="about__caption"> Our services </span>
<span class="about__caption">About us</span>
<h2 class="about__title">Our Teammate</h2>
<p class="about__description">
We move with make a Creative Strategy for help your business goal, we
help to improve your income by a services we have. make your content
look interesting and make people look for your business2
<br /><br />
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Eu neque tempor
at ut auctor maecenas,Lorem ipsum d
</p>
<div class="about__buttons">
<button class="about__button">About Us</button>
<button class="about__button about__button--outline">
<img src="/icons/icon-play-circle.svg" />
About Us
</button>
</div>
<div class="about__container">
<div class="about__content">
<p class="about__description">
We move with make a Creative Strategy for help your business goal,
we help to improve your income by a services we have. make your
content look interesting and make people look for your business2
<br /><br />
We move with make a Creative Strategy for help your business goal,
we help to improve your income by a services we have. make your
content look interesting and make people look for your business
</p>
<div class="about__buttons">
<button class="about__button">About Us</button>
<button class="about__button about__button--outline">
<img src="/icons/icon-play-circle.svg" />
Our history
</button>
</div>
</div>

<img src="/images/about-mobile.png" alt="#" class="about__image" />
<picture class="hero__picture">
<source
media="(min-width: 768px)"
srcset="/images/about-desktop.png"
/>
<img src="/images/about-mobile.png" alt="#" class="about__image" />
</picture>
</div>
</section>

<section class="services">
Expand Down
Binary file added public/images/about-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions scss/mixins/caption.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
color: $color-accent;
display: block;
width: fit-content;

@media (min-width: $md) {
font-size: 2.4rem;
}
}
32 changes: 30 additions & 2 deletions scss/sections/about.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.about {
padding: 0 25px;
margin-bottom: 100px;
margin: 0 auto 100px;
max-width: 1270px;

&__caption {
@include caption;
Expand All @@ -13,6 +14,21 @@
margin-bottom: 35px;
}

&__container {
@media (min-width: $md) {
display: flex;
flex-direction: row-reverse;
gap: 30px;
align-items: center;
}
}

&__content {
@media (min-width: $md) {
padding-top: 30px;
}
}

&__description {
@include paragraph;
margin-bottom: 35px;
Expand All @@ -23,6 +39,11 @@
justify-content: space-evenly;
align-items: center;
margin-bottom: 50px;

@media (min-width: $md) {
justify-content: flex-start;
gap: 25px;
}
}

&__button {
Expand All @@ -37,8 +58,15 @@
}
}

&__picture {
margin: auto;
}

&__image {
width: 100%;
margin: auto;

@media (min-width: $md) {
min-width: 638px;
}
}
}

0 comments on commit cb3c4bf

Please sign in to comment.