39
39
</section >
40
40
</aside >
41
41
<main class =" content-container" :class =" {toc: showTableOfContents}" >
42
+ <div class =" notice" v-if =" !hideNotice && notice" >
43
+ <Description :description =" notice" />
44
+ <button type =" button" class =" close" title =" Close" @click =" hideNotice = true" >×</button >
45
+ </div >
42
46
<Process v-for =" process in processes" :key =" process.id" :process =" process" :provideDownload =" provideDownload" :sort =" false" processUrl =" #${}" />
43
47
</main >
44
48
</div >
49
53
import axios from ' axios' ;
50
54
import Utils from ' @openeo/vue-components/utils' ;
51
55
import BaseConfig from ' ./config.js' ;
56
+ import Description from ' @openeo/vue-components/components/Description.vue' ;
52
57
import LinkList from ' @openeo/vue-components/components/LinkList.vue' ;
53
58
import Process from ' @openeo/vue-components/components/Process.vue' ;
54
59
import Processes from ' @openeo/vue-components/components/Processes.vue' ;
@@ -59,6 +64,7 @@ import { MigrateProcesses } from '@openeo/js-commons';
59
64
export default {
60
65
name: ' DocGen' ,
61
66
components: {
67
+ Description,
62
68
LinkList,
63
69
Process,
64
70
Processes,
@@ -97,10 +103,15 @@ export default {
97
103
uncategorizedName: {
98
104
type: String ,
99
105
default: BaseConfig .uncategorizedName ,
106
+ },
107
+ notice: {
108
+ type: String ,
109
+ default: BaseConfig .notice
100
110
}
101
111
},
102
112
data () {
103
113
return {
114
+ hideNotice: false ,
104
115
searchTerm: ' ' ,
105
116
allCollapsedState: true ,
106
117
hasResults: true ,
@@ -317,6 +328,39 @@ export default {
317
328
color : black ;
318
329
}
319
330
331
+ .docgen .notice {
332
+ margin : 0rem 3rem 1rem 2rem ;
333
+ padding : 1rem 3.5rem 1rem 1rem ;
334
+ border : 1px solid transparent ;
335
+ border-radius : .25rem ;
336
+ position : fixed ;
337
+ bottom : 0 ;
338
+ color : #856404 ;
339
+ background-color : #fff3cd ;
340
+ border-color : #856404 ;
341
+ }
342
+ .docgen .notice p :last-of-type {
343
+ margin-bottom : 0 ;
344
+ }
345
+ .docgen .notice .close {
346
+ position : absolute ;
347
+ top : 0 ;
348
+ right : 0 ;
349
+ font-size : 1.5em ;
350
+ padding : 0.5rem ;
351
+ margin : 0.5rem ;
352
+ font-weight : 700 ;
353
+ line-height : 1 ;
354
+ opacity : .5 ;
355
+ background-color : transparent ;
356
+ border : 0 ;
357
+ color : inherit ;
358
+ cursor : pointer ;
359
+ }
360
+ .docgen .notice .close :hover {
361
+ opacity : 1 ;
362
+ outline : 0 ;
363
+ }
320
364
321
365
.docgen .categories h2 {
322
366
display : block ;
0 commit comments