feat: layout scss 2500+

This commit is contained in:
Gabriel Ferraz Nogueira 2023-01-20 08:52:46 -03:00
parent 35e5b974c3
commit 6565ffa6f1
17 changed files with 288 additions and 27 deletions

View File

@ -30,7 +30,11 @@ body {
@media (min-width: 1025px) {
width: 100%;
padding: 20px 0px;
margin-bottom: 84px;
margin-bottom: 61px;
}
@media (min-width: 2500px) {
margin-bottom: 74px;
}
@media (max-width: 1024px) {
@ -50,6 +54,11 @@ body {
text-align: center;
margin-top: 20px;
}
@media (min-width: 2500px) {
font-size: 48px;
line-height: 56px;
}
}
.MainText {
@ -61,6 +70,11 @@ body {
line-height: 15px;
color: $color-gray-500;
@media (min-width: 2500px) {
font-size: 26px;
line-height: 30px;
}
p {
margin: 20px 0;
}

View File

@ -9,8 +9,21 @@
padding: 30px 100px;
}
@media (min-width: 2500px) {
.HouseIcon {
img {
width: 31px;
}
}
}
.Arrow {
margin: 0 9.7px;
@media (min-width: 2500px) {
width: 8.9px;
height: 15.62px;
}
}
.span_top {
@ -21,6 +34,11 @@
line-height: 14px;
color: $color-gray;
text-transform: uppercase;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
}
@ -42,5 +60,11 @@
@media (max-width: 1024px) {
margin: 81px 0 50px;
}
@media (min-width: 2500px) {
font-weight: 400;
font-size: 48px;
line-height: 56px;
}
}
}

View File

