forked from M3-Academy/practice-time-landing-page
Adiciona o top infocard desktop e mobile
This commit is contained in:
parent
431c81f93c
commit
f1c1dee435
BIN
assets/images/top-infocard-image.png
Normal file
BIN
assets/images/top-infocard-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
@ -4,6 +4,11 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
color: #000000;
|
||||
font-family: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@ -19,6 +24,70 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.top-infocard {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 80px 0 96px;
|
||||
}
|
||||
|
||||
.top-infocard-text {
|
||||
max-width: 766px;
|
||||
margin-right: 124px;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle {
|
||||
text-transform: uppercase;
|
||||
font-weight: 400;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.top-infocard-title {
|
||||
margin-bottom: 24px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 500;
|
||||
font-size: 48px;
|
||||
}
|
||||
|
||||
.top-infocard-description {
|
||||
line-height: 24px;
|
||||
font-size: 16px;
|
||||
|
||||
}
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
.top-infocard {
|
||||
flex-direction: column;
|
||||
padding: 84px 26px 158px;
|
||||
}
|
||||
|
||||
.top-infocard-text {
|
||||
margin-right: 0;
|
||||
margin: 0 0 68px;
|
||||
}
|
||||
|
||||
.top-infocard-subtitle {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.top-infocard-title {
|
||||
margin-bottom: 20px;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.top-infocard-image {
|
||||
width: 100%;
|
||||
max-width: 240px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 993px ) and (max-width: 1280px) {
|
||||
.top-infocard-text {
|
||||
max-width: 520px;
|
||||
margin-right: 70px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 414px) {
|
||||
.main-banner-desktop {
|
||||
display: none;
|
||||
@ -30,3 +99,5 @@
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
15
index.html
15
index.html
@ -7,6 +7,10 @@
|
||||
|
||||
<title>M3 Landing Page</title>
|
||||
<link rel="stylesheet" href="./assets/styles/main.css">
|
||||
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<header class="page-header">
|
||||
@ -14,11 +18,22 @@
|
||||
<img class="header-logo" src="./assets/images/m3-logo.png" alt="Logo M3">
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section>
|
||||
<img class="main-banner main-banner-desktop" src="./assets/images/main-banner-desktop.png" alt="Banner principal Desktop">
|
||||
<img class="main-banner main-banner-mobile" src="./assets/images/main-banner-mobile.png" alt="Banner principal Desktop">
|
||||
</section>
|
||||
|
||||
<section class="top-infocard">
|
||||
<div class="top-infocard-text">
|
||||
<h2 class="top-infocard-subtitle">Lorem ipsum</h2>
|
||||
<h1 class="top-infocard-title">dolor sit amet</h1>
|
||||
<p class="top-infocard-description">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="top-infocard-image" src="./assets/images/top-infocard-image.png" alt="Banner do Infocard do topo">
|
||||
</section>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user