File tree Expand file tree Collapse file tree
apps/portal/view/home/parts
examples/component/magicmovetext Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import BaseContainer from './BaseContainer.mjs' ;
22import 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' ,
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff line change 2626
2727 .neo-measure-element-wrapper {
2828 align-items : center ;
29- background-color : #000 ;
3029 display : flex ;
3130 justify-content : center ;
3231 left : -5000px ;
Original file line number Diff line number Diff 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 } )
You can’t perform that action at this time.
0 commit comments