Add different cycling texts that fade in. Gives a nice touch to the landing page.
A Pen by Rajeev Singh Naruka on CodePen.
| import { getData } from "../../helper"; | |
| export default async function(req, res) { | |
| return new Promise((resolve, reject) => { | |
| getData() | |
| .then(response => { | |
| res.statusCode = 200 | |
| res.setHeader('Content-Type', 'application/json'); | |
| res.setHeader('Cache-Control', 'max-age=180000'); | |
| res.end(JSON.stringify(response)) |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
| <title>Title</title> | |
| <!-- all links here in head --> | |
| <link rel="shortcut icon" type="image/png" href="img/meteor-solid.png" /> | |
| <link rel="stylesheet" href="./css/bootstrap.min.css" /> |
Add different cycling texts that fade in. Gives a nice touch to the landing page.
A Pen by Rajeev Singh Naruka on CodePen.