Skip to content

Commit fe54ba5

Browse files
committed
docs: tweak examples cta style
1 parent a21aa25 commit fe54ba5

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

docs/examples/index.qmd

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,47 +44,45 @@ def gallery_entry(src_thumbnail: str, href: str, title: str, href_ref=None, href
4444
def gallery_entry_cta():
4545
href = "https://github.com/machow/quartodoc/discussions/new?category=general&title=New%20Doc%20Site:"
4646
return f"""
47-
<div class="card border-2 rounded-3 g-col-12 g-col-sm-12 g-col-md-6 g-col-lg-4 mb-2">
47+
<div class="gallery-card-cta card border-2 rounded-3 g-col-12 g-col-sm-12 g-col-md-6 g-col-lg-4 mb-2">
4848
<a class="gallery-href" href="{href}" target="_blank">
49-
<div class="gallery-card-body gallery-card-lets-gooo">
5049
Get help creating documentation ⚡️
51-
</div>
5250
</a>
5351
</div>
5452
"""
5553
5654
print(
5755
gallery([
5856
gallery_entry(
59-
"images/siuba-home.png",
57+
"images/siuba-home.jpeg",
6058
"https://siuba.org",
6159
"Siuba",
6260
href_ref = "https://siuba.org/api",
6361
href_source = "https://github.com/machow/siuba.org",
6462
),
6563
gallery_entry(
66-
"images/pins-home.png",
64+
"images/pins-home.jpeg",
6765
"https://rstudio.github.io/pins-python",
6866
"Pins",
6967
href_ref = "https://rstudio.github.io/pins-python/reference",
7068
href_source = "http://github.com/rstudio/pins-python",
7169
),
7270
gallery_entry(
73-
"images/vetiver-home.png",
71+
"images/vetiver-home.jpeg",
7472
"https://rstudio.github.io/vetiver-python",
7573
"Vetiver",
7674
href_ref = "https://rstudio.github.io/vetiver-python/stable/reference",
7775
href_source = "https://github.com/rstudio/vetiver-python",
7876
),
7977
gallery_entry(
80-
"images/shiny-home.png",
78+
"images/shiny-home.jpeg",
8179
"https://shiny.rstudio.com/py/",
8280
"Shiny",
8381
href_ref = "https://shiny.rstudio.com/py/api",
8482
href_source = "https://github.com/rstudio/py-shiny",
8583
),
8684
gallery_entry(
87-
"images/shinyswatch-home.png",
85+
"images/shinyswatch-home.jpeg",
8886
"https://rstudio.github.io/py-shinyswatch/",
8987
"Shinyswatch",
9088
href_ref = "https://rstudio.github.io/py-shinyswatch/reference",

docs/styles.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ td:first-child a {
7171
padding-bottom: 20px;
7272
}
7373

74-
.gallery .gallery-card-lets-gooo {
74+
.gallery .gallery-card-cta {
7575
font-size: 32px;
7676
text-align: center;
7777
padding: 100px 45px 45px 45px;
7878
width: 100%;
79+
background-color: rgb(248, 249, 250);
7980
}
8081

8182
.gallery a {
@@ -95,6 +96,10 @@ td:first-child a {
9596
text-align: center;
9697
}
9798

99+
.gallery .card-header h6 {
100+
margin-top: 0.5rem;
101+
}
102+
98103
.gallery .card-header a {
99104
text-decoration: none;
100105
}

0 commit comments

Comments
 (0)