Skip to content

LLazyEmail/react-sendgrid-form

Repository files navigation

Gitpod ready-to-code

Heroku version: that working: https://intense-escarpment-64234.herokuapp.com/baa/old-2019 Vercel version that not working: https://react-sendgrid-form.vercel.app/

react sendgrid forms

photo_2020-12-15_05-53-43 (2)

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

npm commands

npm run dev - starts development server
npm run build - make build and HMTL build in out/ folder
npm run lint - eslint auto fix

Main file structure

components/ - Folder with components
components/Layout - Main layout component
components/Layout/Nav - Navigation component with all form routes
pages/api/send-email.js - email sending function
pages/baa/[forms].js - dynamic route for email forms
pages/_app.js - component for initialize pages
pages/index.js - Template routing!

Arthur Tkachenko articles

Forms

  1. Name: Old 2019 version
    Template ID: d-dc18336cd62d40fba8820bccb351aa8f

no variables

image


  1. Name: BAA Credits Finished #sponsors
    Template ID: d-5ae6d711deb14a8485a60d7f247cd117

variables { "first_name": string }

image


  1. Name: got flagged as BAA #sponsors
    Template ID: d-722b54a3b56a497a9c9124d273b7f641

variables
{ "first_name":"string", "article_link":"string", "article_title":"string", "brand":"string" }

image


  1. Name: promotional story detected #writers
    Template ID: d-87d998d5e4064de1be6dc56b0790b9fb

variables
{ "full_name": "string", "url":"string", "time":"string" }

image


  1. Name: Brand As Author Credits Purchased V1
    Template ID: d-1b0b9282b2bb4b18b5056a22aa25f8fb

no variables

image


  1. Name: Brand as Author Story Submitted #sponsors
    Template ID: d-1b9ad22192214fb48ed3134fca11ea7a

variables
{ "handle": "string", "storyTitle": "string", "hasCredits": boolean }

image


  1. Name: Hacker Noon Enquiry Form

  1. About Your Hacker Noon Story: BAA Template ID: d-61b15100fada4f8abc440dcd067c6e20

variables none

image


9. Plagiarism on Hacker Noon

Template ID: d-c9c2606f81064defb31d2c221c078ffd

variables none

image

10. Upload company logo #BAA

Template ID: d-33edeaf8e9be4e1a8bf1fc8138436aae

variables none

image


Code samples:

Deploy it to the cloud with Vercel (Documentation).

photo_2020-12-15_05-53-43 (2)

React Design System