Skip to content

Commit

Permalink
💄 Add title elements to all pages
Browse files Browse the repository at this point in the history
  • Loading branch information
leodr committed Feb 8, 2021
1 parent 85d352a commit 3b0e0b5
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/[formSlug]/[submissionId].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import SolidChevronLeftIcon from "heroicons/solid/chevron-left.svg";
import SolidCogIcon from "heroicons/solid/cog.svg";
import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import React, { ReactNode } from "react";
Expand Down Expand Up @@ -43,6 +44,9 @@ export default function FormPage() {

return (
<>
<Head>
<title>Submissions | Quice</title>
</Head>
<main className="flex-1 relative z-0 overflow-y-auto focus:outline-none xl:order-last">
{/* Breadcrumb */}
<nav
Expand Down
4 changes: 4 additions & 0 deletions src/pages/[formSlug]/settings.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Listbox } from "@headlessui/react";
import clsx from "clsx";
import SolidArrowLeftIcon from "heroicons/solid/arrow-left.svg";
import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import { ReactNode, useEffect, useState } from "react";
Expand Down Expand Up @@ -310,6 +311,9 @@ export default function FormSettingsPage() {

return (
<main className="flex-1 overflow-y-auto focus:outline-none">
<Head>
<title>Form settings | Quice</title>
</Head>
<div className="relative max-w-3xl mx-auto md:px-8 xl:px-0">
<div className="pt-10 pb-16">
<div className="px-4 sm:px-6 md:px-0 flex items-center space-x-4">
Expand Down
4 changes: 4 additions & 0 deletions src/pages/inbox/[submissionId].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import SolidChevronLeftIcon from "heroicons/solid/chevron-left.svg";
import Head from "next/head";
import { useRouter } from "next/router";
import React, { ReactNode } from "react";
import ListHeader from "src/components/ListHeader";
Expand Down Expand Up @@ -27,6 +28,9 @@ export default function InboxPage() {

return (
<>
<Head>
<title>Inbox | Quice</title>
</Head>
<main className="flex-1 relative z-0 overflow-y-auto focus:outline-none xl:order-last">
{/* Breadcrumb */}
<nav
Expand Down
4 changes: 4 additions & 0 deletions src/pages/join.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AnimatePresence, motion } from "framer-motion";
import SolidCheckIcon from "heroicons/solid/check.svg";
import SolidXIcon from "heroicons/solid/x.svg";
import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import { ReactNode, SyntheticEvent, useState } from "react";
Expand Down Expand Up @@ -60,6 +61,9 @@ export default function JoinPage() {

return (
<>
<Head>
<title>Join | Quice</title>
</Head>
<form className="space-y-6" onSubmit={handleLoginFormSubmit}>
<div className="flex space-x-4">
<div>
Expand Down
4 changes: 4 additions & 0 deletions src/pages/login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AnimatePresence, motion } from "framer-motion";
import SolidCheckIcon from "heroicons/solid/check.svg";
import SolidXIcon from "heroicons/solid/x.svg";
import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import { ReactNode, SyntheticEvent, useState } from "react";
Expand Down Expand Up @@ -41,6 +42,9 @@ export default function LoginPage() {

return (
<>
<Head>
<title>Login | Quice</title>
</Head>
<form className="space-y-6" onSubmit={handleLoginFormSubmit}>
<div>
<label
Expand Down
4 changes: 4 additions & 0 deletions src/pages/new-form.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Listbox } from "@headlessui/react";
import kebabCase from "lodash.kebabcase";
import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import { ReactNode } from "react";
Expand Down Expand Up @@ -47,6 +48,9 @@ export default function NewFormPage() {

return (
<main className="flex-1 overflow-y-auto focus:outline-none">
<Head>
<title>Create new form | Quice</title>
</Head>
<div className="relative max-w-3xl mx-auto md:px-8 xl:px-0">
<div className="pt-10 pb-16">
<div className="px-4 sm:px-6 md:px-0">
Expand Down
4 changes: 4 additions & 0 deletions src/pages/reset-password.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AnimatePresence, motion } from "framer-motion";
import SolidCheckIcon from "heroicons/solid/check.svg";
import SolidXIcon from "heroicons/solid/x.svg";
import Head from "next/head";
import Link from "next/link";
import { ReactNode, SyntheticEvent, useState } from "react";
import { auth } from "src/firebase";
Expand Down Expand Up @@ -37,6 +38,9 @@ export default function PasswordResetPage() {

return (
<form className="space-y-6" onSubmit={handleLoginFormSubmit}>
<Head>
<title>Reset Password | Quice</title>
</Head>
<p className="text-sm text-gray-500">
Enter your user account's verified email address and we will send you a
password reset link.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/tasks.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import Head from "next/head";
import { ReactNode } from "react";
import { AppLayout } from "src/layouts/AppLayout";

export default function TasksPage() {
return (
<>
<Head>
<title>Tasks | Quice</title>
</Head>
<div className="flex items-center justify-center w-full">
Coming Soon!
</div>
Expand Down

0 comments on commit 3b0e0b5

Please sign in to comment.