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

feature: home mobile version #7

Open
wants to merge 2 commits into
base: base
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
6 changes: 3 additions & 3 deletions src/components/sections/BannerText/banner-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
display: flex;
flex-direction: column;
align-items: center;
max-width: 700px;
width: 100%;

@include media(">=notebook") { max-width: 700px; }
}

h2, p {
display: inline;

// font-family: 'Montserrat';
font-style: normal;
font-weight: 500;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
function FavoriteProducts({ className = '' }: Props) {
return (
<section className={`section frn-favoriteProducts ${className}`}>
<div className="frn-favoriteProducts__grid-content / grid-content">
<div className="frn-favoriteProducts__grid-content">
<div className="frn-favoriteProducts__children">
<div className="frn-favoriteProducts__children-infos">
<h3>Os favoritos do momento</h3>
Expand Down
20 changes: 18 additions & 2 deletions src/components/sections/FavoriteProducts/favorite-products.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,38 @@

&__grid-content {
display: flex;
flex-direction: column;
align-content: center;
align-items: center;
justify-content: space-between;
padding-top: var(--page-padding-notebook);
padding-bottom: var(--page-padding-notebook);

@include media(">=notebook") {
flex-direction: row;
padding-right: 0;
margin-left: calc((100vw - var(--breakpoint-notebook)) / 2);
}

@include media("<notebook") {
padding-right: 0;
margin-left: calc((100vw - var(--breakpoint-phonemid)) / 6);
}
}

&__children {
display: flex;
flex-direction: column;
align-items: flex-start;
max-width: 250px;
padding: 0;
margin-right: 57px;
padding-right: var(--page-padding-notebook);
text-align: left;

@include media(">=notebook") {
max-width: 250px;
margin-right: 57px;
}

&-infos {
margin-bottom: 45px;
}
Expand Down
9 changes: 9 additions & 0 deletions src/components/sections/NewProducts/new-products.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
justify-content: space-between;
padding-top: var(--page-padding-notebook);
padding-bottom: var(--page-padding-notebook);

@include media("<notebook") {
padding-right: 0;
margin-left: calc((100vw - var(--breakpoint-mobile)) / 2);
}
}

&__children {
Expand All @@ -34,6 +39,10 @@
font-weight: 500;
line-height: 37px;
color: #ffffff;

@include media("<notebook") {
padding-right: var(--page-padding-notebook);
}
}

p {
Expand Down
30 changes: 24 additions & 6 deletions src/components/sections/Newsletter/newsletter.scss
Original file line number Diff line number Diff line change
@@ -1,32 +1,49 @@
[data-store-newsletter] {
padding-top: 55px;
padding-bottom: 55px;

@include media(">=notebook") {
padding-top: 100px;
padding-bottom: 100px;
}
}

[data-newsletter-form] {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 320px;
padding: 64px 260px;
max-height: 320px;
padding: 26px;
background: linear-gradient(95.28deg, rgb(0 174 255 / 80%) 0%, #de68d1 59.98%, #f3d752 115.17%);
border-radius: 30px;
}

[data-newsletter-header] {
font-size: 32px;
max-width: 890px;
margin-top: 30px;
font-size: 27px;
// font-family: 'Montserrat';
font-style: normal;
font-weight: 500;
line-height: 48px;
line-height: 34px;
color: #ffffff;
text-align: center;

@include media(">=notebook") {
font-size: 32px;
line-height: 48px;
}
}

[data-newsletter-controls] {
box-sizing: border-box;
display: flex;
align-items: center;
width: 75%;
width: 100%;
max-width: 590px;
height: 50px;
margin-top: 36px;
margin: 36px 0;
border: 1px solid rgb(255 255 255 / 50%);
border-radius: var(--border-radius-default);

Expand All @@ -52,6 +69,7 @@

::placeholder {
font-size: 13px;

// font-family: 'Montserrat';
font-style: normal;
font-weight: 500;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/Skills/Skills.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function Skills({
return (
<section className={`section frn-skills ${className}`}>
<div className="frn-skills__grid-content / grid-content">
<div className="frn-skills__grid-skills">
<div className="frn-skills__grid-skills frn-skills__grid-skills__mobile-none">
{skills?.map((skill, index) => (
<LinkButton
className="frn-skills__skill"
Expand Down
16 changes: 14 additions & 2 deletions src/components/sections/Skills/skills.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@
display: flex;
flex-wrap: wrap;
justify-content: space-between;
width: 30%;
margin: 0 auto;

@include media("<notebook") { width: 80%; }

@include media(">=notebook") { width: 30%; }

&__mobile-none {
@include media("<notebook") { display: none; }
}
}

&__skill {
Expand All @@ -31,11 +39,15 @@
align-items: center;
justify-content: center;
order: 0;
max-width: 420px;
width: 100%;
padding: 0;
margin: 33px 0;
text-align: center;

@include media("<notebook") { margin: 0; }

@include media(">=notebook") { max-width: 420px; }

h3 {
flex: none;
flex-grow: 0;
Expand Down
97 changes: 62 additions & 35 deletions src/components/ui/Hero/hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
}

.hero-content-wrapper {
display: flex;
gap: var(--space-3);
justify-content: space-between;

@include media(">=tablet", "<notebook") {
justify-content: space-between;
width: 50%;
Expand All @@ -35,43 +31,51 @@

@include media(">=tablet") { gap: var(--space-1); }

@include media(">=notebook") { justify-content: flex-start; }
@include media(">=notebook") {
display: flex;
gap: var(--space-3);
justify-content: space-between;
}
}

.hero-content-info {
// font-family: 'Montserrat';
font-style: normal;
font-weight: 500;
text-transform: capitalize;

@include media("<notebook") { margin-bottom: 50px; }

@include media(">=notebook") { width: 43%; }

h1 {
font-size: 48px;

// font-family: 'Montserrat';
font-style: normal;
font-size: 30px;
font-weight: 500;
line-height: 59px;
text-transform: capitalize;
line-height: 36px;

@include media(">=notebook") {
font-size: 48px;
line-height: 59px;
}
}

.text-body-big {
p {
margin-top: var(--space-2);
font-size: 16px;

// font-family: 'Montserrat';
font-style: normal;
font-weight: 500;
line-height: 20px;
text-transform: capitalize;
}
}

p {
margin-top: var(--space-2);

@include media(">=tablet") { margin-top: var(--space-4); }
}

.hero-content-info__buttons {
display: flex;
justify-content: space-between;
width: 80%;
flex-direction: column;
width: 100%;

@include media(">=notebook") {
flex-direction: row;
justify-content: space-between;
width: 80%;
}
}

[data-hero-link] {
Expand All @@ -92,6 +96,8 @@

a.link-button {
margin-top: 0;

@include media("<notebook") { width: 100%; }
}
}
}
Expand Down Expand Up @@ -123,7 +129,8 @@

.hero-content-info__buttons {
display: flex;
width: 90%;

@include media(">=notebook") { width: 90%; }
}

[data-hero-link] a {
Expand All @@ -135,6 +142,9 @@

.hero-content-mosaic {
display: flex;
flex-direction: column;

@include media(">=notebook") { flex-direction: row; }

.hero-card {
min-width: 14rem;
Expand Down Expand Up @@ -171,23 +181,37 @@

&[data-card-size="large"] {
[data-card-content] {
font-size: 24px;
line-height: 29px;
font-size: 15px;
line-height: 18px;

@include media(">=notebook") {
font-size: 24px;
line-height: 29px;
}
}

.hero-card__content {
padding: 35px;
padding: 22px 40px;

@include media(">=notebook") { padding: 35px; }
}
}

&[data-card-size="medium"] {
[data-card-content] {
font-size: 24px;
line-height: 29px;
font-size: 15px;
line-height: 18px;

@include media(">=notebook") {
font-size: 24px;
line-height: 29px;
}
}

.hero-card__content {
padding: 35px;
padding: 20px 40px;

@include media(">=notebook") { padding: 35px; }
}
}

Expand All @@ -198,7 +222,7 @@
}

.hero-card__content {
padding: 16px 35px;
padding: 20px 40px;
}
}

Expand Down Expand Up @@ -247,19 +271,22 @@
}

&__main-card {
margin-right: 32px;
@include media(">=notebook") { margin-right: 32px; }
}

&__card {
display: flex;
flex-direction: column;
width: 320px;
background: rgb(255 255 255 / 70%);

/* Note: backdrop-filter has minimal browser support */
border-radius: 30px;
box-shadow: 8px 16px 17px rgb(0 0 0 / 30%);
backdrop-filter: blur(14px);

@include media("<notebook") { margin-bottom: 15px; }

@include media(">=notebook") { width: 320px; }
}

&__secondary-cards {
Expand Down
Loading