Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vgulkorobo committed Oct 18, 2023
2 parents b0fce9e + 83c2ae4 commit 770eb6f
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 130 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
262 changes: 139 additions & 123 deletions package-lock.json

Large diffs are not rendered by default.

24 changes: 17 additions & 7 deletions src/components/news/Paginator.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,22 @@ if (currPost < 5) {
nav a {
margin-right: 0 !important;
}

.page-link {
color: #e00 !important;
}

.active {
background-color: #e00 !important;
border-color: #e00 !important;
color: white !important;
}
</style>

<nav aria-label="...">
<ul class="pagination justify-content-center">
<li class={currPost - 1 != 0 ? "page-item" : "page-item disabled"}>
<a class="page-link" href={"/news/" + String(currPost - 1)}>&laquo;</a>
<li class={currPost - 1 != 0 ? 'page-item' : 'page-item disabled'}>
<a class="page-link" href={'/news/' + String(currPost - 1)}>&laquo;</a>
</li>
{
currPost > 4 && (
Expand All @@ -43,8 +53,8 @@ if (currPost < 5) {
shownPages.map((num: number) => (
<li class="page-item">
<a
class={num != currPost ? "page-link" : "page-link active"}
href={"/news/" + String(num)}
class={num != currPost ? 'page-link' : 'page-link active'}
href={'/news/' + String(num)}
>
{num}
</a>
Expand All @@ -60,10 +70,10 @@ if (currPost < 5) {
}
<li
class={currPost < numPages[numPages.length - 1]
? "page-item"
: "page-item disabled"}
? 'page-item'
: 'page-item disabled'}
>
<a class="page-link" href={"/news/" + String(currPost + 1)}>&raquo;</a>
<a class="page-link" href={'/news/' + String(currPost + 1)}>&raquo;</a>
</li>
</ul>
</nav>
9 changes: 9 additions & 0 deletions src/content/news/2023-09-21-summer-newsletter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: $layouts/Post.astro
title: Summer Newsletter
author: StuyPulse
link: https://stuypulse.nyc3.cdn.digitaloceanspaces.com/site/pdf/StuyPost%20September%202023.pdf
date: 2023-09-21
---

Check out our Summer Newsletter right [here](https://stuypulse.nyc3.cdn.digitaloceanspaces.com/site/pdf/StuyPost%20September%202023.pdf)!
2 changes: 2 additions & 0 deletions src/data/frontCarousel.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Carousel items on front page
# There can be as many items as you want (at least 1).

- img: https://stuypulse.nyc3.cdn.digitaloceanspaces.com/site/img/carousel/InterestMeet2023.webp
caption: Stuyvesant Robotics Interest Meeting 2023
- img: https://stuypulse.nyc3.cdn.digitaloceanspaces.com/site/img/carousel/IRI2022.JPG
caption: StuyPulse at IRI 2022 in Indianapolis!
- img: https://stuypulse.nyc3.cdn.digitaloceanspaces.com/site/img/carousel/Extravaganza2022.JPG
Expand Down

0 comments on commit 770eb6f

Please sign in to comment.