Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give blog a card on the home page #17

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: Reciprocal Space Station
plugins:
- jekyll-font-awesome-sass

port: 4500
port: 4501
16 changes: 16 additions & 0 deletions _includes/cards.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
<div class="row gx-4 gx-lg-5">

<div class="col-md-4 mb-5">
<div class="card h-100 blog">
<div class="card-body">
<h2 class="card-title">Blog</h2>
<p class="card-text">Explanations, elaborations, and more about crystallographic data analysis, written by the 1/astronauts </p>
</div>
<div class="blog-footer">

<a class="btn btn-primary btn-sm" href="/blog.html" >
See blog posts
</a>

</div>
</div>
</div>

{% for card in site.data.packages %}

<div class="col-md-4 mb-5">
Expand Down
12 changes: 11 additions & 1 deletion assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -5326,6 +5326,16 @@ fieldset:disabled .btn {
padding: 1rem 1rem;
}

.blog {
background-color: #cbe0fe ;
}

.blog-footer {
padding: 0.5rem 1rem;
background-color: #c4dbfe;
border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.card-title {
margin-bottom: 0.5rem;
}
Expand Down Expand Up @@ -5360,7 +5370,7 @@ fieldset:disabled .btn {
border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.card-footer:last-child {
.card-footer:last-child,.blog-footer:last-child {
border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
}

Expand Down
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ layout: base_page
<div class="col-md-5">
<h1 class="font-weight-light">Reciprocal Space Station</h1>
<p>Open source software for exploring reciprocal space</p>
<a class="btn btn-primary btn-sm" href="https://github.com/orgs/rs-station/repositories" >
<a class="btn btn-primary btn-sm" href="https://github.com/orgs/rs-station" >
View on GitHub
</a>
</div>
Expand Down
Loading