Skip to content
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
25 changes: 25 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added frontend/public/ai_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions frontend/src/Components/Article/ImageBanner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Image } from "react-bootstrap";
//Image Banner component
export default function ImageBanner({ image, alt_text }) {
return <Image src={image} alt={alt_text} fluid className="article-image-banner"/>;
}
20 changes: 20 additions & 0 deletions frontend/src/css/custom.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src/css/custom.css.map

Large diffs are not rendered by default.

66 changes: 30 additions & 36 deletions frontend/src/pages/ArticleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@ import ArticleHeader from "../Components/Article/ArticleHeader/ArticleHeader";
import BodySection from "../Components/Article/BodySection";
import Header from "../Components/Header";
import TopicList from "../Components/Article/Topics/TopicList";
import ImageBanner from "../Components/Article/ImageBanner";
//ONLY for displaying article components until we can construct the full page
export default function ArticleExample() {
return (
<>
<Header />

<div
style={{
marginTop: "3rem",
display: "flex",
flexDirection: "column",
padding: "0 1rem",
}}
>
<div style={{ width: "100%" }}>
<div style={{ width: "100%" }}>
<ImageBanner image={"/ai_image.jpg"} alt_text={"AI-image"} />
<div style={{ padding: "0 2rem" }}>
<ArticleHeader
title={"Intro to Machine Learning"}
description={
Expand All @@ -25,34 +20,33 @@ export default function ArticleExample() {
author={"David Lam"}
date={"October 29, 2023"}
/>
</div>

<div style={{ display: "flex", marginTop:"2rem" }}>
<div style={{ width: "70%" }}>
<BodySection
title={"Introduction"}
body={
"Machine Learning has rapidly become a cornerstone of modern technological advancement, permeating various sectors and reshaping the way we perceive and interact with data. In this era of big data, understanding the basics of Machine Learning has become imperative for professionals across diverse fields, from business to healthcare and beyond. By harnessing the power of algorithms and data, Machine Learning enables systems to learn from experience and improve their performance over time without explicit programming.This introductory guide aims to provide a comprehensive overview of the fundamental concepts of Machine Learning, delving into its significance, various algorithms, real-world applications, challenges, ethical considerations, and the promising future it holds."
}
/>
</div>
<div style={{ display: "flex", marginTop: "2rem" }}>
<div style={{ width: "70%" }}>
<BodySection
title={"Introduction"}
body={
"Machine Learning has rapidly become a cornerstone of modern technological advancement, permeating various sectors and reshaping the way we perceive and interact with data. In this era of big data, understanding the basics of Machine Learning has become imperative for professionals across diverse fields, from business to healthcare and beyond. By harnessing the power of algorithms and data, Machine Learning enables systems to learn from experience and improve their performance over time without explicit programming.This introductory guide aims to provide a comprehensive overview of the fundamental concepts of Machine Learning, delving into its significance, various algorithms, real-world applications, challenges, ethical considerations, and the promising future it holds."
}
/>
</div>

<div style={{ width: "30%" }}>
<TopicList
topicCategory={"Foundational Concepts"}
topicList={[
{
topic:
"Artificial Intelligence (AI) and its Intersection with Machine Learning",
link: "/",
},
{
topic:
"Data Preprocessing and Feature Engineering in Machine Learning",
link: "/",
},
]}
/>
<div style={{ width: "30%" }}>
<TopicList
topicCategory={"Foundational Concepts"}
topicList={[
{
topic:
"Artificial Intelligence (AI) and its Intersection with Machine Learning",
link: "/",
},
{
topic:
"Data Preprocessing and Feature Engineering in Machine Learning",
link: "/",
},
]}
/>
</div>
</div>
</div>
</div>
Expand Down
18 changes: 18 additions & 0 deletions frontend/src/scss/ArticleComponents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,21 @@
.section-header {
width: calc(100% - 0.7rem);
}

//Image Banner
.article-image-banner {
width: 100%;
object-fit: cover;
height: 25vh;
max-height: 400px;
min-height: 300px;

@media screen and (max-width: 800px) {
min-height: 200px;
max-height: 300px;
}
@media screen and (max-width: 500px) {
min-height: 100px;
max-height: 150px;
}
}