Skip to content

Commit

Permalink
Homepage integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tresor-ilunga committed Oct 6, 2023
1 parent 3566a43 commit 8bcafc9
Show file tree
Hide file tree
Showing 18 changed files with 14,859 additions and 1,355 deletions.
13,202 changes: 13,202 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"simplebar": "^6.2.5",
"stimulus": "^3.2.1",
"stimulus-use": "^0.52.0",
"sweetalert2": "^11.7.18",
"sweetalert2": "^11.6.13",
"tom-select": "^2.2.2"
},
"overrides": {
Expand Down
Binary file added public/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/frameLight.webp
Binary file not shown.
Binary file added public/images/framweDark.webp
Binary file not shown.
Binary file added public/images/image1.webp
Binary file not shown.
Binary file added public/images/students_learning.webp
Binary file not shown.
Binary file added public/logos/clubdiaspora.webp
Binary file not shown.
Binary file added public/logos/congomemoire.webp
Binary file not shown.
Binary file added public/logos/goodbytes.webp
Binary file not shown.
Binary file added public/logos/majestic.webp
Binary file not shown.
6 changes: 3 additions & 3 deletions public/sw.js

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions src/Infrastructure/Shared/Twig/AppHomeHeader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Infrastructure\Shared\Twig;

use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;

/**
* Class AppHeader.
*
* @author bernard-ng <[email protected]>
*/
#[AsTwigComponent(template: '@app/shared/component/header_home.html.twig')]
final class AppHomeHeader
{
}
19 changes: 5 additions & 14 deletions templates/app/domain/home.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Rejoindre maintenant
</span>
</a>
<a href="#" class="btn btn-md before:border before:border-bdr text-fg-heading3">
<a href="{{ path('auth_login') }}" class="btn btn-md before:border before:border-bdr text-fg-heading3">
<span class="relative z-[6]">
Se connecter
</span>
Expand Down Expand Up @@ -54,25 +54,16 @@
</h1>
<div class="flex justify-center flex-wrap gap-4">
<div class="p-2">
<img src="/logos/beserved.png" alt="logo " width="600" class="w-auto h-9 max-w-full">
<img src="/logos/clubdiaspora.webp" alt="logo " width="600" class="w-auto h-9 max-w-full">
</div>
<div class="p-2">
<img src="/logos/beserved.png" alt="logo " width="600" class="w-auto h-9 max-w-full">
<img src="/logos/majestic.webp" alt="logo " width="600" class="w-auto h-9 max-w-full">
</div>
<div class="p-2">
<img src="/logos/beserved.png" alt="logo " width="600" class="w-auto h-9 max-w-full">
<img src="/logos/congomemoire.webp" alt="logo " width="600" class="w-auto h-9 max-w-full">
</div>
<div class="p-2">
<img src="/logos/beserved.png" alt="logo " width="600" class="w-auto h-9 max-w-full">
</div>
<div class="p-2">
<img src="/logos/beserved.png" alt="logo " width="600" class="w-auto h-9 max-w-full">
</div>
<div class="p-2">
<img src="/logos/beserved.png" alt="logo " width="600" class="w-auto h-9 max-w-full">
</div>
<div class="p-2">
<img src="/logos/beserved.png" alt="logo " width="600" class="w-auto h-9 max-w-full">
<img src="/logos/goodbytes.webp" alt="logo " width="600" class="w-auto h-9 max-w-full">
</div>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion templates/app/domain/home_logged.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endfor %}

<div class="pt-3 flex justify-end">
<twig:AppShowMoreLink path="{{ path('app_content_index', {content_type: 'posts'}) }}" />
<twig:AppShowMoreLink path="{{ path('app_content_blog_post_index', {content_type: 'posts'}) }}" />
</div>
</div>

Expand Down
37 changes: 37 additions & 0 deletions templates/app/shared/component/header_home.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<header class="relative z-40 w-full h-20 flex items-center">
<div class="box-container flex items-center h-full justify-between relative">
<div class="min-w-max flex items-center lg:pl-4 flex-1 gap-x-3">
<div aria-hidden="true" class="flex lg:hidden h-auto">
<button data-open-sidebar="" class="flex flex-col gap-y-2 pr-3 py-2 border-r border-bdr">
<div aria-hidden="true" class="mx-auto h-0.5 w-6 rounded bg-fg-heading2 transition duration-300"></div>
<div aria-hidden="true" class="mx-auto h-0.5 w-6 rounded bg-fg-heading2 transition duration-300"></div>
</button>
</div>
<a href="#" class="w-max hidden xs:flex">
<img src="{{ asset(devscast_dashlite.application.logo_path) }}" alt="Devscast Logo" width="auto" height="120" class="w-auto h-8">
</a>
</div>


<div class="flex items-center gap-x-2 flex-1 justify-end text-fg-heading2 h-full">

<div class="flex items-center gap-x-2 min-w-max">
<a href="{{ path('auth_login') }}" class="btn btn-md before:border before:border-bdr text-fg-heading3">
<span class="relative z-[6]">
Se connecter
</span>
</a>
<a href="#" class="btn btn-md before:bg-gray-800 dark:before:bg-primary text-gray-50 dark:text-gray-900">
<span class="relative z-[6]">
Nous rejoindre
</span>
</a>
</div>

<div class="flex items-center">
<twig:AppThemeSwitcher />
</div>

</div>
</div>
</header>
2 changes: 1 addition & 1 deletion templates/app/shared/layout/base_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>

<body>
<twig:AppHeader />
<twig:AppHomeHeader />
<twig:AppMobileNavigation />

<twig:block name="content"></twig:block>
Expand Down
Loading

0 comments on commit 8bcafc9

Please sign in to comment.