Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
fb44fa8
SBIT-98: se crea componente form para landingpage
darioviada-bitlogic Apr 12, 2022
b3a1d58
Merge branch 'dev' into SBIT-98
darioviada-bitlogic Apr 12, 2022
5852eba
SBIT-98: corrijo altura de form
darioviada-bitlogic Apr 12, 2022
127d771
banner list cambios
benjacanas Apr 12, 2022
370c7d9
SBIT-98: se corrigen errores de sonar
darioviada-bitlogic Apr 12, 2022
01e6420
Merge pull request #146 from bitlogic/SBIT-98
marino-martin Apr 12, 2022
487c752
SBIT-98: se agregan url para solucionar error de eventLisener
darioviada-bitlogic Apr 12, 2022
969be60
Merge pull request #148 from bitlogic/SBIT-98
marino-martin Apr 12, 2022
85affb1
Merge pull request #147 from bitlogic/SBIT-90
marino-martin Apr 12, 2022
42c3326
bannerlist en home
benjacanas Apr 12, 2022
7eca0cd
import bannerlist
benjacanas Apr 12, 2022
fa8ac18
Merge pull request #149 from bitlogic/SBIT-90
marino-martin Apr 12, 2022
7be5213
quote y dualSection agregadas
benjacanas Apr 13, 2022
4c3a03b
arreglos bannerList y expandGrid
benjacanas Apr 13, 2022
83807e8
transition landing
benjacanas Apr 13, 2022
231b281
bannerList mobile
benjacanas Apr 13, 2022
2ba7872
code smell
benjacanas Apr 13, 2022
54128f7
Merge pull request #151 from bitlogic/SBIT-90-fix
marino-martin Apr 13, 2022
49d9b41
Merge pull request #150 from bitlogic/SBIT-106
marino-martin Apr 13, 2022
b0415a8
SBIT-95: se crea componente banner
darioviada-bitlogic Apr 13, 2022
8f06570
Merge branch 'dev' into SBIT-95
darioviada-bitlogic Apr 13, 2022
be921ef
cambios en banner
darioviada-bitlogic Apr 13, 2022
279d97e
Merge pull request #152 from bitlogic/SBIT-95
marino-martin Apr 13, 2022
02f629b
SBIT-95: fix error de build en index.js
darioviada-bitlogic Apr 13, 2022
18f51bc
Merge pull request #153 from bitlogic/SBIT-95
marino-martin Apr 13, 2022
8f13d7d
fix videoBackground
julsh21 Apr 13, 2022
d68d48d
Merge branch 'dev' of https://github.com/bitlogic/bitlogic.io into SB…
julsh21 Apr 13, 2022
fb68c3b
Merge pull request #154 from bitlogic/SBIT-88
marino-martin Apr 13, 2022
2806742
fix bug en index con banner list
darioviada-bitlogic Apr 13, 2022
be9bcd3
Merge pull request #155 from bitlogic/SBIT-95
marino-martin Apr 13, 2022
a91d469
Agregar detalles del componente text
drina-bitlogic Apr 13, 2022
3ac9808
Merge pull request #156 from bitlogic/SBIT-103
marino-martin Apr 13, 2022
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
43 changes: 43 additions & 0 deletions src/components/Banner/Banner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import React from "react"
import { Link } from "gatsby"
import "./Banner.scss"

const Banner = ({ data }) => {
const title = data?.title
const variant = data?.variant
const summary = data?.summary
const image = data?.image
const button = data?.button
const id = data?.id
return (
<div className={`banner ${variant}`} id={id}>
<div className="title container">
<div className="col-12 col-md-6">
<h1>{title}</h1>
<h3>{summary}</h3>
{button &&
(button?.landing_page ? (
<Link to={`../${button.landing_page.slug}`} className="button">
{button.content}
</Link>
) : (
<a
href={button.url}
target="_blank"
rel="noreferrer"
className="button"
>
{button.content}
</a>
))}
</div>
</div>

<div className="imagen col-12 col-md-6">
<img src={image?.url} alt={title} />
</div>
</div>
)
}

