From 50453552d2578a02a8ba3d1ab80cb40af29217a4 Mon Sep 17 00:00:00 2001 From: That_One_Nerd Date: Mon, 1 May 2023 10:24:05 -0400 Subject: [PATCH] small summary of stuff --- css/index.css | 9 +++++++ data/news.json | 5 ++++ js/index.js | 8 ++++-- news/ap-exam.html | 63 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 news/ap-exam.html diff --git a/css/index.css b/css/index.css index f8be065..c6547b1 100644 --- a/css/index.css +++ b/css/index.css @@ -21,6 +21,15 @@ width: 45%; } +#ap-timer +{ + color: #fff; +} +#ap-timer::after +{ + background-color: rgba(0, 0, 0, 0); +} + #news-nerd_stf { padding-bottom: 41vw; diff --git a/data/news.json b/data/news.json index 24a2872..8ec3b4a 100644 --- a/data/news.json +++ b/data/news.json @@ -10,6 +10,11 @@ "id": "quick-update-4-22-23", "name": "Just a quick update for the projects.", "date": "4/22/2023" + }, + { + "id": "ap-exam", + "name": "The AP Computer Science exam is right around the corner!", + "date": "5/1/2023" } ] } diff --git a/js/index.js b/js/index.js index 96d0be1..2edd8f8 100644 --- a/js/index.js +++ b/js/index.js @@ -5,6 +5,11 @@ const examStart = new Date("May 3, 2023 12:00"); const examEnd = new Date("May 3, 2023 15:15"); const examElement = document.createElement("h3"); +const examLink = document.createElement("a"); +examElement.append(examLink); +examLink.href = "/news/ap-exam.html"; +examLink.id = "ap-timer"; +examLink.target = "_blank"; if (title != undefined) { // Add the newly created AP exam countdown element. @@ -58,6 +63,5 @@ function updateCountdown() string += " since the AP exam has been completed!"; break; } - - examElement.textContent = string; + examLink.textContent = string; } diff --git a/news/ap-exam.html b/news/ap-exam.html new file mode 100644 index 0000000..8b4d0c0 --- /dev/null +++ b/news/ap-exam.html @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + A Quick Update | That_One_Nerd + + + + + +
+

The AP Computer Science exam is right around the corner!

+
+ +
+
+ +
+

+ Not sure if it's obvious or not, but I enjoy computer science. It's my thing. + So I'm in some computer science classes at my school, and guess when the AP + exam for one of them is? I mean, if you saw the home page, I guess you already + know. It's on the third of May at 12:00 PM Eastern Time. Now, I hear many of you + asking, "Why should I care?" +

+

+ You have no reason to. +

+

+ Anyway, that's basically all I have to say. Probably shouldn't have made a + full-scale news page for this, but here we are. +

+

+ That's everything. Goodbye. +

+

+ - Kyle +

+
+ +
+

Want to read more? See all the news

+

Done? Head back home

+
+ +
+
+ + + + + + +