diff --git a/commons/content.php b/commons/content.php index 948cba5..c04bcc9 100644 --- a/commons/content.php +++ b/commons/content.php @@ -163,13 +163,6 @@ content_end: $content_error_message = localize($_content_error_message_key); // These function are placed here to prevent the main file from becoming impossible to read. -function printErrorCard($title, $content) { - echo('
'. - '

  '. - $title.'

'. - '

'.$content.'

'); -} - function startMainCard($iconClasses, $title, $subTitle) { echo('
'. '

This tool is intended to replace the tedious task of having to use the mode command, and the Device Manager to find a newly plugged-in device that provides a COM port.", + "fr": "..." + }, + "image": "/resources/Azias/imgs/lscom-v2-text-01.png", + "tags": [ + "programming", "docker" + ] } ] \ No newline at end of file diff --git a/content/index.php b/content/index.php index 7bd5682..8088f80 100644 --- a/content/index.php +++ b/content/index.php @@ -28,7 +28,7 @@ if($content_has_error) { } } -// TODO: Check if it went well, else 503 or something like - Done above ?. +// TODO: Check if it went well, else 503 or something like - Done above ?. - What is this shit supposed to mean ?!? ?> @@ -86,38 +86,46 @@ if($content_has_error) { // Checking if an error occurred. if($content_error_code != 200) { - printErrorCard(localize('error.content.title.generic'), $content_error_message); + startMainCard("fad fa-exclamation-triangle", localize('error.content.title.generic'), ""); + echo('
'); + echo('

'.$content_error_message.'

'); + echo('
'); + echo('
'. + '

'. + 'Card footer here.'. + '

'); + endMainCard(); goto content_printing_end; } // Printing the containers if($requested_content_display_type == ContentDisplayType::SEARCH) { - startMainCard("fad fa-file-search", localize("content.title.search"), - strval(count($filtered_content_index_data)) . " " . - (count($filtered_content_index_data) > 1 ? - localize("content.search.count.multiple") : - localize("content.search.count.single"))); + // Creating the start of the card, only a "

" should be required afterward. + startMainCard( + "fad fa-file-search", + localize("content.title.search"), + strval(count($filtered_content_index_data)) . " " . + (count($filtered_content_index_data) > 1 ? + localize("content.search.count.multiple") : + localize("content.search.count.single"))); echo('
'); for($i = 0; $i < count($filtered_content_index_data); $i++) { if($i > 0) { echo(''); } echo('
'); - - - echo('
'); - - echo('
'); - echo(''); + + // https://css-tricks.com/float-an-element-to-the-bottom-corner/ + echo(''); - - echo('
'); - echo('

'.$filtered_content_index_data[$i]["title"][$user_language].'

'); - echo('

'.$filtered_content_index_data[$i]["preamble"][$user_language].'

