Skip to content

Commit ed4e2a6

Browse files
committed
disable twitter
1 parent 75b651f commit ed4e2a6

File tree

4 files changed

+20
-19
lines changed

4 files changed

+20
-19
lines changed

src/components/CompanyCarousel.vue

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<div v-if="activeCompany">
3-
<h4>
3+
<!-- <h4>
44
{{ $t('introduction.usedByTitle') }}
5-
</h4>
5+
</h4> -->
66
<div class="row carousel-container pt-small pb-small bg-white bg-grey-dark-darkmode card">
77
<button
88
class="col-sm-1 flex center middle"
@@ -14,7 +14,7 @@
1414
<div
1515
:key="activeCompanyIndex"
1616
class="col-sm-10 row middle"
17-
:style="!$store.state.isMobile ? 'height: 10rem;' : ''">
17+
:style="!$store.state.isMobile ? 'height: 13rem;' : ''">
1818
<div
1919
class="col-sm-12 col-md-3 col-md-offset-0"
2020
:class="$store.state.isMobile ? 'mb-medium' : ''">
@@ -52,9 +52,9 @@
5252
<div class="row between">
5353
<button
5454
v-for="(company, i) in companiesShuffled.slice(5, 10)"
55-
:key="company.name"
56-
:aria-label="`${company.name} testimonial`"
57-
:style="`background-image: url(${publicPath}img/carousel-company-icons/${company.imgName})`"
55+
:key="company?.name"
56+
:aria-label="`${company?.name} testimonial`"
57+
:style="`background-image: url(${publicPath}img/carousel-company-icons/${company?.imgName}); ${!company.name && 'opacity: 0; pointer-events: none;'}`"
5858
class="img-container-small bg-white card mt-small"
5959
:class="activeCompanyIndex === i + 5 ? 'logo-active border-black border-thin' : ''"
6060
@click="activeCompanyIndex = i + 5" />
@@ -65,7 +65,7 @@
6565
v-for="(company, i) in companiesShuffled"
6666
:key="company.name"
6767
:aria-label="`${company.name} testimonial`"
68-
:style="`background-image: url(${publicPath}img/carousel-company-icons/${company.imgName})`"
68+
:style="`background-image: url(${publicPath}img/carousel-company-icons/${company.imgName}); ${!company.name && 'opacity: 0; pointer-events: none;'}`"
6969
class="img-container-small bg-white card mt-small"
7070
:class="[
7171
activeCompanyIndex === i ? 'logo-active border-black border-thin' : '',
@@ -100,9 +100,6 @@ export default {
100100
computed: {
101101
activeCompany() {
102102
return this.$tm('introduction.companies')[this.activeCompanyIndex]
103-
},
104-
numberOfCompanies() {
105-
return this.$tm('introduction.companies').length
106103
}
107104
},
108105
methods: {
@@ -131,7 +128,7 @@ export default {
131128
const j = Math.floor(Math.random() * (i + 1));
132129
[companies[i], companies[j]] = [companies[j], companies[i]]
133130
}
134-
this.companiesShuffled = companies
131+
this.companiesShuffled = [...companies, {}]
135132
this.isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
136133
}
137134
}

src/components/PageSection.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@
1111
</h2>
1212
</div>
1313
<div
14+
v-if="body !== ''"
1415
class="col-sm-12 col-lg-9"
1516
:class="$store.state.isMobile ? '' : 'pt-2xsmall'"
1617
v-html="body" />
18+
<slot v-else />
1719
</div>
1820
<div
1921
class="row"
2022
:class="$store.state.isMobile ? '' : 'pl-small pr-small'">
21-
<slot />
23+
<slot v-if="body !== ''"/>
2224
</div>
2325
</div>
2426
</template>

src/content/english/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default () => ({
102102
imgName: 'Finnair.svg'
103103
},
104104
{
105-
title: 'Finnish Tax Administration',
105+
name: 'Finnish Tax Administration',
106106
description: `Finnish Tax Administration is using Robot Framework in multiple projects.
107107
Robot Framework is one of the core tools in their development to make Quality Assurance and Automation.`,
108108
imgName: 'Vero.svg'

src/views/Home.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
<navbar class="nav-desktop" />
66
<div class="container mb-xlarge">
77
<!-- introduction -->
8-
<page-section-twitter
8+
<page-section
99
title-id="introduction"
10-
:title="$t('introduction.title')"
11-
:body="$t('introduction.body')">
12-
<div class="mt-small mb-small">
13-
<company-carousel />
10+
:title="$t('introduction.title')">
11+
<div class="col-sm-12 col-lg-9 row">
12+
<div class="col-sm-12 col-lg-8 pr-small" v-html="$t('introduction.body')" />
13+
<div class="col-lg-4 pt-xsmall">
14+
<company-carousel />
15+
</div>
1416
</div>
15-
</page-section-twitter>
17+
</page-section>
1618
<!-- getting started -->
1719
<page-section
1820
title-id="getting-started"

0 commit comments

Comments
 (0)