forked from M3-Academy/practice-time-landing-page
feat: create structure HTML and name class
This commit is contained in:
parent
6ed372fcc5
commit
3ae16a0992
@ -1,203 +0,0 @@
|
||||
/*= =*\
|
||||
= PAGE HEADER =
|
||||
\*= =*/
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
padding: 28px 0 29px 0;
|
||||
}
|
||||
|
||||
.header-logo {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/*= SECTION =*\
|
||||
= INFORMATION =
|
||||
\*= =*/
|
||||
|
||||
.information {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
max-width: 1215px;
|
||||
margin: 0 auto;
|
||||
padding: 5.25rem 1.625rem 5.875rem 2rem;
|
||||
}
|
||||
|
||||
.information-container {
|
||||
--hs-grid-space: 5.4375rem 7.75rem;
|
||||
}
|
||||
|
||||
.information-subtitle {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.information-title {
|
||||
margin-bottom: 19px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.information-image {
|
||||
width: 239px;
|
||||
height: 239px;
|
||||
}
|
||||
|
||||
/*= SECTION =*\
|
||||
= SERVICES =
|
||||
\*= =*/
|
||||
|
||||
.services {
|
||||
padding: 2.5rem 2rem;
|
||||
}
|
||||
|
||||
.services-container {
|
||||
--hs-flow-space: 37px;
|
||||
|
||||
max-width: 1090px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.services-card {
|
||||
padding: 2.5rem 1.625rem 1.625rem;
|
||||
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
|
||||
}
|
||||
|
||||
.banner {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/*= =*\
|
||||
= COMPOSITION =
|
||||
\*= =*/
|
||||
.sm-wrapper {
|
||||
display: flex;
|
||||
gap: var(--hs-grid-space);
|
||||
}
|
||||
|
||||
.flow *+* {
|
||||
margin-top: var(--hs-flow-space);
|
||||
}
|
||||
|
||||
.grid-col-md-3 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: var(--hs-grid-space);
|
||||
}
|
||||
|
||||
/*= =*\
|
||||
= UTILS =
|
||||
\*= =*/
|
||||
|
||||
.box-center-column {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.center {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.text-upper {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bg-black {
|
||||
background-color: var(--bg-clr-black);
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
background-color: var(--bg-clr-white);
|
||||
}
|
||||
|
||||
.bg-gray-50 {
|
||||
background-color: var(--bg-clr-gray-50);
|
||||
}
|
||||
|
||||
.bg-blue-gradient-180 {
|
||||
background-color: var(--gradient-blue-180);
|
||||
}
|
||||
|
||||
@media screen and (max-width:768px) {
|
||||
.sm-wrapper {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width:1024px) {
|
||||
.grid-col-md-3 {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (min-width: 769px) {
|
||||
.information {
|
||||
padding: 5rem 0 5.875rem 0;
|
||||
}
|
||||
|
||||
.information-title {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
.information-subtitle {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.services-container {
|
||||
--hs-flow-space: 26px;
|
||||
}
|
||||
|
||||
.services {
|
||||
padding: 4.625rem 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 414px) {
|
||||
.hero-image-desktop {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero-image-mobile {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.banner-image-desktop {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@media screen and (min-width: 415px) {
|
||||
.hero-image-desktop {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.hero-image-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.information-image {
|
||||
width: 315px;
|
||||
height: 315px;
|
||||
}
|
||||
|
||||
.banner-image-desktop {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.banner-image-mobile {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
113
index.html
113
index.html
@ -5,84 +5,69 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<link rel="stylesheet" href="./assets/css/reset.css" />
|
||||
<link rel="stylesheet" href="./assets/css/config.css" />
|
||||
<link rel="stylesheet" href="./assets/css/styles.css" />
|
||||
|
||||
<link rel="shortcut icon" href="./assets/images/logo.svg" type="image/x-icon" />
|
||||
|
||||
<title>M3 Amazing Landing page</title>
|
||||
</head>
|
||||
<body>
|
||||
<header class="page-header bg-black">
|
||||
<img class="header-logo" src="./assets/images/logo.svg" alt="" />
|
||||
<header class="l-header">
|
||||
<a class="l-header-logo" href="/">
|
||||
<img src="./assets/images/logo.svg" alt="" />
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<main class="main-content" id="main">
|
||||
<section class="hero" id="hero">
|
||||
<img class="hero-image hero-image-desktop" src="./assets/images/hero-desktop.jpg" alt="" />
|
||||
<img class="hero-image hero-image-mobile" src="./assets/images/hero-mobile.jpg" alt="" />
|
||||
</section>
|
||||
|
||||
<section class="information">
|
||||
<div class="information-container sm-wrapper center">
|
||||
<div class="information-content">
|
||||
<h3 class="information-subtitle text-upper">Lorem Ipsum</h3>
|
||||
<h2 class="information-title text-upper">Dolor Sit Amet</h2>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui
|
||||
fringilla interdum. Curabitur ut tortor sed lacus egestas vulputate vel sit amet
|
||||
velit. Nulla suscipit magna dui.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<img class="information-image" src="./assets/images/feature-1.png" alt="" />
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="services bg-gray-50">
|
||||
<div class="services-container grid-col-md-3">
|
||||
<article class="services-card flow box-center-column bg-white">
|
||||
<img src="./assets/images/shop.svg" alt="" />
|
||||
|
||||
<p class="text-center">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui
|
||||
fringilla interdum.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="services-card flow box-center-column bg-white">
|
||||
<img src="./assets/images/shopping-bag.svg" alt="" />
|
||||
|
||||
<p class="text-center">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui
|
||||
fringilla interdum.
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="services-card flow box-center-column bg-white">
|
||||
<img src="./assets/images/handle-coin.svg" alt="" />
|
||||
|
||||
<p class="text-center">
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras euismod enim non dui
|
||||
fringilla interdum.
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="banner">
|
||||
<main class="main" id="main">
|
||||
<figure class="main-banner" id="main-banner">
|
||||
<img
|
||||
class="banner-image banner-image-desktop"
|
||||
class="main-banner-image main-banner-image-desktop"
|
||||
src="./assets/images/feature-2-desktop.jpg"
|
||||
alt=""
|
||||
/>
|
||||
<img
|
||||
class="banner-image banner-image-mobile"
|
||||
class="main-banner-image main-banner-image-mobile"
|
||||
src="./assets/images/feature-2-mobile.jpg"
|
||||
alt=""
|
||||
/>
|
||||
</figure>
|
||||
|
||||
<section class="information" id="information">
|
||||
<div class="information-container">
|
||||
<article class="information-texts">
|
||||
<h2 class="information-subtitle"></h2>
|
||||
<h1 class="information-title"></h1>
|
||||
<p class="information-description"></p>
|
||||
</article>
|
||||
|
||||
<img src="./assets/images/feature-1.png" alt="shares desktop conected with arrow" />
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="services" id="services">
|
||||
<div class="services-container">
|
||||
<div class="services-card">
|
||||
<img class="services-icon" src="./assets/images/shop.svg" alt="" />
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="services-card">
|
||||
<img class="services-icon" src="./assets/images/shopping-bag.svg" alt="" />
|
||||
<p></p>
|
||||
</div>
|
||||
<div class="services-card">
|
||||
<img class="services-icon" src="./assets/images/handle-coin.svg" alt="" />
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<figure class="bottom-banner">
|
||||
<img
|
||||
class="bottom-banner-image bottom-banner-image-desktop"
|
||||
src="./assets/images/feature-2-desktop.jpg"
|
||||
alt=""
|
||||
/>
|
||||
<img
|
||||
class="bottom-banner-image bottom-banner-image-mobile"
|
||||
src="./assets/images/feature-2-mobile.jpg"
|
||||
alt=""
|
||||
/>
|
||||
</figure>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user