diff --git a/public/games/games.js b/public/games/games.js index e54dd2cbcce4a6fe88ff7d95851a4a097a791358..8daf77ab783450ebe5e24079e3213395169c4baf 100644 --- a/public/games/games.js +++ b/public/games/games.js @@ -91,18 +91,7 @@ module.exports = ImageCarousel; const { fetchjson, fetchtext } = require("./fetch"); function getArticleBody(text) { - return text - // .split(" ") - // .map(word => { - // if (word.includes("http://") || word.includes("https://")) { - // const splitword = word.split("||"); - // const href = splitword[0].match(/http.+/); - // const text = splitword.length > 1 ? splitword[1].replaceAll("_", " ") : href; - // return word.replace(/http.*/, `<a href=${href} target="_blank">${text}</a>`); - // } else return word; - // }) - // .join(" ") - .replaceAll("\n", "<br/>"); + return text.replaceAll("\n", "<br/>"); } function getArticleDate(date) { diff --git a/public/main.js b/public/main.js index ca3e73e8431ceb60b5057f59fbf27db42c4d9d5d..cfc51497d1f6ccffe3400cb73638fb7368787a62 100644 --- a/public/main.js +++ b/public/main.js @@ -377,18 +377,7 @@ module.exports = HomePage; const { fetchjson, fetchtext } = require("./fetch"); function getArticleBody(text) { - return text - // .split(" ") - // .map(word => { - // if (word.includes("http://") || word.includes("https://")) { - // const splitword = word.split("||"); - // const href = splitword[0].match(/http.+/); - // const text = splitword.length > 1 ? splitword[1].replaceAll("_", " ") : href; - // return word.replace(/http.*/, `<a href=${href} target="_blank">${text}</a>`); - // } else return word; - // }) - // .join(" ") - .replaceAll("\n", "<br/>"); + return text.replaceAll("\n", "<br/>"); } function getArticleDate(date) { diff --git a/public/software-development/software-development.js b/public/software-development/software-development.js index 120b6c57fde385e21caf70bdfce55f1f6b037aef..5a8b60eb6a6d31aadf15801663ab322d390b3982 100644 --- a/public/software-development/software-development.js +++ b/public/software-development/software-development.js @@ -91,18 +91,7 @@ module.exports = ImageCarousel; const { fetchjson, fetchtext } = require("./fetch"); function getArticleBody(text) { - return text - // .split(" ") - // .map(word => { - // if (word.includes("http://") || word.includes("https://")) { - // const splitword = word.split("||"); - // const href = splitword[0].match(/http.+/); - // const text = splitword.length > 1 ? splitword[1].replaceAll("_", " ") : href; - // return word.replace(/http.*/, `<a href=${href} target="_blank">${text}</a>`); - // } else return word; - // }) - // .join(" ") - .replaceAll("\n", "<br/>"); + return text.replaceAll("\n", "<br/>"); } function getArticleDate(date) { diff --git a/public/style/style.css b/public/style/style.css index 18d3a29f0731796f9c387895869e338c222bbc8f..18e414800bf9e2e0cc72387c02f6c9b9f4c68909 100644 --- a/public/style/style.css +++ b/public/style/style.css @@ -1068,6 +1068,11 @@ main #page-container #software-page .software-articles article.software-article grid-column: 1; } } +main #page-container #software-page .software-articles article.placeholder { + background-color: #d4d9dd; + height: 400px; + margin: 30px; +} main footer { display: flex; justify-content: center; diff --git a/src/pages/software-development/software-development.scss b/src/pages/software-development/software-development.scss index 61132cfa90b5b05491eeb1753de419243dd4ea6a..e5a78861ea0b35d8d707eebbb08942d9f3e5e07b 100644 --- a/src/pages/software-development/software-development.scss +++ b/src/pages/software-development/software-development.scss @@ -87,6 +87,7 @@ } } } + @media screen and (max-width: $page_contents_center_width) { margin: 30px 20px; } @@ -104,5 +105,10 @@ } } } + article.placeholder { + background-color: $light_0; + height: 400px; + margin: 30px; + } } }