From 2d9757a346bba0054e268ca1db73f32f278162e6 Mon Sep 17 00:00:00 2001 From: Brendan <94894839+abrendan@users.noreply.github.com> Date: Thu, 28 Nov 2024 21:32:33 +0000 Subject: [PATCH] Initial commit --- .gitignore | 1 + .replit | 10 ++++ index.html | 77 +++++++++++++++++++++++++ script.js | 161 +++++++++++++++++++++++++++++++++++++++++++++++++++++ style.css | 28 ++++++++++ 5 files changed, 277 insertions(+) create mode 100644 .gitignore create mode 100644 .replit create mode 100644 index.html create mode 100644 script.js create mode 100644 style.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..40b878d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/.replit b/.replit new file mode 100644 index 0000000..8ad9e5f --- /dev/null +++ b/.replit @@ -0,0 +1,10 @@ +entrypoint="index.html" +hidden=[".config"] +modules = ["web:v2-20230623-0b7a606"] + +[nix] +channel = "stable-23_11" + +[deployment] +publicDir = "/" +deploymentTarget = "static" diff --git a/index.html b/index.html new file mode 100644 index 0000000..bcdc1b1 --- /dev/null +++ b/index.html @@ -0,0 +1,77 @@ + + +
+ + +${article.description || 'No description available.'}
+ ${buttonHtml} +${article.content || 'No content available.'}
+ `; + + fullArticleLink.href = article.url || '#'; + fullArticleLink.style.display = article.url ? 'block' : 'none'; + + $('#articleModal').modal('show'); +} \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..3e04c4e --- /dev/null +++ b/style.css @@ -0,0 +1,28 @@ +.card-horizontal { + display: flex; + flex-direction: row; + align-items: center; +} + +.card-horizontal img { + width: 337px; + height: 200px; + margin-right: 15px; + object-fit: cover; +} + +.modal-body img { + max-width: 100%; + height: auto; + margin-bottom: 15px; +} + +.modal-dialog { + max-width: 800px; +} + +.article-metadata { + color: #666; + font-size: 0.9em; + margin-bottom: 15px; +} \ No newline at end of file