diff --git a/index.php b/index.php index fb8d122..334b187 100644 --- a/index.php +++ b/index.php @@ -16,6 +16,11 @@ include_once 'commons/langs.php'; +

+ hasError && $contentManager->displayType == ContentDisplayType::CONTENT) { + $content = load_content_by_file_path($contentManager->contentFilepath); + if(is_null($content)) { + $contentManager->hasError = true; + $contentManager->errorMessageKey = "content.error.message.cannot.load"; + } + } + $content_error_message = localize($contentManager->errorMessageKey); - -

TODO

+ // Preparing the array of IDs + $shown_projects = ["lscom-cli-dotnet", "youtube-auto-archiver", + "excel-worksheet-password-remover", "dotnet-arguments"]; + shuffle($shown_projects); + $shown_projects = array_slice($shown_projects, 0, 4); + sort($shown_projects); + + // Printing the generic header + printMainHeader(localize("home.showcase.title")); + + // Handling the printing. + if($contentManager->hasError) { + echo('

' . $content_error_message . '

'); + } else { + //col-mobile-1 + echo('
'); + + foreach($shown_projects as $shown_project_id) { + /** @var ?ContentIndexEntry $shown_project */ + $shown_project = null; + foreach($contentManager->rootIndexEntries as $current_content) { + /** @var ContentIndexEntry $current_content */ + if(strcmp($current_content->id, $shown_project_id) == 0) { + $shown_project = $current_content; + break; + } + } + + if(is_null($shown_project)) { + continue; + } + + echo('id).'" class="bland-link">'); + echo('
'); + echo('' .
+				$shown_project->title[$user_language] . ' logo'); + echo('

' . $shown_project->title[$user_language] . '

'); + echo('

' . preg_replace('/
.*/', '', $current_content->preamble[$user_language]) . '

'); + echo('
'); + echo('
'); + } + + echo('
'); + } + ?>

@@ -47,7 +109,7 @@ include 'commons/DOM/sidebar.php';

-

+



diff --git a/resources/NibblePoker/scss/core/grid.scss b/resources/NibblePoker/scss/core/grid.scss index ec76595..be22bab 100644 --- a/resources/NibblePoker/scss/core/grid.scss +++ b/resources/NibblePoker/scss/core/grid.scss @@ -10,6 +10,12 @@ } } +@mixin grid-gap-maker($gap-size-key, $gap-size-value) { + .gap-#{$gap-size-key} { + grid-gap: #{$gap-size-value}; + } +} + // Defining rules for all devices. @include grid-col-maker("1", ""); @include grid-col-maker("2", ""); @@ -18,6 +24,18 @@ @include grid-col-maker("6", ""); @include grid-col-maker("8", ""); +@include grid-gap-maker("xs", calc(#{$grid-gap-base-size} * 0.5)); +@include grid-gap-maker("s", calc(#{$grid-gap-base-size} * 0.75)); +@include grid-gap-maker("m", #{$grid-gap-base-size}); +@include grid-gap-maker("l", calc(#{$grid-gap-base-size} * 1.5)); +@include grid-gap-maker("xl", calc(#{$grid-gap-base-size} * 2.0)); + +@media only screen and (max-width: 992px) { + @include grid-col-maker("1", "medium-"); + @include grid-col-maker("2", "medium-"); + @include grid-col-maker("3", "medium-"); +} + @media only screen and (max-width: 768px) { @include grid-col-maker("1", "mobile-"); @include grid-col-maker("2", "mobile-"); diff --git a/resources/NibblePoker/scss/css/borders.css b/resources/NibblePoker/scss/css/borders.css deleted file mode 100644 index 65626ee..0000000 --- a/resources/NibblePoker/scss/css/borders.css +++ /dev/null @@ -1,3 +0,0 @@ - - -/*# sourceMappingURL=borders.css.map */ diff --git a/resources/NibblePoker/scss/css/borders.min.css b/resources/NibblePoker/scss/css/borders.min.css deleted file mode 100644 index 38a5100..0000000 --- a/resources/NibblePoker/scss/css/borders.min.css +++ /dev/null @@ -1 +0,0 @@ -/*# sourceMappingURL=borders.min.css.map */ diff --git a/resources/NibblePoker/scss/variables.scss b/resources/NibblePoker/scss/variables.scss index 760ffd9..0bb1931 100644 --- a/resources/NibblePoker/scss/variables.scss +++ b/resources/NibblePoker/scss/variables.scss @@ -293,6 +293,8 @@ $border-base-radius: 5px; $margin-base-size: 1rem; +$grid-gap-base-size: 1rem; + $text-header-weight: 600; $size-sidebar: 15rem;