@ -10,6 +10,8 @@ import Pagseguro from "../assets/imgs/SVGs/credit-cards/Pagseguro.svg";
import Boleto from "../assets/imgs/SVGs/credit-cards/Boleto.svg";
import vtex from "../assets/imgs/SVGs/credit-cards/vtex-pci-200.svg";
import m3Logobig from "../assets/imgs/Svg-2500+/m3Logo.svg";
import vtexLogobig from "../assets/imgs/Svg-2500+/vtexLogo.svg";
export const BottomFooter = () => {
return (
@ -35,10 +37,18 @@ export const BottomFooter = () => {
<div className="Authors">
<span className="Powered_by"> Powered by </span>
<img className="vtex_logo" src={Vtex} alt="Vtex-logo" />
<img
className="vtex_logo"
src={window.innerWidth >= 2500 ? vtexLogobig : Vtex}
alt="Vtex-logo"
/>
<span className="Developed_by"> Developed by </span>
<img className="m3_logo" src={M3} alt="M3-logo" />
<img
className="m3_logo"
src={window.innerWidth >= 2500 ? m3Logobig : M3}
alt="M3-logo"
/>
</div>
</div>
</>

View File

@ -19,6 +19,10 @@
flex-direction: column;
flex-wrap: wrap;
@media (min-width: 2500px) {
min-width: 922px;
}
.News_title {
font-family: $fontFamily;
font-style: normal;
@ -32,6 +36,11 @@
@media (min-width: 1025px) {
margin: 0 0 8px 0;
}
@media (min-width: 2500px) {
font-size: 36px;
line-height: 42px;
}
}
.Submite_wrapper {
@ -59,13 +68,19 @@
@media (min-width: 1025px) {
margin-right: 8px;
width: 24.376%;
width: 85%;
min-width: 306px;
}
&::placeholder {
color: $color-gray;
}
@media (min-width: 2500px) {
min-width: 668px;
font-size: 28px;
line-height: 33px;
}
}
.Button_News {
padding: 14px 20px;
@ -81,9 +96,15 @@
color: $color-white;
@media (min-width: 1025px) {
width: 9.844%;
width: 15%;
min-width: 126px;
}
@media (min-width: 2500px) {
min-width: 246px;
font-size: 24px;
line-height: 28px;
}
}
}
}
@ -123,6 +144,11 @@
font-size: 14px;
line-height: 16px;
color: $color-gray-700;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
.links_footer {
@ -135,6 +161,11 @@
text-transform: capitalize;
color: $color-gray-700;
margin-bottom: 12px;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
.last {
@ -216,6 +247,12 @@
height: 35px;
padding-bottom: 12px;
}
@media (min-width: 2500px) {
img {
width: 70px;
}
}
}
.Site {
font-family: $fontFamily;
@ -224,6 +261,11 @@
font-size: 14px;
line-height: 16px;
color: $color-gray-700;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
}
@ -257,6 +299,13 @@
@media (min-width: 1025px) {
align-self: center;
}
@media (min-width: 2500px) {
width: 467px;
height: 47px;
font-size: 20px;
line-height: 23px;
}
}
.Payment_methods {
@ -272,6 +321,11 @@
.carts_icons {
width: 36px;
height: 20px;
@media (min-width: 2500px) {
width: 70px;
height: 39.27px;
}
}
.div_icons::after {
@ -280,11 +334,20 @@
transform: rotate(90deg);
width: 24px;
height: 0px;
@media (min-width: 2500px) {
width: 24px;
}
}
.vtex_icon {
width: 54.61px;
height: 34px;
@media (min-width: 2500px) {
width: 106px;
height: 66px;
}
}
@media (max-width: 425px) {
@ -313,7 +376,7 @@
.Powered_by {
display: flex;
align-items: center;
width: 53px;
width: fit-content;
font-family: $fontFamily;
font-style: normal;
font-weight: 400;
@ -321,12 +384,17 @@
line-height: 12px;
text-transform: capitalize;
color: $color-white;
@media (min-width: 2500px) {
font-size: 20px;
line-height: 23px;
}
}
.Developed_by {
display: flex;
align-items: center;
width: 61px;
width: fit-content;
font-family: $fontFamily;
font-style: normal;
font-weight: 400;
@ -334,6 +402,11 @@
line-height: 12px;
text-transform: capitalize;
color: $color-white;
@media (min-width: 2500px) {
font-size: 20px;
line-height: 23px;
}
}
.vtex_logo {
@ -341,6 +414,11 @@
align-self: center;
width: 44.92px;
height: 16px;
@media (min-width: 2500px) {
width: 84.22px;
height: 30px;
}
}
.m3_logo {
@ -348,6 +426,11 @@
align-self: center;
width: 28.66px;
height: 15.65px;
@media (min-width: 2500px) {
width: 54.95px;
height: 30px;
}
}
}
}

View File

