Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 1aa5a4ae authored by peter_rabbit's avatar peter_rabbit
Browse files

fix-soft article placeholder

parent 7fc839b2
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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) {
......
......@@ -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) {
......
......@@ -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;
......
......@@ -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;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment