diff --git a/public/modules/custom/helfi_etusivu/src/Form/NearYouForm.php b/public/modules/custom/helfi_etusivu/src/Form/NearYouForm.php index 571f72c4..51563e41 100644 --- a/public/modules/custom/helfi_etusivu/src/Form/NearYouForm.php +++ b/public/modules/custom/helfi_etusivu/src/Form/NearYouForm.php @@ -25,14 +25,6 @@ public function getFormId() { public function buildForm(array $form, FormStateInterface $form_state) { $form['#attributes']['class'][] = 'helfi-etusivu-near-you-form'; - $form['description'] = [ - '#markup' => - '
' . - $this->t('Find services, events, and news near you. Start by searching with your address.', [], ['context' => 'Helsinki near you']) . - '
', - '#type' => 'markup', - ]; - $form['q'] = [ '#autocomplete_route_name' => 'helfi_etusivu.helsinki_near_you_autocomplete', '#placeholder' => $this->t('Eg. Vaasankatu 5', [], ['context' => 'Helsinki near you']), diff --git a/public/modules/custom/helfi_etusivu/translations/fi.po b/public/modules/custom/helfi_etusivu/translations/fi.po index 1e226aa4..99291971 100644 --- a/public/modules/custom/helfi_etusivu/translations/fi.po +++ b/public/modules/custom/helfi_etusivu/translations/fi.po @@ -55,10 +55,6 @@ msgctxt "Helsinki near you" msgid "First make a search with your address" msgstr "Tee aluksi haku osoitteellasi" -msgctxt "Helsinki near you" -msgid "Find services, events, and news near you. Start by searching with your address." -msgstr "Löydä palvelut, tapahtumat ja uutiset läheltäsi. Aloita kirjoittamalla osoitteesi." - msgctxt "Helsinki near you" msgid "Fill in your address to the search bar above and find services, events and news near you." msgstr "Täytä osoitteesi yllä olevaan hakuun ja löydä palveluita, tapahtumia ja uutisia läheltäsi." diff --git a/public/modules/custom/helfi_etusivu/translations/sv.po b/public/modules/custom/helfi_etusivu/translations/sv.po index c8a5441e..40f82ddc 100644 --- a/public/modules/custom/helfi_etusivu/translations/sv.po +++ b/public/modules/custom/helfi_etusivu/translations/sv.po @@ -44,10 +44,6 @@ msgctxt "Helsinki near you" msgid "First make a search with your address" msgstr "Först gör en sökning med din adress" -msgctxt "Helsinki near you" -msgid "Find services, events, and news near you. Start by searching with your address." -msgstr "Hitta tjänster, evenemang och nyheter nära dig. Börja med att söka med din adress." - msgctxt "Helsinki near you" msgid "Fill in your address to the search bar above and find services, events and news near you." msgstr "Fyll i din adress i sökfältet ovan och hitta tjänster, evenemang och nyheter nära dig." diff --git a/public/themes/custom/hdbt_subtheme/dist/css/styles.min.css b/public/themes/custom/hdbt_subtheme/dist/css/styles.min.css index 43707e4e..293e5ad4 100644 --- a/public/themes/custom/hdbt_subtheme/dist/css/styles.min.css +++ b/public/themes/custom/hdbt_subtheme/dist/css/styles.min.css @@ -1 +1 @@ -.table-of-contents--news-update{padding-left:16px;padding-right:16px;--item-title-lineheight: 1.875rem}@media(min-width: 768px){.table-of-contents--news-update{padding-left:32px;padding-right:32px}}[dir="ltr"] .table-of-contents--news-update .table-of-contents__container{border-left:none}[dir="rtl"] .table-of-contents--news-update .table-of-contents__container{border-right:none}.table-of-contents--news-update .table-of-contents__title+.table-of-contents__content{padding-top:16px}.table-of-contents--news-update .table-of-contents__item{--line-height: 1.5;font-size:1.25rem;font-weight:500;line-height:var(--line-height);display:flex;flex-direction:column;padding-top:16px;padding-bottom:16px;padding-left:16px;padding-right:16px;position:relative}@media(min-width: 768px){.table-of-contents--news-update .table-of-contents__item{flex-direction:row}}[dir="ltr"] .table-of-contents--news-update .table-of-contents__item::before,[dir="ltr"] .table-of-contents--news-update .table-of-contents__item::after{left:8px}[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::before,[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::after{right:8px}.table-of-contents--news-update .table-of-contents__item::before,.table-of-contents--news-update .table-of-contents__item::after{content:"";display:block;position:absolute}[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::before,[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::after{right:8px}.table-of-contents--news-update .table-of-contents__item::after{background-color:#000;height:calc(100% + 32px + 8px);top:-16px;transform:translateX(calc(var(--lang-direction) * -50%));width:2px;z-index:0}.table-of-contents--news-update .table-of-contents__item:first-of-type::after{height:100%;top:calc(16px + var(--item-title-lineheight)*.5)}.table-of-contents--news-update .table-of-contents__item:last-of-type::after{height:calc(16px + var(--item-title-lineheight)*.5)}.table-of-contents--news-update .table-of-contents__item:only-child::after{display:none}.table-of-contents--news-update .table-of-contents__item::before{background-color:#fff;border:3px solid #000;border-radius:50%;height:16px;top:calc(16px + var(--item-title-lineheight)*.5);transform:translate(calc(var(--lang-direction) * -50%), -50%);width:16px;z-index:1}.table-of-contents--news-update time{padding-left:16px}@media(min-width: 768px){.table-of-contents--news-update time{flex:none;width:110px}}[dir="rtl"] .table-of-contents--news-update time{padding-left:0;padding-right:16px}.table-of-contents--news-update .table-of-contents__link{margin-left:16px}@media(min-width: 768px){.table-of-contents--news-update .table-of-contents__link{margin-left:32px}}[dir="rtl"] .table-of-contents--news-update .table-of-contents__link{margin-left:0;margin-right:16px}@media(min-width: 768px){[dir="rtl"] .table-of-contents--news-update .table-of-contents__link{margin-right:32px}}.block--main-news{padding-left:16px;padding-right:16px;max-width:1296px;margin-top:32px;margin:auto;width:100%}@media(min-width: 768px){.block--main-news{padding-left:32px;padding-right:32px}}@media(min-width: 768px){.block--main-news{max-width:1328px}}@media(min-width: 992px){.block--main-news{margin-top:64px}}.block--main-news h2{margin-bottom:48px;margin-top:0}.component--news-of-interest{margin-top:32px;background-color:#f2f2f2;margin-left:16px;margin-right:16px;padding:32px 16px 32px}@media(min-width: 992px){.component--news-of-interest{margin-top:64px}}@media(min-width: 768px){.component--news-of-interest{padding:48px 32px 48px}}.component--news-of-interest .card{padding:24px}.component--news-of-interest .empty-text{--line-height: 1.5555555556;font-size:1.125rem;font-weight:400;line-height:var(--line-height)}.component--graphics{max-width:100%}@media(min-width: 992px){.graphics{align-items:center;display:flex;justify-content:space-between}}.graphics__text-container{--line-height: 1.5555555556;font-size:1.125rem;font-weight:400;line-height:var(--line-height)}@media(min-width: 992px){.graphics__text-container{min-height:300px}}.graphics__title{margin-top:0}.graphics__illustration-container{margin-top:64px}@media(min-width: 992px){.graphics__illustration-container{margin-top:0}}.graphics__illustration{max-width:100%}.page-title+article>.components--helsinki-near-you-results:first-child{margin-top:16px}.helfi-etusivu-near-you-form__description{--line-height: 1.5555555556;font-size:1.125rem;font-weight:400;line-height:var(--line-height);margin-top:16px}.helfi-etusivu-near-you-form__address-input{margin-top:32px}@media(min-width: 992px){.helfi-etusivu-near-you-form .helfi-search__submit-button{margin-top:8px}}.helfi-etusivu-near-you-form .form-item-q .form-autocomplete,.helfi-etusivu-near-you-form .form-item-q .form-autocomplete.ui-autocomplete-loading{background-position:98% center}.ui-menu.ui-front .ui-menu-item-wrapper{color:#000;display:inline-block;padding:16px;width:100%}.ui-menu.ui-front .ui-menu-item-wrapper.ui-state-active{background-color:#f0f0ff;border:1px solid #0000bf}.component--current{background-color:var(--hdbt-color-palette--secondary);color:var(--hdbt-color-palette-text--secondary)}.current__content{display:flex;flex-direction:column;margin-left:auto;margin-right:auto;max-width:1264px}@media(min-width: 768px){.current__content{flex-direction:row}}.current__content__list{margin-bottom:0;margin-top:0}.current__content__list-item{--line-height: 1.5;font-size:1.25rem;font-weight:500;line-height:var(--line-height);margin-bottom:2px;margin-top:0;padding-top:7px;padding-bottom:7px;vertical-align:top}.current__links-container{padding-bottom:16px;padding-top:16px}@media(min-width: 576px){.current__links-container{padding-bottom:24px;padding-top:24px}}@media(min-width: 768px){.current__links-container{padding-right:16px}}@media(min-width: 992px){.current__links-container{padding-bottom:48px;padding-top:48px}}@media(min-width: 992px){.current__links-container{padding-bottom:64px;padding-top:64px}}.current{display:flex;flex-direction:column}@media(min-width: 768px){.current__illustration-container{margin-left:auto;margin-top:-32px}}@media(min-width: 992px){.current__illustration-container{margin-top:-48px}}@media(min-width: 1248px){.current__illustration-container{margin-top:-64px}}.current__seasonal-illustration{aspect-ratio:1;display:block;width:258px}@media(min-width: 992px){.current__seasonal-illustration{width:378px}}@media(min-width: 1248px){.current__seasonal-illustration{width:486px}}.component--latest-news--cards{background-color:#f2f2f2}.component--latest-news .latest-news__link-wrapper{margin-top:32px}@media(min-width: 768px){.component--latest-news .latest-news__link-wrapper{margin-top:64px}}[dir="ltr"] .component--top-news .news-listing{padding-left:0}[dir="rtl"] .component--top-news .news-listing{padding-right:0}.component--top-news .news-listing__item{position:relative}.component--top-news--news .component__container{background-color:#e8f3fc;padding:24px 24px 32px}@media(min-width: 768px){.component--top-news--news .component__container{padding:32px 32px 48px}}.component--top-news--news .component__title+.component__content{margin-top:0}@media(min-width: 768px){.component--top-news--news .component__title+.component__content{grid-template-columns:repeat(2, 1fr);margin-top:32px}}.component--top-news--news .news-listing--medium-teasers{display:grid;margin-bottom:0;margin-top:24px}@media(min-width: 768px){.component--top-news--news .news-listing--medium-teasers{grid-column-gap:24px;grid-row-gap:32px;grid-template-columns:repeat(2, 1fr);margin-top:48px}}.component--top-news--news .news-listing__medium-teaser{padding:0}[dir=rtl] .component--top-news--news .news-listing__medium-teaser{padding:0}.component--top-news--news .news-listing__medium-teaser::before{display:none}.component--top-news--news .news-listing__medium-teaser .news-listing__title{--line-height: 1.3;font-size:1.25rem;font-weight:500;line-height:var(--line-height)}@media(min-width: 992px){.component--top-news--news .news-listing__medium-teaser .news-listing__title{--line-height: 1.1666666667;font-size:1.5rem;font-weight:500}}.component--top-news--news .news-listing__medium-teaser .news-listing__datetime{margin-top:8px}.component--news-update{border-bottom:1px solid #ccc;padding-bottom:32px}@media(min-width: 768px){.component--news-update{padding-bottom:48px}}.component--news-update time{--line-height: 1.5555555556;font-size:1.125rem;font-weight:400;line-height:var(--line-height);display:inline-block;margin-top:16px}.component--news-update .component__content{margin-top:32px}@media(min-width: 768px){.component--news-update .component__content{margin-top:48px}}*~.component--news-update,.component--news-update~.component--news-update{margin-top:32px}@media(min-width: 768px){*~.component--news-update,.component--news-update~.component--news-update{margin-top:48px}} +.table-of-contents--news-update{padding-left:16px;padding-right:16px;--item-title-lineheight: 1.875rem}@media(min-width: 768px){.table-of-contents--news-update{padding-left:32px;padding-right:32px}}[dir="ltr"] .table-of-contents--news-update .table-of-contents__container{border-left:none}[dir="rtl"] .table-of-contents--news-update .table-of-contents__container{border-right:none}.table-of-contents--news-update .table-of-contents__title+.table-of-contents__content{padding-top:16px}.table-of-contents--news-update .table-of-contents__item{--line-height: 1.5;font-size:1.25rem;font-weight:500;line-height:var(--line-height);display:flex;flex-direction:column;padding-top:16px;padding-bottom:16px;padding-left:16px;padding-right:16px;position:relative}@media(min-width: 768px){.table-of-contents--news-update .table-of-contents__item{flex-direction:row}}[dir="ltr"] .table-of-contents--news-update .table-of-contents__item::before,[dir="ltr"] .table-of-contents--news-update .table-of-contents__item::after{left:8px}[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::before,[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::after{right:8px}.table-of-contents--news-update .table-of-contents__item::before,.table-of-contents--news-update .table-of-contents__item::after{content:"";display:block;position:absolute}[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::before,[dir="rtl"] .table-of-contents--news-update .table-of-contents__item::after{right:8px}.table-of-contents--news-update .table-of-contents__item::after{background-color:#000;height:calc(100% + 32px + 8px);top:-16px;transform:translateX(calc(var(--lang-direction) * -50%));width:2px;z-index:0}.table-of-contents--news-update .table-of-contents__item:first-of-type::after{height:100%;top:calc(16px + var(--item-title-lineheight)*.5)}.table-of-contents--news-update .table-of-contents__item:last-of-type::after{height:calc(16px + var(--item-title-lineheight)*.5)}.table-of-contents--news-update .table-of-contents__item:only-child::after{display:none}.table-of-contents--news-update .table-of-contents__item::before{background-color:#fff;border:3px solid #000;border-radius:50%;height:16px;top:calc(16px + var(--item-title-lineheight)*.5);transform:translate(calc(var(--lang-direction) * -50%), -50%);width:16px;z-index:1}.table-of-contents--news-update time{padding-left:16px}@media(min-width: 768px){.table-of-contents--news-update time{flex:none;width:110px}}[dir="rtl"] .table-of-contents--news-update time{padding-left:0;padding-right:16px}.table-of-contents--news-update .table-of-contents__link{margin-left:16px}@media(min-width: 768px){.table-of-contents--news-update .table-of-contents__link{margin-left:32px}}[dir="rtl"] .table-of-contents--news-update .table-of-contents__link{margin-left:0;margin-right:16px}@media(min-width: 768px){[dir="rtl"] .table-of-contents--news-update .table-of-contents__link{margin-right:32px}}.block--main-news{padding-left:16px;padding-right:16px;max-width:1296px;margin-top:32px;margin:auto;width:100%}@media(min-width: 768px){.block--main-news{padding-left:32px;padding-right:32px}}@media(min-width: 768px){.block--main-news{max-width:1328px}}@media(min-width: 992px){.block--main-news{margin-top:64px}}.block--main-news h2{margin-bottom:48px;margin-top:0}.component--news-of-interest{margin-top:32px;background-color:#f2f2f2;margin-left:16px;margin-right:16px;padding:32px 16px 32px}@media(min-width: 992px){.component--news-of-interest{margin-top:64px}}@media(min-width: 768px){.component--news-of-interest{padding:48px 32px 48px}}.component--news-of-interest .card{padding:24px}.component--news-of-interest .empty-text{--line-height: 1.5555555556;font-size:1.125rem;font-weight:400;line-height:var(--line-height)}.component--graphics{max-width:100%}@media(min-width: 992px){.graphics{align-items:center;display:flex;justify-content:space-between}}.graphics__text-container{--line-height: 1.5555555556;font-size:1.125rem;font-weight:400;line-height:var(--line-height)}@media(min-width: 992px){.graphics__text-container{min-height:300px}}.graphics__title{margin-top:0}.graphics__illustration-container{margin-top:64px}@media(min-width: 992px){.graphics__illustration-container{margin-top:0}}.graphics__illustration{max-width:100%}.page-title+article>.components--helsinki-near-you-results:first-child{margin-top:16px}.helfi-etusivu-near-you-form__address-input{margin-top:32px}@media(min-width: 992px){.helfi-etusivu-near-you-form .helfi-search__submit-button{margin-top:8px}}.helfi-etusivu-near-you-form .form-item-q .form-autocomplete,.helfi-etusivu-near-you-form .form-item-q .form-autocomplete.ui-autocomplete-loading{background-position:98% center}.ui-menu.ui-front .ui-menu-item-wrapper{color:#000;display:inline-block;padding:16px;width:100%}.ui-menu.ui-front .ui-menu-item-wrapper.ui-state-active{background-color:#f0f0ff;border:1px solid #0000bf}.component--current{background-color:var(--hdbt-color-palette--secondary);color:var(--hdbt-color-palette-text--secondary)}.current__content{display:flex;flex-direction:column;margin-left:auto;margin-right:auto;max-width:1264px}@media(min-width: 768px){.current__content{flex-direction:row}}.current__content__list{margin-bottom:0;margin-top:0}.current__content__list-item{--line-height: 1.5;font-size:1.25rem;font-weight:500;line-height:var(--line-height);margin-bottom:2px;margin-top:0;padding-top:7px;padding-bottom:7px;vertical-align:top}.current__links-container{padding-bottom:16px;padding-top:16px}@media(min-width: 576px){.current__links-container{padding-bottom:24px;padding-top:24px}}@media(min-width: 768px){.current__links-container{padding-right:16px}}@media(min-width: 992px){.current__links-container{padding-bottom:48px;padding-top:48px}}@media(min-width: 992px){.current__links-container{padding-bottom:64px;padding-top:64px}}.current{display:flex;flex-direction:column}@media(min-width: 768px){.current__illustration-container{margin-left:auto;margin-top:-32px}}@media(min-width: 992px){.current__illustration-container{margin-top:-48px}}@media(min-width: 1248px){.current__illustration-container{margin-top:-64px}}.current__seasonal-illustration{aspect-ratio:1;display:block;width:258px}@media(min-width: 992px){.current__seasonal-illustration{width:378px}}@media(min-width: 1248px){.current__seasonal-illustration{width:486px}}.component--latest-news--cards{background-color:#f2f2f2}.component--latest-news .latest-news__link-wrapper{margin-top:32px}@media(min-width: 768px){.component--latest-news .latest-news__link-wrapper{margin-top:64px}}[dir="ltr"] .component--top-news .news-listing{padding-left:0}[dir="rtl"] .component--top-news .news-listing{padding-right:0}.component--top-news .news-listing__item{position:relative}.component--top-news--news .component__container{background-color:#e8f3fc;padding:24px 24px 32px}@media(min-width: 768px){.component--top-news--news .component__container{padding:32px 32px 48px}}.component--top-news--news .component__title+.component__content{margin-top:0}@media(min-width: 768px){.component--top-news--news .component__title+.component__content{grid-template-columns:repeat(2, 1fr);margin-top:32px}}.component--top-news--news .news-listing--medium-teasers{display:grid;margin-bottom:0;margin-top:24px}@media(min-width: 768px){.component--top-news--news .news-listing--medium-teasers{grid-column-gap:24px;grid-row-gap:32px;grid-template-columns:repeat(2, 1fr);margin-top:48px}}.component--top-news--news .news-listing__medium-teaser{padding:0}[dir=rtl] .component--top-news--news .news-listing__medium-teaser{padding:0}.component--top-news--news .news-listing__medium-teaser::before{display:none}.component--top-news--news .news-listing__medium-teaser .news-listing__title{--line-height: 1.3;font-size:1.25rem;font-weight:500;line-height:var(--line-height)}@media(min-width: 992px){.component--top-news--news .news-listing__medium-teaser .news-listing__title{--line-height: 1.1666666667;font-size:1.5rem;font-weight:500}}.component--top-news--news .news-listing__medium-teaser .news-listing__datetime{margin-top:8px}.component--news-update{border-bottom:1px solid #ccc;padding-bottom:32px}@media(min-width: 768px){.component--news-update{padding-bottom:48px}}.component--news-update time{--line-height: 1.5555555556;font-size:1.125rem;font-weight:400;line-height:var(--line-height);display:inline-block;margin-top:16px}.component--news-update .component__content{margin-top:32px}@media(min-width: 768px){.component--news-update .component__content{margin-top:48px}}*~.component--news-update,.component--news-update~.component--news-update{margin-top:32px}@media(min-width: 768px){*~.component--news-update,.component--news-update~.component--news-update{margin-top:48px}} diff --git a/public/themes/custom/hdbt_subtheme/src/scss/06_components/pages/_helsinki-near-you.scss b/public/themes/custom/hdbt_subtheme/src/scss/06_components/pages/_helsinki-near-you.scss index 485b46b1..ca7562b9 100644 --- a/public/themes/custom/hdbt_subtheme/src/scss/06_components/pages/_helsinki-near-you.scss +++ b/public/themes/custom/hdbt_subtheme/src/scss/06_components/pages/_helsinki-near-you.scss @@ -38,11 +38,6 @@ margin-top: $spacing; } -.helfi-etusivu-near-you-form__description { - @include font(body); - margin-top: $spacing; -} - .helfi-etusivu-near-you-form__address-input { margin-top: $spacing-double; }