|
1 | 1 | import React from "react"; |
2 | 2 | import type { NextPage } from "next"; |
3 | 3 | import Head from "next/head"; |
| 4 | + |
4 | 5 | import { useQuery } from "urql"; |
| 6 | + |
| 7 | +import { |
| 8 | + CloudUploadIcon, |
| 9 | + CogIcon, |
| 10 | + LockClosedIcon, |
| 11 | + MenuIcon, |
| 12 | + RefreshIcon, |
| 13 | + ServerIcon, |
| 14 | + ShieldCheckIcon, |
| 15 | + XIcon, |
| 16 | +} from "@heroicons/react/outline"; |
| 17 | + |
5 | 18 | import { gql } from "../gql"; |
6 | 19 | import { Container } from "../lib/container"; |
7 | 20 | import { FeedItem } from "../lib/feed-item"; |
8 | | -import { MainSection } from "../lib/main-section"; |
9 | 21 | import { noopUUID } from "../lib/noop-uuid"; |
10 | 22 |
|
11 | 23 | const About: NextPage = () => { |
| 24 | + const features = [ |
| 25 | + { |
| 26 | + name: "Push to Deploy", |
| 27 | + description: |
| 28 | + "Ac tincidunt sapien vehicula erat auctor pellentesque rhoncus. Et magna sit morbi vitae lobortis.", |
| 29 | + icon: CloudUploadIcon, |
| 30 | + }, |
| 31 | + { |
| 32 | + name: "SSL Certificates", |
| 33 | + description: |
| 34 | + "Qui aut temporibus nesciunt vitae dicta repellat sit dolores pariatur. Temporibus qui illum aut.", |
| 35 | + icon: LockClosedIcon, |
| 36 | + }, |
| 37 | + { |
| 38 | + name: "Simple Queues", |
| 39 | + description: |
| 40 | + "Rerum quas incidunt deleniti quaerat suscipit mollitia. Amet repellendus ut odit dolores qui.", |
| 41 | + icon: RefreshIcon, |
| 42 | + }, |
| 43 | + { |
| 44 | + name: "Advanced Security", |
| 45 | + description: |
| 46 | + "Ullam laboriosam est voluptatem maxime ut mollitia commodi. Et dignissimos suscipit perspiciatis.", |
| 47 | + icon: ShieldCheckIcon, |
| 48 | + }, |
| 49 | + { |
| 50 | + name: "Powerful API", |
| 51 | + description: |
| 52 | + "Ab a facere voluptatem in quia corrupti veritatis aliquam. Veritatis labore quaerat ipsum quaerat id.", |
| 53 | + icon: CogIcon, |
| 54 | + }, |
| 55 | + { |
| 56 | + name: "Database Backups", |
| 57 | + description: |
| 58 | + "Quia qui et est officia cupiditate qui consectetur. Ratione similique et impedit ea ipsum et.", |
| 59 | + icon: ServerIcon, |
| 60 | + }, |
| 61 | + ]; |
| 62 | + |
12 | 63 | return ( |
13 | 64 | <Container> |
14 | 65 | <Head> |
15 | 66 | <title>supanews | About</title> |
16 | 67 | <meta name="description" content="What is hot?" /> |
17 | 68 | <link rel="icon" href="/favicon.ico" /> |
18 | 69 | </Head> |
19 | | - |
20 | | - <MainSection> |
21 | | - <section className="text-gray-600 body-font overflow-hidden w-full"> |
22 | | - <div className="container px-3 py-24 mx-auto"> |
23 | | - <div className="-my-8"> |
24 | | - <h1 className="text-2xl py-6">Supabase PG GraphQL Example App</h1> |
25 | | - |
26 | | - <p> |
27 | | - A basic HackerNews-like clone where posts can be submitted with |
28 | | - url links and then up and down voted. |
29 | | - </p> |
30 | | - |
31 | | - <h2 className="text-xl pt-4">Showcase</h2> |
32 | | - |
33 | | - <h3 className="text-lg py-6"> Backend pg_graphql / supabase</h3> |
34 | | - <ul> |
35 | | - <li>CRUD (Query + Mutation Operations)</li> |
36 | | - <li>Cursor Based Pagination</li> |
37 | | - <li>Authorization / RLS</li> |
38 | | - </ul> |
39 | | - <h3 className="text-lg py-6">Frontend</h3> |
40 | | - <ul> |
41 | | - <li>[Next.js](https://nextjs.org) React Framework</li> |
42 | | - <li> |
43 | | - [TypeScript](https://www.typescriptlang.org) TypeScript is a |
44 | | - strongly typed programming language that builds on JavaScript, |
45 | | - giving you better tooling at any scale. |
46 | | - </li> |
47 | | - <li> |
48 | | - [graphql-code-generator](https://www.graphql-code-generator.com){" "} |
49 | | - Generate code from your GraphQL schema and operations with a |
50 | | - simple CLI |
51 | | - </li> |
52 | | - <li> |
53 | | - [gql-tag-operations-preset](https://www.graphql-code-generator.com/plugins/gql-tag-operations-preset){" "} |
54 | | - This code gen preset generates typings for your inline gql |
55 | | - function usages, without having to manually specify import |
56 | | - statements for the documents |
57 | | - </li> |
58 | | - <li> |
59 | | - [urql](https://formidable.com/open-source/urql/) A highly |
60 | | - customizable and versatile GraphQL client |
61 | | - </li> |
62 | | - <li> |
63 | | - [Gravatar](https://en.gravatar.com) Default avatar profile |
64 | | - images from Gravatar |
65 | | - </li> |
66 | | - </ul> |
67 | | - <h3 className="text-lg py-6">Backend</h3> |
68 | | - <ul> |
69 | | - <li> |
70 | | - [Supabase](https://supabase.com) Create a backend in less than |
71 | | - 2 minutes. Start your project with a Postgres Database, |
72 | | - Authentication, instant APIs, Realtime subscriptions and |
73 | | - Storage. |
74 | | - </li> |
75 | | - <li> |
76 | | - [pg_graphql](https://supabase.com/blog/2021/12/03/pg-graphql){" "} |
77 | | - A native [PostgreSQL |
78 | | - extension](https://supabase.github.io/pg_graphql/) adding |
79 | | - [GraphQL support](https://graphql.org). The extension keeps |
80 | | - schema generation, query parsing, and resolvers all neatly |
81 | | - contained on your database server requiring no external |
82 | | - services. |
83 | | - </li> |
84 | | - <li> |
85 | | - [Postgres |
86 | | - Triggers](https://supabase.com/blog/2021/07/30/supabase-functions-updates) |
87 | | - and [Postgres |
88 | | - Functions](https://supabase.com/docs/guides/database/functions){" "} |
89 | | - When votes are in, use triggers to invoke a Postgres function |
90 | | - that calculates a post score to rank the feed |
91 | | - </li> |
92 | | - <li> |
93 | | - [Postgres Enumerated |
94 | | - Types](https://www.postgresql.org/docs/14/datatype-enum.html){" "} |
95 | | - Enums help defined the direction of a vote: UP or DOWN. |
96 | | - </li> |
97 | | - </ul> |
98 | | - <h3 className="text-lg py-6">Functionality</h3> |
99 | | - <ul> |
100 | | - <li>Registration</li> |
101 | | - <li>Get a ranked feed of posts</li> |
102 | | - <li>Create Post</li> |
103 | | - <li>Delete Post</li> |
104 | | - <li>Create Comment</li> |
105 | | - <li>Delete Comment</li> |
106 | | - <li>Upvote/Downvote Post</li> |
107 | | - <li>View Profile (Account)</li> |
108 | | - <li>View Profile (Public)</li> |
109 | | - <li>Pagination (Posts, Comments)</li> |
110 | | - </ul> |
| 70 | + <div className="relative bg-white py-4 sm:py-8 lg:py-12"> |
| 71 | + <div className="mx-auto max-w-md px-4 text-center sm:max-w-3xl sm:px-6 lg:px-8 lg:max-w-7xl"> |
| 72 | + <h2 className="text-base font-semibold tracking-wider text-green-600 uppercase"> |
| 73 | + Deploy faster |
| 74 | + </h2> |
| 75 | + <p className="mt-2 text-3xl font-extrabold text-gray-900 tracking-tight sm:text-4xl"> |
| 76 | + Everything you need to deploy your app |
| 77 | + </p> |
| 78 | + <p className="mt-5 max-w-prose mx-auto text-xl text-gray-500"> |
| 79 | + Phasellus lorem quam molestie id quisque diam aenean nulla in. |
| 80 | + Accumsan in quis quis nunc, ullamcorper malesuada. Eleifend |
| 81 | + condimentum id viverra nulla. |
| 82 | + </p> |
| 83 | + <div className="mt-12"> |
| 84 | + <div className="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3"> |
| 85 | + {features.map((feature) => ( |
| 86 | + <div key={feature.name} className="pt-6"> |
| 87 | + <div className="flow-root bg-gray-50 rounded-lg px-6 pb-8"> |
| 88 | + <div className="-mt-6"> |
| 89 | + <div> |
| 90 | + <span className="inline-flex items-center justify-center p-3 bg-gradient-to-r from-teal-500 to-green-600 rounded-md shadow-lg"> |
| 91 | + <feature.icon |
| 92 | + className="h-6 w-6 text-white" |
| 93 | + aria-hidden="true" |
| 94 | + /> |
| 95 | + </span> |
| 96 | + </div> |
| 97 | + <h3 className="mt-8 text-lg font-medium text-gray-900 tracking-tight"> |
| 98 | + {feature.name} |
| 99 | + </h3> |
| 100 | + <p className="mt-5 text-base text-gray-500"> |
| 101 | + {feature.description} |
| 102 | + </p> |
| 103 | + </div> |
| 104 | + </div> |
| 105 | + </div> |
| 106 | + ))} |
111 | 107 | </div> |
112 | 108 | </div> |
113 | | - </section> |
114 | | - </MainSection> |
| 109 | + </div> |
| 110 | + </div> |
115 | 111 | </Container> |
116 | 112 | ); |
117 | 113 | }; |
|
0 commit comments