diff --git a/public/index.html b/public/index.html
index 182c953..f191e22 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,6 +8,10 @@
+
+
+
+
diff --git a/src/App.js b/src/App.js
index d0e621b..b889942 100644
--- a/src/App.js
+++ b/src/App.js
@@ -5,14 +5,15 @@ import Footer from './components/Footer';
import ArticleGrid from "./components/articlegrid/articlegrid";
function App() {
- const [ data, setData ] = useState(null);
-
- useEffect(() => {
- fetch("https://kerckhoff.dailybruin.com/api/packages/flatpages/elections-package-24-25")
- .then(res => res.json())
- .then(res => setData(res.data['article.aml']))
- }, [])
+ const [data, setData] = useState(null);
+ useEffect(() => {
+ fetch(
+ "https://kerckhoff.dailybruin.com/api/packages/flatpages/elections-package-24-25"
+ )
+ .then((res) => res.json())
+ .then((res) => setData(res.data["article.aml"]));
+ }, []);
return data && (
diff --git a/src/components/ArticleCard.js b/src/components/ArticleCard.js
new file mode 100644
index 0000000..c4fd1a5
--- /dev/null
+++ b/src/components/ArticleCard.js
@@ -0,0 +1,55 @@
+import styled from "styled-components";
+
+const ArticleContainer = styled("div")`
+ display: flex;
+ flex-direction: row;
+ text-align: left;
+ gap: 5%;
+ color: #000;
+ font-family: Poppins;
+ font-style: normal;
+ margin: 2%;
+ background: white;
+`;
+
+const TitleContainer = styled("div")`
+ font-size: 33px;
+ font-weight: 500;
+ line-height: 43px; /* 130.303% */
+ &:hover {
+ text-decoration: underline;
+ }
+`;
+
+const ImgContainer = styled("div")`
+ border: 2px solid #000;
+ background: #949494;
+ width: 400.361px;
+ height: 300px;
+ display: flex;
+ flex-shrink: 0;
+`;
+
+const ArticleCard = ({ props }) => {
+ return (
+
+
+
+
+
+
{props.article_title}
+
+ {props.article_byline}
+
+ {props.article_url}
+
+
+
+ );
+};
+
+export default ArticleCard;