Skip to content

Commit a073921

Browse files
committed
Press Page
1 parent 2ed29fd commit a073921

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

data/articles.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,17 @@
44
"summary": "Local Blogger Dan Woog writes about the FPA in his blog \"06880\"",
55
"link": "https://06880danwoog.com/2023/07/28/gfa-programming-program-goes-global/",
66
"photo": "https://i0.wp.com/06880danwoog.com/wp-content/uploads/2023/07/Fairfield-Programming-Association-1.jpg?resize=1024%2C785&ssl=1"
7+
},
8+
{
9+
"title": "Challenging Intellectual Property in the Coding Game",
10+
"summary": "Will McGonagle ‘23 and Neil Chaudhari ‘24 Found a Non-Profit Aimed to Bring Equity to the World of Programming",
11+
"link": "https://www.gfacademy.org/community/news/single-post/~board/news/post/challenging-intellectual-property-in-the-coding-game-will-mcgonagle-23-and-neil-choudhari-24-found-a-non-profit-aimed-to-bring-equity-to-the-world-of-programming",
12+
"photo": "https://resources.finalsite.net/images/f_auto,q_auto/v1680289251/greenfarms/lse9d90ndh2swie4sqdu/ScreenShot2023-03-31at25655PM.png"
13+
},
14+
{
15+
"title":"Coding to Build Community",
16+
"summary": "“Our vision is to spread computer science education throughout Fairfield County in a way that is fun and accessible”",
17+
"link":"https://www.gfacademy.org/community/news/single-post/~board/news/post/coding-to-build-community",
18+
"photo":"https://resources.finalsite.net/images/f_auto,q_auto/v1644949063/greenfarms/otdv3ly3winreahdllof/image0.jpg"
719
}
820
]

src/components/article.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ function Article({title, summary, link, photo}){
66

77
let slug = title.toLowerCase()
88
let description = summary.split(" ").slice(0, 40).join(" ")
9-
9+
/*
1010
return (
11+
1112
<Link className="block w-full h-full" to={`/team/${slug}`}>
1213
<div className="rounded shadow p-4 h-full">
1314
<img src={photo} class="rounded-full w-1/2 mb-4" />
@@ -24,5 +25,25 @@ function Article({title, summary, link, photo}){
2425
</a>
2526
</Link>
2627
)
28+
*/
29+
return(
30+
<div class="max-w-sm bg-white border border-gray-200 rounded-lg shadow dark:bg-gray-800 dark:border-gray-700">
31+
32+
<img class="rounded-t-lg" src={photo} alt="" />
33+
34+
<div class="p-5">
35+
36+
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">{title}</h5>
37+
38+
<p class="mb-3 font-normal text-gray-700 dark:text-gray-400">{description}</p>
39+
<a href={link} class="inline-flex items-center px-3 py-2 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">
40+
Read more
41+
<svg class="w-3.5 h-3.5 ml-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10">
42+
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5h12m0 0L9 1m4 4L9 9"/>
43+
</svg>
44+
</a>
45+
</div>
46+
</div>
47+
)
2748
}
2849
export default Article

src/pages/press.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function PressPage({location}) {
1212
<Layout location={location} crumbLabel="Press">
1313
<section>
1414
<div
15-
class="mx-auto max-w-screen-xl px-4 py-48 lg:flex lg:items-center"
15+
class="mx-auto max-w-screen-xl px-4 py-20 lg:flex lg:items-center"
1616
>
1717
<div class="mx-auto max-w-4xl text-center">
1818
<h1 class="text-3xl font-extrabold sm:text-5xl">

0 commit comments

Comments
 (0)