create-revo 2.0.6 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-revo",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "Project setup tool for ReactJS and NextJS",
5
5
  "main": "cli.js",
6
6
  "bin": {
@@ -3,7 +3,7 @@
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
5
  "scripts": {
6
- "dev": "next dev -p 5173",
6
+ "dev": "next dev -p 7350",
7
7
  "build": "next build",
8
8
  "start": "next start",
9
9
  "lint": "eslint"
@@ -1,6 +1,6 @@
1
1
  import type { Metadata } from "next";
2
2
  import "./globals.css";
3
- import LenisWrapper from "@/components/LenisWrapper";
3
+ import LenisWrapper from "@/components/layout/LenisWrapper";
4
4
 
5
5
  // replace the below metadata according to your project
6
6
 
@@ -9,7 +9,8 @@ export const metadata: Metadata = {
9
9
  description: "Built with revo",
10
10
  keywords: ["revo", "next.js", "npm", "package"],
11
11
  authors: [{ name: "maybetarun.in" }],
12
- viewport: "width=device-width, initial-scale=1.0",
12
+ creator: "MaybeTarun.in",
13
+ publisher: "MaybeTarun.in",
13
14
  robots: "index, follow",
14
15
  icons: "/revo.svg",
15
16
 
@@ -0,0 +1,28 @@
1
+ import { Revo } from 'revoicons';
2
+ import Link from 'next/link';
3
+
4
+ export default function NotFound() {
5
+ return (
6
+ <div className="bg-white w-full h-screen flex flex-col">
7
+ <div className="h-[10vh] w-full border-b border-gray-400">
8
+ <div className="h-full w-full md:w-[70vw] mx-auto border-x border-gray-400" />
9
+ </div>
10
+ <div className="h-full w-full md:w-[70vw] mx-auto border-x border-gray-400 flex flex-col justify-center items-center relative overflow-hidden">
11
+ <div className="absolute inset-0 -z-0 bg-[linear-gradient(to_right,theme(colors.gray.100)_1px,transparent_1px),linear-gradient(to_bottom,theme(colors.gray.100)_1px,transparent_1px)] bg-[length:16px_16px]" />
12
+ <div className="flex flex-col items-center space-y-2 relative z-10">
13
+ <div className="flex justify-center items-center space-x-2 md:space-x-4">
14
+ <h1 className="text-black text-[5rem] md:text-[6rem] font-semibold leading-none text-center uppercase">
15
+ page not found
16
+ </h1>
17
+ </div>
18
+ <p className="text-black/80 text-sm md:text-lg text-center max-w-md">
19
+ website built with <Link href='https://revo-murex.vercel.app' target='_blank' className='text-black cursor-pointer'><Revo size={16} className='inline-block mr-1 -mt-[1px]' />revo</Link>
20
+ </p>
21
+ </div>
22
+ </div>
23
+ <div className="h-[10vh] w-full border-t border-gray-400">
24
+ <div className="h-full w-full md:w-[70vw] mx-auto border-x border-gray-400" />
25
+ </div>
26
+ </div>
27
+ );
28
+ }
File without changes
@@ -9,6 +9,8 @@
9
9
 
10
10
  <title>revo</title>
11
11
  <meta name="author" content="Tarun Gupta" />
12
+ <meta name="creator" content="MaybeTarun.in" />
13
+ <meta name="publisher" content="MaybeTarun.in" />
12
14
  <meta name="keywords" content="revo, react.js, npm, package" />
13
15
  <meta name="description" content="Built with revo" />
14
16
  <meta name="robots" content="index, follow" />
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
- "dev": "vite",
6
+ "dev": "vite --port 7350",
7
7
  "build": "tsc -b && vite build",
8
8
  "lint": "eslint .",
9
9
  "preview": "vite preview"
@@ -1,6 +1,6 @@
1
1
  import { Revo } from 'revoicons';
2
2
 
3
- function App() {
3
+ export default function App() {
4
4
  return (
5
5
  <div className="bg-white w-full h-screen flex flex-col">
6
6
  <div className="h-[10vh] w-full border-b border-gray-400">
@@ -30,5 +30,3 @@ function App() {
30
30
  </div>
31
31
  )
32
32
  }
33
-
34
- export default App
@@ -0,0 +1,27 @@
1
+ import { Revo } from 'revoicons';
2
+
3
+ export default function NotFound() {
4
+ return (
5
+ <div className="bg-white w-full h-screen flex flex-col">
6
+ <div className="h-[10vh] w-full border-b border-gray-400">
7
+ <div className="h-full w-full md:w-[70vw] mx-auto border-x border-gray-400" />
8
+ </div>
9
+ <div className="h-full w-full md:w-[70vw] mx-auto border-x border-gray-400 flex flex-col justify-center items-center relative overflow-hidden">
10
+ <div className="absolute inset-0 -z-0 bg-[linear-gradient(to_right,theme(colors.gray.100)_1px,transparent_1px),linear-gradient(to_bottom,theme(colors.gray.100)_1px,transparent_1px)] bg-[length:16px_16px]" />
11
+ <div className="flex flex-col items-center space-y-2 relative z-10">
12
+ <div className="flex justify-center items-center space-x-2 md:space-x-4">
13
+ <h1 className="text-black text-[5rem] md:text-[6rem] font-semibold leading-none text-center uppercase">
14
+ page not found
15
+ </h1>
16
+ </div>
17
+ <p className="text-black/80 text-sm md:text-lg text-center max-w-md">
18
+ website built with <a href='https://revo-murex.vercel.app' target='_blank' className='text-black cursor-pointer'><Revo size={16} className='inline-block mr-1 -mt-[1px]' />revo</a>
19
+ </p>
20
+ </div>
21
+ </div>
22
+ <div className="h-[10vh] w-full border-t border-gray-400">
23
+ <div className="h-full w-full md:w-[70vw] mx-auto border-x border-gray-400" />
24
+ </div>
25
+ </div>
26
+ );
27
+ }
File without changes
@@ -3,13 +3,15 @@ import { createRoot } from 'react-dom/client';
3
3
  import { BrowserRouter, Routes, Route } from 'react-router-dom';
4
4
  import './index.css';
5
5
  import App from './App';
6
- import LenisWrapper from './components/LenisWrapper';
6
+ import NotFound from './NotFound';
7
+ import LenisWrapper from './components/layout/LenisWrapper';
7
8
 
8
9
  createRoot(document.getElementById('root')!).render(
9
10
  <StrictMode>
10
11
  <LenisWrapper>
11
12
  <BrowserRouter>
12
13
  <Routes>
14
+ <Route path="*" element={<NotFound />} />
13
15
  <Route path="/" element={<App />} />
14
16
  </Routes>
15
17
  </BrowserRouter>