|
1126 | 1126 | Maximize your investment in Sigma with easy-to-follow, step-by-step guides<br> |
1127 | 1127 | </p> |
1128 | 1128 |
|
1129 | | - <div class="featured-container" style="margin: 0 0 20px 0;"> |
1130 | | - <h4 style="margin: 0 0 10px 0; color: black !important; font-size: 1.50em; font-weight: 600;">Recently Added QuickStarts:</h4> |
| 1129 | + <div id="qs-announcement" style="display:none; margin: 0 0 20px 0; padding: 14px 18px; background-color: #e0e4ff; border: 1px solid #4245ff; border-left: 4px solid #4245ff; border-radius: 4px; color: #171717; font-size: 0.95em; line-height: 1.5;"> |
| 1130 | + <span id="qs-announcement-title" style="font-weight: 600;"></span> |
| 1131 | + <span id="qs-announcement-message"></span> |
| 1132 | + </div> |
| 1133 | + <script> |
| 1134 | + fetch('/data/announcement.json') |
| 1135 | + .then(response => response.json()) |
| 1136 | + .then(data => { |
| 1137 | + if (data.visible) { |
| 1138 | + document.getElementById('qs-announcement-title').innerHTML = data.title ? data.title + ' ' : ''; |
| 1139 | + document.getElementById('qs-announcement-message').innerHTML = data.message; |
| 1140 | + document.getElementById('qs-announcement').style.display = 'block'; |
| 1141 | + } |
| 1142 | + }) |
| 1143 | + .catch(() => {}); |
| 1144 | + </script> |
| 1145 | + |
| 1146 | + <details id="recent-qs-details" class="featured-container" style="margin: 0 0 8px 0;"> |
| 1147 | + <summary style="margin: 0 0 10px 0; color: black !important; font-size: 1.50em; font-weight: 600; cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;"> |
| 1148 | + Recently Added QuickStarts: <span id="recent-qs-hint" style="color: #4245ff; font-size: 0.65em; font-weight: 400;">▶ click to expand</span> |
| 1149 | + </summary> |
1131 | 1150 | <div id="recent-quickstarts" style="display: flex; gap: 10px; flex-wrap: wrap;"> |
1132 | 1151 | <!-- Populated by JavaScript --> |
1133 | 1152 | <div style="color: #999;">Loading recent QuickStarts...</div> |
1134 | 1153 | </div> |
1135 | | - </div> |
| 1154 | + </details> |
1136 | 1155 |
|
1137 | 1156 | <script> |
| 1157 | + document.getElementById('recent-qs-details').addEventListener('toggle', function() { |
| 1158 | + var hint = document.getElementById('recent-qs-hint'); |
| 1159 | + hint.innerHTML = this.open ? '▼ click to collapse' : '▶ click to expand'; |
| 1160 | + }); |
| 1161 | + |
1138 | 1162 | // Load featured QuickStarts from JSON |
1139 | 1163 | fetch('/data/featured-quickstarts.json') |
1140 | 1164 | .then(response => response.json()) |
@@ -1171,8 +1195,6 @@ <h4 style="margin: 0 0 10px 0; color: black !important; font-size: 1.50em; font- |
1171 | 1195 | document.getElementById('recent-quickstarts').innerHTML = '<li style="color: #999;">Unable to load recent QuickStarts</li>'; |
1172 | 1196 | }); |
1173 | 1197 | </script> |
1174 | | - </div> |
1175 | | - </p> |
1176 | 1198 |
|
1177 | 1199 |
|
1178 | 1200 | </div> |
|
0 commit comments