diff --git a/src/hbs/data.json b/src/hbs/data.json index a10762c..0f0bd52 100644 --- a/src/hbs/data.json +++ b/src/hbs/data.json @@ -1,17 +1,5 @@ { "rootUrl": "/", - "heroSection": { - "events": [ - { - "text": "DEC 17 - 3359 26th Street", - "city": "SAN FRANSISCO CA" - }, - { - "text": "DeC 21 - 111 RICHMOND ST WEST", - "city": "TORONTO ON" - } - ] - }, "header": { "links": [ { diff --git a/src/hbs/index.hbs b/src/hbs/index.hbs index 570689e..b520e6b 100644 --- a/src/hbs/index.hbs +++ b/src/hbs/index.hbs @@ -10,15 +10,29 @@ introduction: button: label: 'Signup for newsletter' - icon: 'images/telegram-logo.svg' nextSectionLink: 'Learn more about the project' + +hero: + header: + upper: '#Art' + lower: 'Project.' + eventsLabel: 'UPCOMING EVENTS' + events: + - text: 'DEC 17 - 3359 26th Street' + city: 'SAN FRANSISCO CA' + - text: 'DeC 21 - 111 RICHMOND ST WEST' + city: 'TORONTO ON' + button: + label: 'Telegram Community' + icon: 'images/telegram-logo.svg' + nextSectionLink: 'Scroll Down' --- {{#extend "base"}} {{#content "main"}} - {{> components/hero}} + {{> components/hero hero=frontMatter.hero}} {{> components/introduction introduction=frontMatter.introduction}} diff --git a/src/hbs/partials/components/hero.hbs b/src/hbs/partials/components/hero.hbs index 60a5b89..a85db97 100644 --- a/src/hbs/partials/components/hero.hbs +++ b/src/hbs/partials/components/hero.hbs @@ -1,17 +1,16 @@
- -

-
#ART
-
PROJECT.
+

+
{{ hero.header.upper }}
+
{{ hero.header.lower }}

01 - 06
-

UPCOMING EVENTS

- {{#each data.heroSection.events as |event|}} +

{{ hero.eventsLabel }}

+ {{#each hero.events as |event|}}

{{ event.text }}, {{ event.city }} @@ -20,15 +19,17 @@

{{> components/button - label="Telegram Community" + label=hero.button.label outlineColor="#FFF" class="hero__button" - icon=(svg 'images/telegram-logo.svg' width="24px" height="24px") + icon=(svg hero.button.icon width="24px" height="24px") }} + + + {{svg 'images/arrow-down.svg' class="hero__scroll__icon"}} +
{{ hero.nextSectionLink }}
+
+
- - - -
diff --git a/src/images/arrow-down.svg b/src/images/arrow-down.svg new file mode 100644 index 0000000..b3e5df9 --- /dev/null +++ b/src/images/arrow-down.svg @@ -0,0 +1,7 @@ + + + diff --git a/src/styles/components/_hero.scss b/src/styles/components/_hero.scss index 6e71654..4a526b6 100644 --- a/src/styles/components/_hero.scss +++ b/src/styles/components/_hero.scss @@ -11,24 +11,27 @@ body { background-color: $color-navy; &__canvas { + position: relative; + z-index: 1; width: 100%; height: 65vh; background-color: $color-orange; } - &__title { + &__header { @include heading; - + position: absolute; top: 45%; left: 50%; + z-index: 1; font-family: $title-font-family; font-size: 36px; transform: translate(-50%, -50%); &--lower { margin-top: -10px; - margin-left: 28px; + padding-left: 50px; } } @@ -36,18 +39,20 @@ body { position: absolute; top: 25%; right: -20px; + z-index: 1; font-size: 24px; transform: rotate(-90deg); } &__button { - margin: 20px 0; + margin-top: 20px; } &__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; + padding-bottom: 20px; } &__detail { @@ -62,6 +67,19 @@ body { margin: 10px 0 0; } } + + &__scroll { + margin: 20px auto 0; + font-size: 12px; + font-weight: 700; + text-align: center; + text-transform: uppercase; + cursor: pointer; + + &__text { + margin-top: 15px; + } + } } @media #{$screen-sm} { @@ -71,15 +89,19 @@ body { height: calc(100vh - #{$header-height--desktop * 2}); } - &__title { + &__header { font-size: 80px; &--lower { margin-top: -40px; - margin-left: 100px; + padding-left: 110px; } } + &__button { + order: 2; + } + &__bottom { align-items: center; } @@ -87,7 +109,7 @@ body { &__detail { padding: 0; - &__title { + &__header { margin-bottom: 5px; } @@ -110,8 +132,12 @@ body { width: 60%; } - &__title { + &__header { font-size: 130px; + + &--lower { + margin-top: -60px; + } } &__bottom { @@ -131,17 +157,37 @@ body { left: 70%; float: initial; } + + &__scroll { + position: absolute; + bottom: 25px; + left: 50%; + } } } @media #{$screen-lg} { .hero { - &__title { + &__header { + top: 50%; font-size: 160px; &--lower { - margin-top: -60px; - margin-left: 8%; + margin-top: -80px; + padding-left: 8%; + } + } + } +} + +@media #{$screen-xlg} { + .hero { + &__header { + font-size: 170px; + + &--lower { + margin-top: -80px; + padding-left: 18%; } } }