@ -1,3 +1,4 @@
import { useState } from "react";
import { Formik, Form, Field, ErrorMessage } from "formik";
import FormSchema from "./schema/FormSchema";
@ -21,11 +22,12 @@ const initialValues = {
checkbox: false,
};
const formSubmit = (values: IFormikValues) => {
console.log(values);
};
export const ContactForm = () => {
const [isSubmited, setIsSubmited] = useState(false);
const formSubmit = (values: IFormikValues) => {
console.log(values);
setIsSubmited(true);
};
return (
<Formik
onSubmit={formSubmit}
@ -64,6 +66,7 @@ export const ContactForm = () => {
id="cpf"
name="cpf"
placeholder="000.000.000-00"
// maxLength="15"
className={errors.cpf && touched.cpf && "invalid"}
/>
@ -110,7 +113,9 @@ export const ContactForm = () => {
</div>
<button type="submit">CADASTRE-SE</button>
<span className="success"></span>
{isSubmited && (
<span className="subject">*Formulário enviado com sucesso!</span>
)}
</Form>
)}
</Formik>

View File

@ -12,6 +12,12 @@
display: flex;
align-items: center;
a {
@media (min-width: 1025px) {
width: 10.61vw;
}
}
.M3Logo {
width: 100%;
}
@ -29,6 +35,11 @@
width: 100%;
height: 16px;
padding: 8px;
font-family: $fontFamily;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
border: 2px solid $color-white-100;
border-radius: 5px;
color: $color-black;
@ -40,6 +51,8 @@
@media (min-width: 2500px) {
height: 33px;
padding: 12px;
font-size: 28px;
line-height: 33px;
}
}
.InconWrapper {
@ -52,10 +65,17 @@
background-image: url("../assets/imgs/SVGs/search-icon-desktop.svg");
cursor: pointer;
pointer-events: all;
@media (min-width: 2500px) {
background-image: url("../assets/imgs/Svg-2500+/VectorBig.svg");
width: 35px;
height: 35px;
top: 11px;
right: 16px;
}
}
}
// .Search_Header_wrapper::after {
// }
.Headerlinks {
display: flex;
gap: 55px;
@ -90,18 +110,24 @@
.ContentHeader_wrapper {
padding: 14px 100px;
background: $color-black;
font-family: $fontFamily;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
button {
margin-right: 53px;
background: $color-black;
border: none;
font-family: $fontFamily;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: $color-white;
cursor: pointer;
@media (min-width: 2500px) {
font-weight: 500;
font-size: 28px;
line-height: 33px;
}
}
}

View File

@ -4,6 +4,9 @@ import { NavLink } from "react-router-dom";
import LogoM3 from "../assets/imgs/SVGs/M3Logo_desktop.svg";
import CartIcon from "../assets/imgs/SVGs/CartIcon_desktop.svg";
import CartBig from "../assets/imgs/Svg-2500+/cart-big.svg";
import LogoM3Big from "../assets/imgs/Svg-2500+/LogoM3AcademyBig.svg";
import { ContentMenuHeader } from "./ContentMenuHeader";
import "./HeaderDesktop.modules.scss";
@ -14,7 +17,11 @@ export const HeaderDesktop = () => {
<section className="HeaderDesktop">
<div className="m3LogoWrapper">
<NavLink to={"/"}>
<img src={LogoM3} alt="LogoM3" className="M3Logo" />
<img
src={window.innerWidth >= 2500 ? LogoM3Big : LogoM3}
alt="LogoM3"
className="M3Logo"
/>
</NavLink>
</div>
<div className="Search_Header_wrapper">
@ -31,7 +38,11 @@ export const HeaderDesktop = () => {
</NavLink>
<div className="CartIcon_Wrapper">
<NavLink to={"/"}>
<img src={CartIcon} alt="Cart-Icon" className="CartIcon" />
<img
src={window.innerWidth >= 2500 ? CartBig : CartIcon}
alt="Cart-Icon"
className="CartIcon"
/>
</NavLink>
</div>
</div>

View File

@ -9,6 +9,10 @@
margin-right: 30px;
height: 337px;
border-right: 1px solid $color-black;
@media (min-width: 2500px) {
height: 480px;
}
}
ul {
@ -43,6 +47,12 @@
line-height: 19px;
color: $color-gray-500;
text-decoration: none;
@media (min-width: 2500px) {
font-weight: 700;
font-size: 32px;
line-height: 38px;
}
}
.last {

View File

@ -14,3 +14,5 @@ $color-gray-700: #303030;
$color-gray-800: #292929;
$color-red: #ff0000;
$color-green: #008000;

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,3 @@
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M25.7949 22.6886C27.5246 20.3265 28.5592 17.4252 28.5592 14.2799C28.5592 6.40637 22.1531 0.000244141 14.2796 0.000244141C6.40606 0.000244141 0 6.40637 0 14.2799C0 22.1534 6.40613 28.5596 14.2797 28.5596C17.4249 28.5596 20.3266 27.5248 22.6886 25.7951L32.0435 35.15L35.15 32.0436C35.15 32.0435 25.7949 22.6886 25.7949 22.6886ZM14.2797 24.1658C8.82824 24.1658 4.39377 19.7313 4.39377 14.2799C4.39377 8.82848 8.82824 4.39401 14.2797 4.39401C19.7311 4.39401 24.1655 8.82848 24.1655 14.2799C24.1655 19.7313 19.731 24.1658 14.2797 24.1658Z" fill="#292929"/>
</svg>

After

Width:  |  Height:  |  Size: 664 B

View File

@ -0,0 +1,12 @@
<svg width="55" height="55" viewBox="0 0 55 55" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_3751_539)">
<path d="M54.3344 7.95273C54.0351 7.57862 53.5819 7.36086 53.1027 7.36086H11.1231L9.9492 2.27412C9.78398 1.55848 9.14672 1.05151 8.41228 1.05151H1.57728C0.706248 1.05151 0 1.75776 0 2.6289C0 3.50004 0.706248 4.20619 1.57728 4.20619H7.15753L15.1259 38.7358C15.291 39.4515 15.9283 39.9585 16.6628 39.9585H48.2656C49.1367 39.9585 49.8428 39.2522 49.8428 38.3812C49.8428 37.51 49.1366 36.8039 48.2656 36.8039H17.9176L16.7044 31.5462H48.3709C49.1086 31.5462 49.7478 31.0348 49.9097 30.3151L54.6416 9.28438C54.7467 8.81682 54.6338 8.32694 54.3344 7.95273Z" fill="white"/>
<path d="M23.1338 42.0615C19.9449 42.0615 17.3503 44.6559 17.3503 47.845C17.3503 51.0341 19.9448 53.6285 23.1338 53.6285C26.3228 53.6285 28.9173 51.0341 28.9173 47.845C28.9173 44.6559 26.3229 42.0615 23.1338 42.0615Z" fill="white"/>
<path d="M42.0614 42.0615C38.8725 42.0615 36.278 44.6559 36.278 47.845C36.278 51.0341 38.8724 53.6285 42.0614 53.6285C45.2504 53.6285 47.8449 51.0341 47.8449 47.845C47.8449 44.6559 45.2505 42.0615 42.0614 42.0615Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_3751_539">
<rect width="54.68" height="54.68" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,4 @@
<svg width="55" height="31" viewBox="0 0 55 31" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M32.0509 10.5038C31.193 9.36605 30.1154 8.41986 28.8848 7.72371C27.6543 7.02756 26.2968 6.59626 24.8963 6.45646C23.4959 6.31666 22.0822 6.47133 20.7426 6.91091C19.4031 7.35049 18.1662 8.06564 17.1083 9.01217L16.1944 8.30363C9.91571 3.79137 1.12377 7.62306 0.301235 15.3517C0.0510173 19.0751 -0.0130404 22.8091 0.109311 26.5391C0.0891261 27.0178 0.1656 27.4956 0.333985 27.9428C0.502371 28.3901 0.759074 28.7972 1.08816 29.1391C1.41725 29.4809 1.8117 29.75 2.24702 29.9299C2.68235 30.1097 3.14926 30.1963 3.61878 30.1844C4.07828 30.1823 4.53264 30.0856 4.95456 29.8999C5.37647 29.7142 5.75722 29.4434 6.07393 29.1038C6.39065 28.7641 6.63678 28.3627 6.79754 27.9236C6.9583 27.4845 7.03038 27.0167 7.00943 26.5485C7.00943 23.8635 7.00943 21.1785 7.00943 18.4842C7.00204 17.6854 7.05705 16.8874 7.17394 16.0975C7.32135 15.2891 7.76335 14.5677 8.41104 14.0782C9.05873 13.5887 9.86408 13.3675 10.6651 13.4592C11.4482 13.5194 12.1828 13.8689 12.7313 14.4421C13.2798 15.0154 13.6045 15.773 13.6445 16.573C13.6902 17.5612 13.6445 18.5494 13.6445 19.5377C13.6445 21.943 13.6445 24.3483 13.6445 26.7536C13.6351 27.4512 13.8385 28.1346 14.2266 28.7091C14.6146 29.2837 15.1681 29.721 15.8105 29.9606C18.141 30.9488 20.5172 29.2148 20.5629 26.4832C20.5629 23.3041 20.5629 20.125 20.6543 16.9459C20.6851 16.1774 20.9153 15.431 21.3215 14.783C21.7082 14.2116 22.2686 13.786 22.9162 13.572C23.5637 13.358 24.2623 13.3675 24.904 13.599C25.6279 13.806 26.2608 14.2589 26.6979 14.8828C27.135 15.5067 27.3501 16.2642 27.3077 17.0298C27.3077 20.2462 27.3077 23.4626 27.3077 26.679C27.3077 27.1405 27.3968 27.5976 27.5699 28.024C27.7431 28.4504 27.9969 28.8379 28.3168 29.1643C28.6368 29.4906 29.0166 29.7495 29.4346 29.9262C29.8526 30.1028 30.3007 30.1937 30.7532 30.1937C31.2056 30.1937 31.6537 30.1028 32.0717 29.9262C32.4897 29.7495 32.8695 29.4906 33.1895 29.1643C33.5094 28.8379 33.7632 28.4504 33.9364 28.024C34.1095 27.5976 34.1986 27.1405 34.1986 26.679C34.1986 23.388 34.1986 20.153 34.1986 16.8154C34.2049 14.524 33.4476 12.2985 32.0509 10.5038Z" fill="white"/>
<path d="M49.315 12.3683L48.2275 11.9115C49.3059 11.0538 50.3295 10.3173 51.2434 9.47821C52.0554 8.82607 52.7563 8.04174 53.318 7.15682C54.9631 4.02434 52.6417 0.379101 48.9586 0.295195C45.5588 0.248581 42.1682 0.248581 38.7684 0.248581C38.3519 0.219225 37.9341 0.280017 37.5423 0.426971C37.1505 0.573925 36.7936 0.803718 36.495 1.10128C36.1964 1.39883 35.9629 1.75743 35.8097 2.15354C35.6565 2.54965 35.5872 2.97433 35.6062 3.39971C35.5655 3.83297 35.6176 4.27008 35.759 4.68075C35.9004 5.09141 36.1276 5.4658 36.4249 5.77797C36.7223 6.09014 37.0826 6.33263 37.4809 6.48862C37.8793 6.64461 38.3061 6.71037 38.7318 6.68135C40.3952 6.68135 42.0585 6.68135 43.7218 6.68135C44.0051 6.77458 44.2976 6.77458 44.846 6.77458C42.5886 8.63915 40.5048 10.4105 38.4485 12.1632C37.1233 13.2819 36.7212 14.5032 37.1873 15.8923C37.4349 16.578 37.8962 17.1618 38.5004 17.5542C39.1047 17.9466 39.8185 18.1259 40.5322 18.0646C42.2961 18.0646 44.0691 18.0646 45.833 18.0646C46.2286 17.9899 46.6354 18.0051 47.0246 18.1088C47.4138 18.2125 47.7759 18.4024 48.0851 18.6648C48.3944 18.9273 48.6432 19.256 48.814 19.6275C48.9847 19.9991 49.0732 20.4044 49.0732 20.8148C49.0732 21.2252 48.9847 21.6305 48.814 22.0021C48.6432 22.3736 48.3944 22.7023 48.0851 22.9648C47.7759 23.2272 47.4138 23.4171 47.0246 23.5208C46.6354 23.6245 46.2286 23.6397 45.833 23.565C43.5482 23.565 41.2634 23.565 38.9786 23.565C38.1776 23.6092 37.4238 23.9649 36.8721 24.5588C36.3205 25.1528 36.013 25.9399 36.013 26.7581C36.013 27.5763 36.3205 28.3634 36.8721 28.9574C37.4238 29.5514 38.1776 29.907 38.9786 29.9512C41.3639 29.9512 43.7584 29.9512 46.1437 29.9512C48.2391 29.897 50.2525 29.1097 51.8465 27.7213C53.4406 26.3328 54.5183 24.4277 54.8991 22.3251C55.2027 20.2666 54.8165 18.1638 53.8032 16.3569C52.7898 14.55 51.2085 13.1447 49.315 12.3683Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,7 @@
<svg width="86" height="31" viewBox="0 0 86 31" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M61.688 11.474H58.6746V21.7206C58.6746 21.9124 58.5087 22.0768 58.3152 22.0768H55.9929C55.7994 22.0768 55.6335 21.9124 55.6335 21.7206V11.474H52.5924C52.5095 11.474 52.3989 11.4466 52.3436 11.3918C52.2883 11.337 52.233 11.2548 52.233 11.1453V9.33703C52.233 9.25484 52.2607 9.14525 52.3436 9.09046C52.3989 9.03566 52.5095 8.98087 52.5924 9.00826H61.688C61.8815 9.00826 62.0474 9.14525 62.0474 9.33703V11.1453C62.0474 11.337 61.8815 11.474 61.688 11.474Z" fill="white"/>
<path d="M71.3915 21.9948C70.2027 22.1592 68.9863 22.2414 67.7975 22.214C65.5029 22.214 63.4847 21.6387 63.4847 18.4332V12.5975C63.4847 9.39207 65.5306 8.84412 67.8252 8.84412C69.014 8.81672 70.2027 8.89891 71.3915 9.0633C71.6403 9.0907 71.7509 9.20028 71.7509 9.41946V11.0633C71.7509 11.2551 71.585 11.4195 71.3915 11.4195H67.6593C66.8299 11.4195 66.5258 11.6934 66.5258 12.6249V14.214H71.2533C71.4468 14.214 71.6127 14.3784 71.6127 14.5702V16.2414C71.6127 16.4332 71.4468 16.5976 71.2533 16.5976H66.5258V18.4606C66.5258 19.3647 66.8299 19.666 67.6593 19.666H71.3915C71.585 19.666 71.7509 19.8304 71.7509 20.0222V21.666C71.7509 21.8578 71.6403 21.9674 71.3915 21.9948Z" fill="white"/>
<path d="M84.7725 22.0764H81.9526C81.759 22.1038 81.5655 21.9942 81.4826 21.8025L79.0221 17.9668L76.8104 21.7203C76.6998 21.9394 76.5616 22.0764 76.368 22.0764H73.7417C73.6864 22.0764 73.6034 22.0764 73.5481 22.0216C73.4929 21.9668 73.4652 21.9121 73.4652 21.8299C73.4652 21.7751 73.4929 21.7477 73.4929 21.7203L77.3357 15.3641L73.4376 9.33672C73.4099 9.30932 73.4099 9.25452 73.4099 9.22713C73.4099 9.09014 73.5481 8.98055 73.6864 9.00795H76.5892C76.7827 9.00795 76.921 9.17233 77.0316 9.33672L79.2985 12.8984L81.5102 9.33672C81.5932 9.14494 81.759 9.03535 81.9526 9.00795H84.579C84.7172 9.00795 84.8554 9.09014 84.8554 9.22713C84.8554 9.25452 84.8278 9.30932 84.8278 9.33672L80.9573 15.4189L84.9936 21.7203C85.0213 21.7751 85.0489 21.8299 85.0489 21.8847C85.0213 21.9942 84.9107 22.0764 84.7725 22.0764Z" fill="white"/>
<path d="M48.0031 9.03577C47.8649 9.03577 47.7543 9.11796 47.7266 9.25494L45.1555 18.707C45.1279 18.8988 45.0726 18.981 44.9067 18.981C44.7409 18.981 44.6856 18.8988 44.6579 18.707L42.0868 9.25494C42.0592 9.11796 41.9486 9.03577 41.8104 9.03577H39.2669C39.184 9.03577 39.101 9.06316 39.0458 9.14536C38.9905 9.20015 38.9628 9.28234 38.9905 9.36453C38.9905 9.36453 42.1421 20.2138 42.1698 20.3234C42.5845 21.6111 43.6074 22.2412 44.9067 22.2412C46.1508 22.296 47.2843 21.5015 47.6437 20.3234C47.699 20.1864 50.7677 9.36453 50.7677 9.36453C50.7954 9.28234 50.7677 9.20015 50.7124 9.14536C50.6571 9.09056 50.5742 9.03577 50.4912 9.03577H48.0031Z" fill="white"/>
<path d="M33.6271 0.241211H7.16977C6.20215 0.241211 5.31748 0.761759 4.84749 1.55628C4.34986 2.3782 4.32222 3.3919 4.76455 4.21381L7.41858 9.20012H2.60816C1.99994 9.20012 1.41937 9.50148 1.08762 10.022C0.755866 10.5426 0.755866 11.2001 1.03233 11.7481L9.54733 27.6933C9.85144 28.2686 10.4597 28.6248 11.0955 28.6248C11.7314 28.6248 12.3396 28.2686 12.6437 27.6933L14.966 23.3645L17.8688 28.8166C18.3388 29.6933 19.2788 30.2412 20.274 30.2412C21.2693 30.2412 22.2093 29.6933 22.6792 28.8166L35.9494 4.07683C36.3917 3.25491 36.3641 2.26861 35.8664 1.50148C35.4241 0.706964 34.5394 0.241211 33.6271 0.241211ZM21.7946 10.6796L15.9889 21.4741C15.7954 21.8576 15.4083 22.0768 14.966 22.0768C14.5236 22.0768 14.1366 21.8303 13.9431 21.4741L8.22032 10.7892C8.05444 10.4604 8.05444 10.0768 8.24796 9.74806C8.44149 9.41929 8.80089 9.22751 9.16029 9.22751H20.8822C21.2416 9.22751 21.5734 9.3919 21.7393 9.69327C21.9604 9.99464 21.9604 10.3782 21.7946 10.6796Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -1,8 +1,8 @@
export const phoneNumber = /\([1-9]{2}\) [1-9]{2}\d{3}-\d{4}/;
export const phoneNumber = /^\(?[1-9]{2}\)??[1-9]{2}\d{3}-?\d{4}$/;
export const cpfNumber = /\d{3}.\d{3}.\d{3}-\d{2}/;
export const cpfNumber = /^\d{3}.?\d{3}.?\d{3}-?\d{2}$/;
export const insta =
/(?:^|[^\w])(?:@)([\w-](?:(?:[\w-]|(?:\.(?!\.))){0,28}(?:[\w-]))?)/;
/(?:^|[^\w])(?:@)([\w-](?:(?:[\w-]|(?:.(?!.))){0,28}(?:[\w-]))?)/;
export const bornData = /\d{2}.\d{2}.\d{4}/;
export const bornData = /^\d{2}.?\d{2}.?\d{4}$/;

View File

@ -15,6 +15,11 @@ form {
padding: 0px;
}
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
label {
margin: 12px 0;
}
@ -33,6 +38,11 @@ form {
&::placeholder {
color: $color-gray-300;
}
@media (min-width: 2500px) {
font-size: 28px;
line-height: 33px;
}
}
.error {
display: flex;
@ -43,15 +53,41 @@ form {
font-size: 12px;
line-height: 14px;
color: $color-red;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
button {
padding: 17px;
background: $color-black;
border-radius: 25px;
font-weight: 400;
color: $color-white;
@media (min-width: 2500px) {
font-size: 32px;
line-height: 38px;
}
}
div {
.subject {
font-family: $fontFamily;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
color: $color-green;
@media (min-width: 2500px) {
font-size: 24px;
line-height: 28px;
}
}
.checkbox_wrapper {
display: flex;
justify-content: center;
align-items: center;
@ -67,6 +103,11 @@ form {
border: 1px solid $color-black;
border-radius: 3px;
margin: 0 4px;
@media (min-width: 2500px) {
width: 36.4px;
height: 35.15px;
}
}
}

View File

@ -1,4 +1,4 @@
import { ContactForm } from "../components/ContactForm";
import { ContactForm } from "../components/Form";
import "./Contact.modules.scss";
export const Form = () => {