This repository has been archived by the owner on Feb 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
279815a
commit e7db209
Showing
10 changed files
with
162 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...backend/src/commonMain/kotlin/me/nathanfallet/suitebde/usecases/web/GetRootMenuUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package me.nathanfallet.suitebde.usecases.web | ||
|
||
import io.ktor.server.application.* | ||
import me.nathanfallet.ktorx.usecases.localization.IGetLocaleForCallUseCase | ||
import me.nathanfallet.suitebde.models.web.WebMenu | ||
|
||
class GetRootMenuUseCase( | ||
private val getLocaleForCallUseCase: IGetLocaleForCallUseCase, | ||
) : IGetRootMenuUseCase { | ||
|
||
override suspend fun invoke(input: ApplicationCall): List<WebMenu> = listOf( | ||
|
||
) | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...ackend/src/commonMain/kotlin/me/nathanfallet/suitebde/usecases/web/IGetRootMenuUseCase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package me.nathanfallet.suitebde.usecases.web | ||
|
||
import io.ktor.server.application.* | ||
import me.nathanfallet.suitebde.models.web.WebMenu | ||
import me.nathanfallet.usecases.base.ISuspendUseCase | ||
|
||
interface IGetRootMenuUseCase : ISuspendUseCase<ApplicationCall, List<WebMenu>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
suitebde-backend/src/commonMain/resources/static/img/icon-01.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
suitebde-backend/src/commonMain/resources/static/img/icon-02.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
suitebde-backend/src/commonMain/resources/static/img/icon-03.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 88 additions & 3 deletions
91
suitebde-backend/src/commonMain/resources/templates/root/home.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,89 @@ | ||
<#import "template.ftl" as template> | ||
<#import "../template.ftl" as template> | ||
<@template.page> | ||
Welcome! | ||
</@template.page> | ||
<!-- ===== Hero Start ===== --> | ||
<section class="pt-35 md:pt-40 xl:pt-52 pb-20 lg:pb-30 xl:pb-59 relative overflow-hidden"> | ||
<!-- Hero Images --> | ||
<div class="hidden md:block w-1/2 2xl:w-187.5 h-auto 2xl:h-171.5 absolute right-0 top-0"> | ||
<img src="img/hero.png" alt="Hero" class="absolute right-0 top-0 z-1"/> | ||
</div> | ||
|
||
<!-- Hero Content --> | ||
<div class="mx-auto max-w-1390 px-4 md:px-8 2xl:px-0"> | ||
<div class="flex lg:items-center"> | ||
<div class="animate_left md:w-1/2"> | ||
<h1 class="font-semibold text-3xl lg:text-4xl xl:text-title-xxl text-black dark:text-white mb-6"> | ||
<@t key="hero_title"/> | ||
</h1> | ||
<p class="xl:w-[79%]"> | ||
<@t key="hero_description"/> | ||
</p> | ||
|
||
<div class="flex flex-col-reverse lg:flex-row gap-7.5 mt-10"> | ||
<a href="${locale}/auth/join" | ||
class="font-medium leading-7 text-white bg-primary py-3 px-7.5 rounded-full ease-in-out duration-300 inline-flex w-fit hover:shadow-1"> | ||
<@t key="auth_field_join"/> | ||
</a> | ||
|
||
<span class="flex flex-col"> | ||
<a href="mailto:[email protected]" | ||
class="inline-block font-medium text-lg text-black dark:text-white"> | ||
<@t key="hero_email" args=["[email protected]"]/> | ||
</a> | ||
<span class="inline-block"> | ||
<@t key="hero_email_description"/> | ||
</span> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- ===== Hero End ===== --> | ||
|
||
<!-- ===== Small Features Start ===== --> | ||
<section id="features"> | ||
<div class="mx-auto max-w-1390 px-4 md:px-7.5 2xl:px-12.5"> | ||
<div class="flex flex-wrap lg:flex-nowrap justify-center lg:justify-between gap-7.5 lg:gap-5 xl:gap-22.5"> | ||
<!-- Small Features Item --> | ||
<div class="animate_top md:w-[45%] lg:w-1/3 flex gap-5 xl:gap-7.5"> | ||
<div class="flex items-center justify-center shrink-0 w-21 h-21 rounded-full bg-primary"> | ||
<img src="/img/icon-01.svg" alt="Icon"/> | ||
</div> | ||
<div> | ||
<h4 class="font-medium text-xl md:text-title-sm text-black dark:text-white mb-2.5"> | ||
<@t key="features_one_title"/> | ||
</h4> | ||
<p><@t key="features_one_description"/></p> | ||
</div> | ||
</div> | ||
|
||
<!-- Small Features Item --> | ||
<div class="animate_top md:w-[45%] lg:w-1/3 flex gap-5 xl:gap-7.5"> | ||
<div class="flex items-center justify-center shrink-0 w-21 h-21 rounded-full bg-primary"> | ||
<img src="/img/icon-02.svg" alt="Icon"/> | ||
</div> | ||
<div> | ||
<h4 class="font-medium text-xl md:text-title-sm text-black dark:text-white mb-2.5"> | ||
<@t key="features_two_title"/> | ||
</h4> | ||
<p><@t key="features_two_description"/></p> | ||
</div> | ||
</div> | ||
|
||
<!-- Small Features Item --> | ||
<div class="animate_top md:w-[45%] lg:w-1/3 flex gap-5 xl:gap-7.5"> | ||
<div class="flex items-center justify-center shrink-0 w-21 h-21 rounded-full bg-primary"> | ||
<img src="/img/icon-03.svg" alt="Icon"/> | ||
</div> | ||
<div> | ||
<h4 class="font-medium text-xl md:text-title-sm text-black dark:text-white mb-2.5"> | ||
<@t key="features_three_title"/> | ||
</h4> | ||
<p><@t key="features_three_description"/></p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- ===== Small Features End ===== --> | ||
</@template.page> |
3 changes: 0 additions & 3 deletions
3
suitebde-backend/src/commonMain/resources/templates/root/template.ftl
This file was deleted.
Oops, something went wrong.