From d6463fa36f0d810a2bfcf6864763c1c38ef2df47 Mon Sep 17 00:00:00 2001 From: Bagas Aulia Rezki Date: Tue, 17 Sep 2024 20:25:46 +0700 Subject: [PATCH] Update landing page style --- view/client/index/index.templ | 168 ++++++++++++++----------------- view/client/index/index_templ.go | 29 +++++- 2 files changed, 98 insertions(+), 99 deletions(-) diff --git a/view/client/index/index.templ b/view/client/index/index.templ index f10c7ea..62b6417 100644 --- a/view/client/index/index.templ +++ b/view/client/index/index.templ @@ -7,111 +7,91 @@ import ( templ content(title string, user types.User) { @layout.Base(title){ -
+
@layout.Navbar(user) -
-

Your files, always within reach

-

- Store, access, and share your files from anywhere. We offer secure and reliable file storage, so you can - focus on what matters most. -

-
-
-
+
+
+

Your files, always within reach

+

+ Store, access, and manage your files with ease. Filekeeper offers generous storage and seamless access from any device, completely free. +

+ if user.Authenticated { + + Open Dashboard + + } else { + + Sign up for free + + } +
+ +
+
+ + + +

Easy Access

+

Access your files with just a few clicks, anytime you need them.

+
+
+ + + +

Generous Storage

+

Store all your important files with our spacious free storage.

+
+
+ + + +

Access Anywhere

+

Use Filekeeper on any device - computer, tablet, or smartphone.

+
+
+ + + +

Secure Storage

+

Rest easy knowing your files are stored securely in the cloud.

+
+
+ +
+

Why choose Filekeeper?

+
    +
  • Completely free to use
  • +
  • Intuitive and user-friendly interface
  • +
  • Generous storage space for all your files
  • +
  • Access your files from any device, anywhere
  • +
  • Robust file organization and search capabilities
  • +
  • Dedicated customer support team
  • +
+
+ +
+

Get Started with Filekeeper

+

Join Filekeeper today and experience hassle-free file management - no credit card required!

+
if user.Authenticated { - Open Dashboard } else { - - Get started + Create your free account } +
-
- -
-
-
-
-
- - - -
-

Unlimited Storage

-

- Store as many files as you need with our generous storage limits. -

-
-
-
- - - - -
-

Secure Encryption

-

- Your files are encrypted with the latest security protocols to keep them safe. -

-
-
-
- - - - - -
-

Easy Sharing

-

- Quickly share files with friends, family, or colleagues with shareable links. -

-
-
-
-
-
-
- - @layout.Footer() + + @layout.Footer() +
} } diff --git a/view/client/index/index_templ.go b/view/client/index/index_templ.go index 198b6e8..0dd3913 100644 --- a/view/client/index/index_templ.go +++ b/view/client/index/index_templ.go @@ -34,7 +34,7 @@ func content(title string, user types.User) templ.Component { templ_7745c5c3_Buffer = templ.GetBuffer() defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -42,22 +42,37 @@ func content(title string, user types.User) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Your files, always within reach

Store, access, and share your files from anywhere. We offer secure and reliable file storage, so you can focus on what matters most.

") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Your files, always within reach

Store, access, and manage your files with ease. Filekeeper offers generous storage and seamless access from any device, completely free.

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } if user.Authenticated { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Open Dashboard") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Open Dashboard") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } else { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Get started") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Sign up for free") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Unlimited Storage

Store as many files as you need with our generous storage limits.

Secure Encryption

Your files are encrypted with the latest security protocols to keep them safe.

Easy Sharing

Quickly share files with friends, family, or colleagues with shareable links.

") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Easy Access

Access your files with just a few clicks, anytime you need them.

Generous Storage

Store all your important files with our spacious free storage.

Access Anywhere

Use Filekeeper on any device - computer, tablet, or smartphone.

Secure Storage

Rest easy knowing your files are stored securely in the cloud.

Why choose Filekeeper?

Get Started with Filekeeper

Join Filekeeper today and experience hassle-free file management - no credit card required!

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + if user.Authenticated { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Open Dashboard") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } else { + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("Create your free account") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -65,6 +80,10 @@ func content(title string, user types.User) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } if !templ_7745c5c3_IsBuffer { _, templ_7745c5c3_Err = io.Copy(templ_7745c5c3_W, templ_7745c5c3_Buffer) }