Skip to content

blog page #61

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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: 2 additions & 0 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const Header: React.FC = () => {
[`fw-bold ${styles.active}`]: useIsActive([
"/about",
"/research",
"/blog",
]),
})}
>
Expand All @@ -177,6 +178,7 @@ export const Header: React.FC = () => {
<Dropdown.Menu>
<NavDropdownItem href="/about">About Us</NavDropdownItem>
<NavDropdownItem href="/research">Research</NavDropdownItem>
<NavDropdownItem href="/blog">Blog</NavDropdownItem>
</Dropdown.Menu>
</Dropdown>
<li className="nav-item">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/lib/images/blog/asee2023-booth.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
76 changes: 76 additions & 0 deletions src/lib/images/blog/fie23_logo_84b4f621ef.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/lib/images/blog/image.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/pages/blog/index.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@import "~bootstrap/scss/_functions.scss";
@import "~bootstrap/scss/_variables.scss";

.container {
background-color: $gray-200;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
grid-gap: 1rem;
}
143 changes: 143 additions & 0 deletions src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
import React from "react";
import classnames from "classnames";
import Head from "next/head";
import Link from "next/link";
import Image, { ImageProps } from "next/image";
import { PageBanner } from "../../components/Banner";
import { DemoCourseCTA } from "../../components/DemoCourse";
import { Heading } from "../../components/Heading";

import styles from "./index.module.scss";

import placeholder from "../../lib/images/blog/image.jpeg";
import fie2023 from "../../lib/images/blog/fie23_logo_84b4f621ef.svg";
import asee2023 from "../../lib/images/blog/asee2023-booth.jpg";
import nsf from "../../lib/images/blog/NSF_Official_logo_High_Res_1200ppi.png";

interface NewsCardProps {
date: string;
image: ImageProps["src"];
title: string;
href: string;
children: React.ReactNode;
}

const NewsCard: React.FC<NewsCardProps> = ({
date,
image,
title,
href,
children,
}) => {
return (
<article className="card border-secondary overflow-hidden">
<Link href={href} className="position-relative">
<Image
src={image}
alt={title}
style={{
// objectFit: "contain",
width: "100%",
height: "100%",
// aspectRatio: "5 / 3",
}}
/>
</Link>
<div className="card-body">
<p className="mb-1">
<strong>{date}</strong>
</p>
<Link
href={href}
style={{ color: "inherit", textDecoration: "inherit" }}
>
<Heading>{title}</Heading>
</Link>
{children}
</div>
</article>
);
};

export default function About() {
return (
<React.Fragment>
<Head>
<title>About | PrairieLearn</title>
</Head>

<PageBanner
title="Blog"
subtitle="Get updates about new features, publications, conference presence and more!"
/>

<div className={classnames("container-fluid my-5")}>
<div className="container-md">
<div className={styles.grid}>
<NewsCard
date="March 20-23, 2024"
image={placeholder}
title="SIGCSE 2024"
href=" "
>
<p className="mb-0">
We will be at SIGCSE 2024! Stop by our booth and check our
affiliated section.
</p>
</NewsCard>
<NewsCard
date="October 18-21, 2023"
image={fie2023}
title="FIE 2023"
href=" "
>
<p className="mb-0">
We will be at FIE 2023! Stop by our booth if you are planning to
attend and come back here later for updates.
</p>
</NewsCard>
<NewsCard
date="August 8-10, 2023"
image={placeholder}
title="ICER 2023"
href=" "
>
<p className="mb-0">
Read about the research studies using PrairieLearn data
presented at the conference.
</p>
</NewsCard>
<NewsCard
date="August 4, 2023"
image={nsf}
title="NSF SBIR Award"
href=" "
>
<p className="mb-0">
Read about the research studies using PrairieLearn data
presented at the conference.
</p>
</NewsCard>
<NewsCard
date="June 25-28, 2023"
image={asee2023}
title="ASEE 2023"
href=" "
>
<p className="mb-0">
PrairieLearn Inc. had its first conference booth! We had a great
time talking with many educators and attending excellent talks!
</p>
</NewsCard>
</div>
</div>
</div>

<DemoCourseCTA
title="View demo course!"
subtitle="Explore the demo course to see how this all comes together"
buttonLabel="Demo course"
/>
</React.Fragment>
);
}