@@ -48,9 +48,9 @@ function App() {
48
48
w : "80%" ,
49
49
h : 1 ,
50
50
fontSize : 36 ,
51
- align : ' center' ,
52
- fill : { color :' D3E3F3' } ,
53
- color : ' 008899' ,
51
+ align : " center" ,
52
+ fill : { color : " D3E3F3" } ,
53
+ color : " 008899" ,
54
54
} ) ;
55
55
56
56
slide . addChart ( pptx . ChartType . radar , dataChartRadar , { x : 1 , y : 1.9 , w : 8 , h : 3 } ) ;
@@ -61,75 +61,64 @@ function App() {
61
61
w : "100%" ,
62
62
h : 0.33 ,
63
63
fontSize : 10 ,
64
- align : ' center' ,
65
- fill : ' E1E1E1' , //{ color: pptx.SchemeColor.background2 },
66
- color : ' A1A1A1' // pptx.SchemeColor.accent3,
64
+ align : " center" ,
65
+ fill : " E1E1E1" , //{ color: pptx.SchemeColor.background2 },
66
+ color : " A1A1A1" , // pptx.SchemeColor.accent3,
67
67
} ) ;
68
68
69
69
pptx . writeFile ( { fileName : "pptxgenjs-demo-react.pptx" } ) ;
70
70
}
71
71
72
72
return (
73
- < div >
73
+ < section >
74
74
< nav className = "navbar navbar-expand-lg navbar-dark bg-primary" >
75
- < a className = "navbar-brand" href = "https://gitbrent.github.io/PptxGenJS/" >
76
- < img src = { logo } width = "30" height = "30" className = "d-inline-block align-top mr-2" alt = "logo" />
77
- PptxGenJS
78
- </ a >
79
- < button
80
- className = "navbar-toggler"
81
- type = "button"
82
- data-toggle = "collapse"
83
- data-target = "#navbarColor01"
84
- aria-controls = "navbarColor01"
85
- aria-expanded = "false"
86
- aria-label = "Toggle navigation"
87
- >
88
- < span className = "navbar-toggler-icon" > </ span >
89
- </ button >
90
-
91
- < div className = "collapse navbar-collapse" id = "navbarColor01" >
92
- < ul className = "navbar-nav mr-auto" >
93
- < li className = "nav-item active" >
94
- < a className = "nav-link" href = "https://gitbrent.github.io/PptxGenJS/demo-react/index.html" >
95
- Home < span className = "sr-only" > (current)</ span >
96
- </ a >
97
- </ li >
98
- </ ul >
99
- < form className = "form-inline my-2 my-lg-0" >
100
- < button
101
- type = "button"
102
- className = "btn btn-outline-info mx-3 my-2 my-sm-0"
103
- onClick = { ( ev ) => {
104
- window . open ( "https://gitbrent.github.io/PptxGenJS/demo/" , true ) ;
105
- } }
106
- >
107
- Demo Page
108
- </ button >
109
- < button
110
- type = "button"
111
- className = "btn btn-outline-info mx-3 my-2 my-sm-0"
112
- onClick = { ( ev ) => {
113
- window . open ( "https://github.com/gitbrent/PptxGenJS" , true ) ;
114
- } }
115
- >
116
- GitHub Project
117
- </ button >
118
- < button
119
- type = "button"
120
- className = "btn btn-outline-info mx-3 my-2 my-sm-0"
121
- onClick = { ( ev ) => {
122
- window . open ( "https://gitbrent.github.io/PptxGenJS/docs/installation.html" , true ) ;
123
- } }
124
- >
125
- API Docs
126
- </ button >
127
- </ form >
75
+ < div className = "container-fluid" >
76
+ < a className = "navbar-brand" href = "https://gitbrent.github.io/PptxGenJS/" >
77
+ < img src = { logo } width = "30" height = "24" />
78
+ PptxGenJS
79
+ </ a >
80
+ < button
81
+ className = "navbar-toggler"
82
+ type = "button"
83
+ data-bs-toggle = "collapse"
84
+ data-bs-target = "#navbarSupportedContent"
85
+ aria-controls = "navbarSupportedContent"
86
+ aria-expanded = "false"
87
+ aria-label = "Toggle navigation"
88
+ >
89
+ < span className = "navbar-toggler-icon" > </ span >
90
+ </ button >
91
+ < div className = "collapse navbar-collapse" id = "navbarSupportedContent" >
92
+ < ul className = "navbar-nav me-auto mb-2 mb-lg-0" >
93
+ < li className = "nav-item" >
94
+ < a className = "nav-link active" aria-current = "page" href = "#" >
95
+ Home
96
+ </ a >
97
+ </ li >
98
+ </ ul >
99
+ < ul className = "navbar-nav ms-auto mb-2 mb-lg-0" >
100
+ < li class = "nav-item me-3" >
101
+ < a class = "nav-link" href = "https://gitbrent.github.io/PptxGenJS/demos/" >
102
+ Library Demos
103
+ </ a >
104
+ </ li >
105
+ < li class = "nav-item me-3" >
106
+ < a class = "nav-link" href = "https://gitbrent.github.io/PptxGenJS/docs/installation/" >
107
+ API Documentation
108
+ </ a >
109
+ </ li >
110
+ < li class = "nav-item me-3" >
111
+ < a class = "nav-link" href = "https://github.com/gitbrent/PptxGenJS/" >
112
+ GitHub Project
113
+ </ a >
114
+ </ li >
115
+ </ ul >
116
+ </ div >
128
117
</ div >
129
118
</ nav >
130
119
131
120
< main className = "container" >
132
- < div className = "jumbotron mt -5" >
121
+ < div className = "jumbotron my -5" >
133
122
< h1 className = "display-4" > React Demo</ h1 >
134
123
< p className = "lead" > Sample React application to demonstrate using the PptxGenJS library as a module.</ p >
135
124
< hr className = "my-4" />
@@ -141,7 +130,7 @@ function App() {
141
130
142
131
< div className = "row" >
143
132
< div className = "col" >
144
- < button type = "button" className = "btn btn-success w-100 mr -3" onClick = { ( _ev ) => runDemo ( ) } >
133
+ < button type = "button" className = "btn btn-success w-100 me -3" onClick = { ( _ev ) => runDemo ( ) } >
145
134
Run Demo
146
135
</ button >
147
136
</ div >
@@ -158,7 +147,7 @@ function App() {
158
147
</ div >
159
148
160
149
< table id = "html2ppt" className = "table table-dark" style = { { display : "none" } } >
161
- < thead >
150
+ < thead className = "table-dark" >
162
151
< tr >
163
152
< th > col 1</ th >
164
153
< th > col 2</ th >
@@ -175,7 +164,7 @@ function App() {
175
164
</ table >
176
165
</ div >
177
166
</ main >
178
- </ div >
167
+ </ section >
179
168
) ;
180
169
}
181
170
0 commit comments