|
7 | 7 | justify-content: center; |
8 | 8 | flex-shrink: 0; |
9 | 9 | } |
| 10 | +
|
| 11 | + /* Override blocks paths due to /panel base path */ |
| 12 | + .blocks { |
| 13 | + background-image: |
| 14 | + url('/panel/assets/img/red.svg'), url('/panel/assets/img/yellow.svg'), |
| 15 | + url('/panel/assets/img/green.svg') !important; |
| 16 | + } |
10 | 17 | </style> |
11 | 18 |
|
12 | 19 | <div aria-hidden="true" class="modal fade" bind:this={$modalElement} role="dialog" tabindex="-1"> |
13 | 20 | <div class="modal-dialog modal-lg modal-dialog-centered" role="dialog"> |
14 | 21 | <div class="modal-content overflow-hidden"> |
15 | | - <div class="modal-header border-bottom-0 pb-0"> |
16 | | - <button type="button" class="btn-close" aria-label="Close" on:click={handleClose}></button> |
| 22 | + <div |
| 23 | + class="modal-header text-bg-primary d-block text-center border-bottom-0 py-5 position-relative blocks"> |
| 24 | + <button |
| 25 | + type="button" |
| 26 | + class="btn-close btn-close-white position-absolute top-0 end-0 m-3" |
| 27 | + aria-label="Close" |
| 28 | + on:click={handleClose}></button> |
| 29 | + <img |
| 30 | + src="{base}/assets/img/pano-logo-heorizontal.png" |
| 31 | + alt="Pano" |
| 32 | + class="my-3" |
| 33 | + style="height: 3rem;" /> |
| 34 | + <p class="lead mb-0 px-lg-5">{$_('components.whats-new.description')}</p> |
17 | 35 | </div> |
18 | | - <div class="modal-body px-lg-5 pb-5"> |
19 | | - <div class="text-center mb-4"> |
20 | | - <div class="display-5 mb-2">{$_('components.whats-new.title')}</div> |
21 | | - <p class="lead text-muted">{$_('components.whats-new.description')}</p> |
22 | | - </div> |
23 | | - |
| 36 | + <div class="modal-body px-lg-5 py-5"> |
24 | 37 | <div class="row g-4 mb-4 text-start"> |
25 | 38 | <div class="col-md-6"> |
26 | 39 | <div class="d-flex align-items-start"> |
27 | 40 | <div class="feature-icon-small bg-primary bg-gradient text-white rounded-3 p-2 me-3"> |
28 | | - <i class="fas fa-server"></i> |
| 41 | + <i class="fas fa-file-alt"></i> |
29 | 42 | </div> |
30 | 43 | <div> |
31 | | - <h5 class="fw-bold mb-1">{$_('components.whats-new.features.management')}</h5> |
32 | | - <p class="small text-muted mb-0"> |
33 | | - {$_('components.whats-new.features.management-description')} |
| 44 | + <h5 class="fw-bold mb-1">{$_('components.whats-new.features.cms')}</h5> |
| 45 | + <p class=" mb-0"> |
| 46 | + {$_('components.whats-new.features.cms-description')} |
34 | 47 | </p> |
35 | 48 | </div> |
36 | 49 | </div> |
37 | 50 | </div> |
38 | 51 | <div class="col-md-6"> |
39 | 52 | <div class="d-flex align-items-start"> |
40 | 53 | <div class="feature-icon-small bg-primary bg-gradient text-white rounded-3 p-2 me-3"> |
41 | | - <i class="fas fa-gamepad"></i> |
| 54 | + <i class="fas fa-server"></i> |
42 | 55 | </div> |
43 | 56 | <div> |
44 | | - <h5 class="fw-bold mb-1">{$_('components.whats-new.features.integration')}</h5> |
45 | | - <p class="small text-muted mb-0"> |
46 | | - {$_('components.whats-new.features.integration-description')} |
| 57 | + <h5 class="fw-bold mb-1">{$_('components.whats-new.features.management')}</h5> |
| 58 | + <p class=" mb-0"> |
| 59 | + {$_('components.whats-new.features.management-description')} |
47 | 60 | </p> |
48 | 61 | </div> |
49 | 62 | </div> |
50 | 63 | </div> |
51 | 64 | <div class="col-md-6"> |
52 | 65 | <div class="d-flex align-items-start"> |
53 | 66 | <div class="feature-icon-small bg-primary bg-gradient text-white rounded-3 p-2 me-3"> |
54 | | - <i class="fas fa-shield-alt"></i> |
| 67 | + <i class="fas fa-gamepad"></i> |
55 | 68 | </div> |
56 | 69 | <div> |
57 | | - <h5 class="fw-bold mb-1">{$_('components.whats-new.features.e2ee')}</h5> |
58 | | - <p class="small text-muted mb-0"> |
59 | | - {$_('components.whats-new.features.e2ee-description')} |
| 70 | + <h5 class="fw-bold mb-1">{$_('components.whats-new.features.integration')}</h5> |
| 71 | + <p class=" mb-0"> |
| 72 | + {$_('components.whats-new.features.integration-description')} |
60 | 73 | </p> |
61 | 74 | </div> |
62 | 75 | </div> |
63 | 76 | </div> |
64 | 77 | <div class="col-md-6"> |
65 | 78 | <div class="d-flex align-items-start"> |
66 | 79 | <div class="feature-icon-small bg-primary bg-gradient text-white rounded-3 p-2 me-3"> |
67 | | - <i class="fas fa-file-alt"></i> |
| 80 | + <i class="fas fa-shield-alt"></i> |
68 | 81 | </div> |
69 | 82 | <div> |
70 | | - <h5 class="fw-bold mb-1">{$_('components.whats-new.features.cms')}</h5> |
71 | | - <p class="small text-muted mb-0"> |
72 | | - {$_('components.whats-new.features.cms-description')} |
| 83 | + <h5 class="fw-bold mb-1">{$_('components.whats-new.features.e2ee')}</h5> |
| 84 | + <p class=" mb-0"> |
| 85 | + {$_('components.whats-new.features.e2ee-description')} |
73 | 86 | </p> |
74 | 87 | </div> |
75 | 88 | </div> |
76 | 89 | </div> |
77 | 90 | </div> |
78 | | - |
79 | | - <div class="text-center"> |
80 | | - <a href="{PANO_WEBSITE_URL}/docs" target="_blank" class="btn btn-secondary px-4"> |
81 | | - <i class="fas fa-book me-2"></i> |
82 | | - {$_('buttons.see-docs')} |
83 | | - <i class="fas fa-external-link-alt ms-2 small"></i> |
84 | | - </a> |
85 | | - </div> |
86 | 91 | </div> |
87 | | - <div class="modal-footer d-flex justify-content-between align-items-center py-3 px-4"> |
88 | | - {#if $showDonotShowAgain} |
| 92 | + {#if $showDonotShowAgain} |
| 93 | + <div class="modal-footer d-flex justify-content-center align-items-center"> |
89 | 94 | <div class="form-check form-switch mb-0"> |
90 | 95 | <input |
91 | 96 | class="form-check-input" |
|
96 | 101 | {$_('components.whats-new.dont-show-again')} |
97 | 102 | </label> |
98 | 103 | </div> |
99 | | - {/if} |
100 | | - <button class="btn btn-primary px-4" type="button" on:click={handleClose}> |
101 | | - {$_('buttons.close')} |
102 | | - </button> |
103 | | - </div> |
| 104 | + </div> |
| 105 | + {/if} |
104 | 106 | </div> |
105 | 107 | </div> |
106 | 108 | </div> |
|
143 | 145 | <script> |
144 | 146 | import { onMount } from 'svelte'; |
145 | 147 | import { _ } from 'svelte-i18n'; |
| 148 | + import { base } from '$app/paths'; |
146 | 149 | import ApiUtil from '$lib/api.util.js'; |
147 | 150 | import { PANO_WEBSITE_URL } from '$lib/variables.js'; |
148 | 151 |
|
|
0 commit comments