diff --git a/Dockerfile b/Dockerfile index d83d614..5c8961c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,11 @@ ARG uid RUN a2enmod rewrite ENV PHP_MEMORY_LIMIT=-1 +RUN apt-get -y update \ +&& apt-get install -y libicu-dev \ +&& docker-php-ext-configure intl \ +&& docker-php-ext-install intl + ENV APACHE_DOCUMENT_ROOT=/var/www/html/pub RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf diff --git a/app.php b/app.php index dc8ea5e..2a98eeb 100644 --- a/app.php +++ b/app.php @@ -6,4 +6,6 @@ require_once __DIR__ . '/lib/functions.php'; define('__ROOT__', __DIR__); -Registry::getInstance()->setContentDirectory(__ROOT__ . '/content'); \ No newline at end of file +Registry::getInstance()->setContentDirectory(__ROOT__ . '/content'); + +error_reporting(E_ALL); \ No newline at end of file diff --git a/content/data/nl.csv b/content/data/nl.csv index a438a31..e0a5baf 100644 --- a/content/data/nl.csv +++ b/content/data/nl.csv @@ -8,4 +8,5 @@ "Read more","Lees meer" "Become member","Lid worden" "Your email","Jouw emailadres" -"Pay now","Nu betalen" \ No newline at end of file +"Pay now","Nu betalen" +"Directory of Magento in Nederland","Directory van Magento in Nederland" \ No newline at end of file diff --git a/content/pages/blog.php b/content/pages/blog.php index 10d86ff..0f32417 100644 --- a/content/pages/blog.php +++ b/content/pages/blog.php @@ -4,11 +4,23 @@ $blogs = (new BlogProvider())->getBlogs(); ?> -

Nieuws

+
+
+

- -

getTitle() ?>

-

getDate() ?>

-getIntro() ?> - - + +
+

getTitle() ?>

+

getDate() ?>

+
+ getIntro() ?> +
+
+ + + +
+
+ +
+
\ No newline at end of file diff --git a/content/pages/directory.php b/content/pages/directory.php index 2f6d35e..640297c 100644 --- a/content/pages/directory.php +++ b/content/pages/directory.php @@ -7,9 +7,9 @@ $items = (new DirectoryProvider())->getDirectoryItems(); $currentSort = (isset($_GET['sort']) && $_GET['sort'] === 'name_desc') ? 'name_desc' : 'name_asc'; ?> -
+
-

Directory van Magento in Nederland ()

+

()

