From f10050ef7ee94f3343827ca45f32f287a24ba25f Mon Sep 17 00:00:00 2001 From: Damillora Date: Thu, 11 Mar 2021 00:19:06 +0700 Subject: [PATCH] Add membership --- assets/css/styles.css | 9 +++- members/account.hbs | 50 ++++++++++++++++++ members/signin.hbs | 58 +++++++++++++++++++++ members/signup.hbs | 108 +++++++++++++++++++++++++++++++++++++++ partials/site-header.hbs | 24 +++++++++ 5 files changed, 247 insertions(+), 2 deletions(-) create mode 100644 members/account.hbs create mode 100644 members/signin.hbs create mode 100644 members/signup.hbs diff --git a/assets/css/styles.css b/assets/css/styles.css index 29b7c7a..d5e46ed 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -12,7 +12,9 @@ html { header { @apply py-4; } - +a:hover { + @apply underline; +} /* 2. Site Header */ .index-navbar { top: 0; @@ -242,11 +244,14 @@ footer { } .nav li.separator { height: 0; - @apply border border-white; + @apply border border-white border-t opacity-75; } .nav li a { @apply align-middle w-full h-full flex items-center justify-start px-4 py-2; } +.nav li a:hover { + @apply no-underline; +} .nav li:hover { @apply bg-yuika-blue-500 transition duration-300 ease-in-out; } diff --git a/members/account.hbs b/members/account.hbs new file mode 100644 index 0000000..5d91b45 --- /dev/null +++ b/members/account.hbs @@ -0,0 +1,50 @@ +{{!< ../default}} + + +{{#unless @member}} + +{{/unless}} +
+ {{> header-background background=@site.cover_image}} {{!--Special header-image.hbs partial to generate the background image--}} +
+
+
+
+
+
+
+ {{#if @member}} +
+ {{#if @member.avatar_image}} + {{@member.email}} + {{/if}} +

{{@member.email}}

+
+ {{/if}} +
+
+
+
+ + +
+
+
+ {{#if @member.paid}} + {{else if @member}} +

You are subscribed to updates

+

You are currently subscribed to updates from {{@site.title}}.

+ {{else}} + {{/if}} +
+
+{{#contentFor "scripts"}} + +{{/contentFor}} diff --git a/members/signin.hbs b/members/signin.hbs new file mode 100644 index 0000000..152c536 --- /dev/null +++ b/members/signin.hbs @@ -0,0 +1,58 @@ +{{!< ../default}} + + +{{#if @member}} + +{{/if}} +
+ {{> header-background background=@site.cover_image}} {{!--Special header-image.hbs partial to generate the background image--}} +
+
+
+
+
+
+
+

Welcome back!

+

Sign into your account again for full access

+
+
+ + +
+ +
+
+

Please check your email inbox to complete sign in.

+
+
+

Please enter a valid email address!

+
+
+
+
+
+
+
+ + +
+
+
+ {{#post}} + {{content}} + {{/post}} +
+
+{{#contentFor "scripts"}} + +{{/contentFor}} diff --git a/members/signup.hbs b/members/signup.hbs new file mode 100644 index 0000000..b394d14 --- /dev/null +++ b/members/signup.hbs @@ -0,0 +1,108 @@ +{{!< ../default}}
+ {{> header-background background=@site.cover_image}} {{!--Special header-image.hbs partial to generate the background + image--}} +
+
+
+
+
+
+
+ {{#if @member.paid}} + {{!-- Logged in, paying member: Redirect home --}} + + {{else if @member}} +

+ Join The Damillora Network +

+

Become an Autonomous System member

+

By subscribing as an Autonomous System, you can get additional benefits and support me at the same time! +

+ + {{else}} +

Subscribe to {{@site.title}}

+

Get the latest posts delivered straight to your inbox.

+
+
+ + +
+ +
+

Please check your email inbox to confirm your subscription!

+
+
+

Please enter a valid email address!

+
+
+ {{/if}} +
+
+
+
+ + +
+
+
+ {{#if @member}} +

Access restricted. Required infrastructure not yet in place.

+
+
+

Monthly

+ +

+ {{@price.currency}} {{@price.monthly}} +

+ +
+
+

Yearly

+
    +
  • Everything in the Monthly plan.
  • +
  • Two months free!
  • +
  • More coming soon!
  • +
+

+ {{@price.currency}} {{@price.yearly}} +

+ +
+
+ {{else}} + {{#page}} + {{content}} + {{/page}} + {{/if}} +
+
+
+ {{#contentFor "scripts"}} + + {{/contentFor}} \ No newline at end of file diff --git a/partials/site-header.hbs b/partials/site-header.hbs index 419de63..79c5657 100644 --- a/partials/site-header.hbs +++ b/partials/site-header.hbs @@ -17,6 +17,30 @@