Skip to content

Commit

Permalink
Feature/impove login seo #455 (#472)
Browse files Browse the repository at this point in the history
* Improve SEO on the login page.

* [SEO Improvements] - Login page #455: Changes

* [SEO Improvements] - Login page #455: fixes
  • Loading branch information
MOHIT-PANDEY215 authored Oct 2, 2023
1 parent 33ed4dd commit 54e9d98
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion apps/frontend/src/routes/login/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { component$ } from '@builder.io/qwik';
import { Form, globalAction$, Link, RequestHandler, z, zod$ } from '@builder.io/qwik-city';
import { DocumentHead, Form, globalAction$, Link, RequestHandler, z, zod$ } from '@builder.io/qwik-city';
import { setTokensAsCookies, validateAccessToken } from '../../shared/auth.service';

export const onGet: RequestHandler = async ({ cookie, redirect }) => {
Expand Down Expand Up @@ -97,3 +97,45 @@ export default component$(() => {
</div>
);
});

export const head: DocumentHead = {
title: 'Reduced.to | Login',
meta: [
{
name: 'title',
content: 'Reduced.to | Login',
},
{
name: 'description',
content: 'Login to your Reduced.to account to manage your shortened links.',
},
{
property: 'og:type',
content: 'website',
},
{
property: 'og:url',
content: 'https://reduced.to/login',
},
{
property: 'og:title',
content: 'Reduced.to | Login',
},
{
property: 'og:description',
content: 'Login to your Reduced.to account to manage your shortened links.',
},
{
property: 'twitter:card',
content: 'summary',
},
{
property: 'twitter:title',
content: 'Reduced.to | Login',
},
{
property: 'twitter:description',
content: 'Login to your Reduced.to account to manage your shortened links.',
},
],
};

0 comments on commit 54e9d98

Please sign in to comment.