export default Banner
244 changes: 244 additions & 0 deletions src/components/Banner/Banner.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
@import "../../styles/global.scss";
.banner {
color: $primary;
overflow: hidden;
display: flex;
flex-direction: column-reverse;
justify-content: space-around;
align-items: center;
&.hero {
height: auto;
justify-content: end;
.button {
@include primaryBtn;
margin-top: 20px;
margin-bottom: 20px;
display: inline-block;
}
.imagen {
padding: 2rem;
display: flex;
justify-content: center;
img {
width: 100%;
max-width: 540px;
}
}
.title {
h1 {
text-transform: uppercase;
}
}
}
&.top {
height: auto;
justify-content: end;
.button {
@include primaryBtn;
margin-top: 20px;
margin-bottom: 20px;
display: inline-block;
}
.imagen {
display: flex;
justify-content: flex-end;
img {
width: 100%;
max-width: 450px;
}
}
.title {
padding-top: 2rem;
h1 {
text-transform: uppercase;
text-align: center;
}
h3 {
display: none;
}
}
}
&.diagonal {
height: auto;
justify-content: end;
background-color: #f2f0f7;
.button {
margin-top: 20px;
margin-bottom: 20px;
display: inline-block;
}
.imagen {
display: flex;
justify-content: flex-end;
img {
width: 100%;
}
}
.title {
padding-top: 2rem;
h1 {
text-transform: uppercase;
color: #607ee7;
margin-bottom: 0;
}
h3 {
display: none;
}
}
}

&.diagonalReverse {
height: auto;
justify-content: end;
background-color: #f2f0f7;
.button {
margin-top: 20px;
margin-bottom: 20px;
display: inline-block;
}
.imagen {
display: flex;
justify-content: flex-end;
img {
width: 100%;
}
}
.title {
padding-top: 2rem;
h1 {
text-transform: uppercase;
color: #607ee7;
margin-bottom: 0;
}
h3 {
display: none;
}
}
}

.gatsby-image-wrapper {
display: block;
}

@media screen and (min-width: $breakpoint-md) {
flex-direction: row;
align-items: flex-start;
&.hero {
height: 80vh;
position: relative;
.imagen {
max-height: 80vh;
overflow: hidden;
padding: 0;
justify-content: flex-end;
}

.title {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
h1 {
margin-bottom: 1rem;
padding-right: 3rem;
}
h3 {
font-weight: 400;
padding-right: 3rem;
}
}
}
&.top {
height: 400px;
position: relative;
align-items: center;
.imagen {
max-height: 500px;
overflow: hidden;
padding: 0;
justify-content: flex-end;
img {
width: 100%;
max-width: 600px;
}
}

.title {
position: absolute;
padding-top: 0;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
h1 {
margin-bottom: 1rem;
padding-right: 3rem;
text-align: left;
}
h3 {
font-weight: 400;
padding-right: 3rem;
}
}
}
&.diagonal {
height: 400px;
position: relative;
align-items: center;
.imagen {
height: 500px;
overflow: hidden;
padding: 0;
justify-content: flex-end;
img {
width: 100%;
}
}

.title {
position: absolute;
padding-top: 0;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
h1 {
margin-bottom: 1rem;
padding-right: 3rem;
}
h3 {
font-weight: 400;
padding-right: 3rem;
}
}
}
&.diagonalReverse {
height: 400px;
position: relative;
align-items: center;
.imagen {
height: 500px;
overflow: hidden;
padding: 0;
justify-content: flex-end;
img {
width: 100%;
}
}

.title {
position: absolute;
padding-top: 0;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
h1 {
margin-bottom: 1rem;
padding-right: 3rem;
}
h3 {
font-weight: 400;
padding-right: 3rem;
}
}
}
}
}
53 changes: 49 additions & 4 deletions src/components/BannerList/Banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,31 @@
.bannerList {
color: $primary;
.card_item {
p {
text-align: justify;
margin: 0 !important;
h4 {
margin: 0;
}
a {
color: inherit;
&:hover {
color: $secondary;
}
}
img {
margin: 0 10px 0 auto;
width: 48px;
}
}
button {
margin-top: 10px;
@include primaryBtn;
align-self: baseline;
a {
color: inherit;
}
}
&__title {
display: flex;
flex-direction: column;
font-weight: 700;
text-align: left;
}
Expand All @@ -21,8 +37,37 @@
.bannerList {
.card_item {
img {
width: 70px;
width: 80px;
}
}
&__buttonMobile{
display: none;
}
}
}

@media screen and (max-width: $breakpoint-md) {
.bannerList {
&__buttonMobile{
margin-left: 1.5em;
}
&__title {
button {
display: none;
}
}
}
}

@media screen and (min-width: $breakpoint-md) {
.bannerList {
.card_item {
img {
width: 80px;
}
}
&__buttonMobile{
display: none;
}
}
}
35 changes: 0 additions & 35 deletions src/components/BannerList/BannerLis.js

This file was deleted.

Loading