'); - echo('
'); - - echo('
'); - + echo('
'); echo('
'); diff --git a/index.php b/index.php index 4fd05f4..25c12ad 100644 --- a/index.php +++ b/index.php @@ -29,6 +29,7 @@ include_once 'langs.php';
+
diff --git a/resources/Azias/css/nibblepoker.lu.css b/resources/Azias/css/nibblepoker.lu.css index 5830318..4b1e5b4 100644 --- a/resources/Azias/css/nibblepoker.lu.css +++ b/resources/Azias/css/nibblepoker.lu.css @@ -111,8 +111,40 @@ hr, hr.dark-mde, hr.subtle { margin-bottom: 5px; } +div.content-presentation-container { + margin-bottom: 10px; + min-height: 128px; + display: flex; +} +div.content-presentation-container > a { + width: 100%; + min-height: 128px; + text-align: justify; + color: var(--dm-card-text-color); +} +div.content-presentation-container > a:hover { + color: var(--dm-card-text-color); + text-decoration: none; +} +div.content-search-image-container { + background: var(--dm-card-bg-color) url("/resources/Azias/imgs/3px-tile-0.2.png") repeat fixed center center; + box-shadow: inset 0 0 25px 1px rgba(255,255,255,0.05); + border-radius: 8px; + width: 128px; + height: 128px; + margin-right: 10px; + float: left; +} img.content-search-image { + max-width: 128px; max-height: 128px; + border-radius: 8px; + box-shadow: 0 0 5px 1px rgba(0,0,0,0.3); +} +h3.content-search-title { + float: none; + margin: 0; + text-align: left; } div.content-tag-container a:not(:first-child) { margin-left: 10px; diff --git a/resources/Azias/imgs/icon-maker.png b/resources/Azias/imgs/icon-maker.png new file mode 100644 index 0000000..e3a6114 Binary files /dev/null and b/resources/Azias/imgs/icon-maker.png differ diff --git a/resources/Azias/imgs/lscom-v1.png b/resources/Azias/imgs/lscom-v1.png new file mode 100644 index 0000000..ba7e371 Binary files /dev/null and b/resources/Azias/imgs/lscom-v1.png differ diff --git a/resources/Azias/imgs/lscom-v2-numbers-01.png b/resources/Azias/imgs/lscom-v2-numbers-01.png new file mode 100644 index 0000000..a04ebd3 Binary files /dev/null and b/resources/Azias/imgs/lscom-v2-numbers-01.png differ diff --git a/resources/Azias/imgs/lscom-v2-text-01.png b/resources/Azias/imgs/lscom-v2-text-01.png new file mode 100644 index 0000000..ff01f07 Binary files /dev/null and b/resources/Azias/imgs/lscom-v2-text-01.png differ diff --git a/sitemap.txt b/sitemap.txt index 7fabd61..b9b7765 100644 --- a/sitemap.txt +++ b/sitemap.txt @@ -1,17 +1,42 @@ https://nibblepoker.lu/ https://nibblepoker.lu/blog/ https://nibblepoker.lu/programming/ -https://nibblepoker.lu/programming/purebasic/ -https://nibblepoker.lu/programming/java/ -https://nibblepoker.lu/programming/python/ https://nibblepoker.lu/programming/applications/ -https://nibblepoker.lu/programming/tools/ https://nibblepoker.lu/programming/tutorials/ -https://nibblepoker.lu/electronics/ -https://nibblepoker.lu/electronics/iot/ -https://nibblepoker.lu/electronics/experiments/ -https://nibblepoker.lu/electronics/ham/ +https://nibblepoker.lu/programming/tools/ +https://nibblepoker.lu/programming/purebasic/ +https://nibblepoker.lu/programming/python/ +https://nibblepoker.lu/programming/docker/ +https://nibblepoker.lu/programming/java/ https://nibblepoker.lu/links/ https://nibblepoker.lu/about/ https://nibblepoker.lu/contact/ https://nibblepoker.lu/privacy/ +https://nibblepoker.lu/en/ +https://nibblepoker.lu/en/blog/ +https://nibblepoker.lu/en/programming/ +https://nibblepoker.lu/en/programming/applications/ +https://nibblepoker.lu/en/programming/tutorials/ +https://nibblepoker.lu/en/programming/tools/ +https://nibblepoker.lu/en/programming/purebasic/ +https://nibblepoker.lu/en/programming/python/ +https://nibblepoker.lu/en/programming/docker/ +https://nibblepoker.lu/en/programming/java/ +https://nibblepoker.lu/en/links/ +https://nibblepoker.lu/en/about/ +https://nibblepoker.lu/en/contact/ +https://nibblepoker.lu/en/privacy/ +https://nibblepoker.lu/fr/ +https://nibblepoker.lu/fr/blog/ +https://nibblepoker.lu/fr/programming/ +https://nibblepoker.lu/fr/programming/applications/ +https://nibblepoker.lu/fr/programming/tutorials/ +https://nibblepoker.lu/fr/programming/tools/ +https://nibblepoker.lu/fr/programming/purebasic/ +https://nibblepoker.lu/fr/programming/python/ +https://nibblepoker.lu/fr/programming/docker/ +https://nibblepoker.lu/fr/programming/java/ +https://nibblepoker.lu/fr/links/ +https://nibblepoker.lu/fr/about/ +https://nibblepoker.lu/fr/contact/ +https://nibblepoker.lu/fr/privacy/