Skip to content

Commit 203bd98

Browse files
committed
Portal.view.home.parts.MainNeo: use component.MagicMoveText for the sub-headline #6481
1 parent aa1d831 commit 203bd98

5 files changed

Lines changed: 33 additions & 6 deletions

File tree

apps/portal/view/home/parts/MainNeo.mjs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import BaseContainer from './BaseContainer.mjs';
22
import Button from '../../../../../src/button/Base.mjs';
3+
import MagicMoveText from '../../../../../src/component/MagicMoveText.mjs';
34

45
/**
56
* @class Portal.view.home.parts.MainNeo
@@ -33,10 +34,17 @@ class MainNeo extends BaseContainer {
3334
tag : 'h1'
3435
}]
3536
}, {
36-
cls : ['neo-h2'],
37-
flex: 'none',
38-
html: 'Modern Enterprise-Ready JavaScript Framework',
39-
tag : 'h2'
37+
module : MagicMoveText,
38+
cls : ['neo-h2'],
39+
colorMove: '#3E63DD',
40+
flex : 'none',
41+
42+
cycleTexts: [
43+
'Modern Enterprise-Ready JavaScript Framework',
44+
'The Application Worker driven Frontend Framework',
45+
'Extensibility',
46+
'Scalability'
47+
]
4048
}, {
4149
cls : ['neo-h3'],
4250
flex: 'none',

examples/component/magicmovetext/MainContainer.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class MainContainer extends ConfigurationViewport {
7474
createExampleComponent() {
7575
return {
7676
module: MagicMoveText,
77+
height: 100,
78+
width : 450,
7779

7880
cycleTexts: [
7981
'Magic Move',

resources/scss/src/apps/portal/home/parts/MainNeo.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,24 @@
2727
min-width : 240px;
2828
}
2929

30+
.neo-magic-move-text {
31+
background-color: transparent;
32+
color : #000;
33+
font-size : 2.5rem;
34+
height : 2em;
35+
letter-spacing : -0.02em;
36+
line-height : 1.2em;
37+
width : 90%;
38+
39+
.neo-content {
40+
font-size: 2.5rem;
41+
}
42+
43+
.neo-measure-element-wrapper {
44+
letter-spacing: -0.02em;
45+
}
46+
}
47+
3048
.neo-github {
3149
background-color: #fff;
3250
}

resources/scss/src/component/MagicMoveText.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
.neo-measure-element-wrapper {
2828
align-items : center;
29-
background-color: #000;
3029
display : flex;
3130
justify-content: center;
3231
left : -5000px;

src/component/MagicMoveText.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class MagicMoveText extends Component {
226226
me.chars.push({name: char});
227227

228228
if (char === ' ') {
229-
char = ' '
229+
char = ' '
230230
}
231231

232232
measureElement.cn.push({tag: 'span', html: char})

0 commit comments

Comments
 (0)