Skip to content

Commit 9019895

Browse files
committed
revert get-started index gallery to ec5d46f
1 parent 4e8e465 commit 9019895

File tree

2 files changed

+47
-116
lines changed

2 files changed

+47
-116
lines changed

get-started/gallery-highlight.ejs

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,55 @@
11
```{=html}
2-
<div class="container gallery-container">
3-
<div class="row g-4">
4-
<% for (const item of items) { %>
5-
<div class="col-12 col-md-6 col-lg-4">
6-
<div class="gallery-card border-0 rounded-3 shadow-sm vstack gap-1">
7-
<div class="ratio ratio-4x3 gallery-item">
8-
<img src="<%- item.thumbnail %>" alt="<%- item.title %>" />
2+
<div class="list grid" style="column-gap: 30px; grid-template-rows: auto">
3+
<% for (const item of items) { %>
4+
<div
5+
class="card gallery-entry border-0 rounded-3 g-col-12 g-col-md-6 g-col-lg-4 shadow-sm vstack gap-1"
6+
>
7+
<a href="<%- item.href %>" target="_blank">
8+
<div
9+
class="gallery-entry__img-container ratio ratio-4x3"
10+
style="
11+
background-image: url(<%- item.thumbnail %>);
12+
background-size: cover;
13+
"
14+
>
15+
<% if (item.thumbnail_alt) { %>
16+
<div class="visually-hidden"><%- item.thumbnail_alt %></div>
17+
<% } %>
18+
</div>
19+
</a>
920
10-
<div class="gallery-overlay">
11-
<a href="<%- item.code %>" target="_blank" class="gallery-btn"
12-
>Code</a
13-
>
14-
<a href="<%- item.href %>" target="_blank" class="gallery-btn"
15-
>App</a
16-
>
17-
</div>
18-
</div>
21+
<a href="<%- item.href %>" target="_blank">
22+
<h5 class="no-anchor link-dark p-2 m-0"><%= item.title %></h5>
23+
</a>
1924
20-
<div class="gallery-title"><%- item.title %></div>
21-
</div>
25+
<% if (item.publicationdate | item.description) { %>
26+
<div class="gallery-entry__body p-2">
27+
<% if (item.publicationdate) { %>
28+
<b class="listing-publicationdate"><%= item.publicationdate %></b>
29+
<% } %> <% if (item.description) { %>
30+
<span class="text-muted"><%= item.description %></span>
31+
<% } %>
2232
</div>
2333
<% } %>
34+
35+
<div class="hstack gap-2 align-items-center p-2 mt-auto">
36+
<% if (item.code) { %>
37+
<div>
38+
<a class="view-app" href="<%- item.href %>" target="_blank">View app</a>
39+
</div>
40+
<div>
41+
<a
42+
href="<%- item.code %>"
43+
title="View source code"
44+
class="source-code card-text inline-block"
45+
target="_blank"
46+
>
47+
View source
48+
</a>
49+
</div>
50+
<% } %>
51+
</div>
2452
</div>
53+
<% } %>
2554
</div>
26-
2755
```

get-started/index.qmd

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -200,103 +200,6 @@ Ready to dive deeper? [Learn more about what makes Shiny unique](what-is-shiny.q
200200
Check out the [Shiny Gallery](/gallery/) for inspiration.
201201
Or kick start a new project with one of our [starter templates](/templates/).
202202

203-
```{=html}
204-
<link
205-
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
206-
rel="stylesheet"
207-
/>
208-
209-
<style>
210-
.gallery-container {
211-
margin-top: 1rem;
212-
margin-bottom: 2rem;
213-
}
214-
215-
.gallery-card {
216-
display: flex;
217-
flex-direction: column;
218-
height: 100%;
219-
background-color: #f8f9fa;
220-
}
221-
222-
.gallery-title {
223-
width: 100%;
224-
text-align: center;
225-
font-size: 1rem;
226-
font-weight: 500;
227-
padding: 8px;
228-
min-height: 3.5rem;
229-
display: flex;
230-
align-items: center;
231-
justify-content: center;
232-
}
233-
234-
.gallery-item {
235-
position: relative;
236-
width: 100%;
237-
overflow: hidden;
238-
border-radius: 12px;
239-
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
240-
}
241-
242-
.gallery-item img {
243-
width: 100%;
244-
height: 100%;
245-
object-fit: cover;
246-
display: block;
247-
transition: opacity 0.3s ease;
248-
border-radius: 12px;
249-
}
250-
251-
.gallery-overlay {
252-
position: absolute;
253-
top: 0;
254-
left: 0;
255-
right: 0;
256-
bottom: 0;
257-
background-color: rgba(0, 0, 0, 0.4);
258-
display: flex;
259-
justify-content: center;
260-
align-items: center;
261-
gap: 20px;
262-
opacity: 0;
263-
transition: opacity 0.3s ease;
264-
border-radius: 12px;
265-
}
266-
267-
.gallery-item:hover img {
268-
opacity: 0.5;
269-
}
270-
271-
.gallery-item:hover .gallery-overlay {
272-
opacity: 1;
273-
}
274-
275-
.gallery-btn {
276-
padding: 6px 16px;
277-
font-size: 0.85rem;
278-
background-color: rgba(255, 255, 255, 0.15);
279-
color: white;
280-
border: 2px solid rgba(255, 255, 255, 0.8);
281-
text-decoration: none;
282-
font-weight: 600;
283-
border-radius: 30px;
284-
transition: all 0.25s ease;
285-
backdrop-filter: blur(4px);
286-
-webkit-backdrop-filter: blur(4px);
287-
position: relative;
288-
z-index: 1;
289-
}
290-
291-
.gallery-btn:hover {
292-
background-color: white;
293-
color: black;
294-
transform: scale(1.05);
295-
box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.3);
296-
border-color: white;
297-
}
298-
</style>
299-
```
300203

301204
:::: {.column-page-inset-right}
302205
::: {#gallery-highlight}

0 commit comments

Comments
 (0)