@@ -25,7 +25,7 @@ value="getSearch() ?>" placeholder="" onChange="form.submit()">
-
+
-
+
diff --git a/content/pages/lid-worden.php b/content/pages/lid-worden.php index acf46c1..094c908 100644 --- a/content/pages/lid-worden.php +++ b/content/pages/lid-worden.php @@ -1,39 +1,43 @@ - +
+
+ -
-
- - -
-
-
- -
-
-
+
+
+ + +
+
+
+ +
+
+
- + let form = document.getElementById('bank-form'); + form.action = url + email; + form.submit(); + } + - + +
+
diff --git a/lib/Website/Blog.php b/lib/Website/Blog.php index d450d87..94bb337 100644 --- a/lib/Website/Blog.php +++ b/lib/Website/Blog.php @@ -59,7 +59,7 @@ public function getContent(): string */ public function getTimestamp(): int { - return $this->timestamp; + return $this->timestamp ?? 0; } public function getDate(): string diff --git a/lib/Website/Page.php b/lib/Website/Page.php index ab76447..841c3b5 100644 --- a/lib/Website/Page.php +++ b/lib/Website/Page.php @@ -29,6 +29,11 @@ public function getHtml(): string $markdown = $this->getMarkdownContent(); $markdown = str_replace('---', '', $markdown); $html = MarkdownExtra::defaultTransform($markdown); + ob_start(); + include __ROOT__ .'/templates/section-html.php'; + $html = ob_get_contents(); + ob_end_clean(); + } catch (InvalidArgumentException $e) { } diff --git a/lib/functions.php b/lib/functions.php index baff5c8..79fb139 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -23,5 +23,5 @@ function markdownFile(string $fileId): string $text = file_get_contents($file); - return MarkdownExtra::defaultTransform($text); + return markdown($text); } \ No newline at end of file diff --git a/pub/style.css b/pub/style.css index 34ad9b1..0e1893b 100644 --- a/pub/style.css +++ b/pub/style.css @@ -1115,6 +1115,10 @@ video { right:0px; } +.top-2 { + top:0.5rem; +} + .bottom-0 { bottom:0px; } @@ -1147,6 +1151,10 @@ video { margin:auto; } +.m-2 { + margin:0.5rem; +} + .mx-auto { margin-left:auto; margin-right:auto; @@ -1157,6 +1165,11 @@ video { margin-right:0px; } +.my-4 { + margin-top:1rem; + margin-bottom:1rem; +} + .mb-2 { margin-bottom:0.5rem; } @@ -1165,6 +1178,14 @@ video { margin-top:1rem; } +.mt-8 { + margin-top:2rem; +} + +.mb-4 { + margin-bottom:1rem; +} + .block { display:block; } @@ -1231,8 +1252,8 @@ video { appearance:none; } -.grid-cols-5 { - grid-template-columns:repeat(5, minmax(0, 1fr)); +.grid-cols-1 { + grid-template-columns:repeat(1, minmax(0, 1fr)); } .flex-row { @@ -1293,9 +1314,9 @@ video { background-color:rgb(234 88 12 / var(--tw-bg-opacity)); } -.bg-gray-200 { +.bg-gray-100 { --tw-bg-opacity:1; - background-color:rgb(229 231 235 / var(--tw-bg-opacity)); + background-color:rgb(243 244 246 / var(--tw-bg-opacity)); } .bg-white { @@ -1332,12 +1353,16 @@ video { object-fit:cover; } +.p-8 { + padding:2rem; +} + .p-2 { padding:0.5rem; } -.p-8 { - padding:2rem; +.p-1 { + padding:0.25rem; } .p-6 { @@ -1348,10 +1373,6 @@ video { padding:1rem; } -.p-1 { - padding:0.25rem; -} - .px-4 { padding-left:1rem; padding-right:1rem; @@ -1387,6 +1408,10 @@ video { padding-bottom:2rem; } +.pt-16 { + padding-top:4rem; +} + .pt-4 { padding-top:1rem; } @@ -1411,10 +1436,6 @@ video { padding-right:0.5rem; } -.pb-16 { - padding-bottom:4rem; -} - .pb-8 { padding-bottom:2rem; } @@ -1452,6 +1473,11 @@ video { line-height:2.5rem; } +.text-2xl { + font-size:1.5rem; + line-height:2rem; +} + .text-sm { font-size:0.875rem; line-height:1.25rem; @@ -1462,11 +1488,6 @@ video { line-height:2.25rem; } -.text-2xl { - font-size:1.5rem; - line-height:2rem; -} - .text-lg { font-size:1.125rem; line-height:1.75rem; @@ -1494,6 +1515,10 @@ video { text-transform:uppercase; } +.italic { + font-style:italic; +} + .leading-tight { line-height:1.25; } @@ -1537,6 +1562,11 @@ video { color:rgb(251 146 60 / var(--tw-text-opacity)); } +.text-zinc-500 { + --tw-text-opacity:1; + color:rgb(113 113 122 / var(--tw-text-opacity)); +} + .no-underline { text-decoration-line:none; } @@ -1661,6 +1691,10 @@ video { flex:none; } + .md\:grid-cols-5 { + grid-template-columns:repeat(5, minmax(0, 1fr)); + } + .md\:py-32 { padding-top:8rem; padding-bottom:8rem; diff --git a/templates/header.php b/templates/header.php index a59fb1e..b8d663f 100644 --- a/templates/header.php +++ b/templates/header.php @@ -8,9 +8,11 @@ $menuItems = include Registry::getInstance()->getContentDirectory().'/data/topmenu.php'; ?>