Skip to content

Commit a597c51

Browse files
author
Robin
committed
add redmit details
1 parent fb8be2e commit a597c51

File tree

7 files changed

+57
-36
lines changed

7 files changed

+57
-36
lines changed

README.md

Lines changed: 54 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,54 @@
1-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2-
3-
## Getting Started
4-
5-
First, run the development server:
6-
7-
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
12-
pnpm dev
13-
# or
14-
bun dev
15-
```
16-
17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18-
19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20-
21-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22-
23-
## Learn More
24-
25-
To learn more about Next.js, take a look at the following resources:
26-
27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29-
30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31-
32-
## Deploy on Vercel
33-
34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35-
36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
1+
<div align="center">
2+
<a href="https://codesnapshot.vercel.app">
3+
<img
4+
src='https://github.com/robindev2007/CodeSnapshot/blob/main/public/android-chrome-512x512.png?raw=true'
5+
alt="Hoppscotch"
6+
height="120"
7+
/>
8+
</a>
9+
<h3>
10+
<b>
11+
Code Snapshot
12+
</b>
13+
</h3>
14+
<b>
15+
Open Source Code to Image Snapshot generator
16+
</b>
17+
<p>
18+
19+
![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen?logo=github) [![Website](https://img.shields.io/website?url=https%3A%2F%2Fhoppscotch.io&logo=hoppscotch)](https://codesnapshot.vercel.app)
20+
21+
</p>
22+
23+
<br />
24+
<p>
25+
<a href="https://codesnapshot.vercel.app">
26+
<picture>
27+
<source media="(prefers-color-scheme: dark)" srcset="./images/banner.png">
28+
<source media="(prefers-color-scheme: light)" srcset="./images/banner.png">
29+
<img alt="Hoppscotch" src="./images/banner.png">
30+
</picture>
31+
</a>
32+
</p>
33+
34+
</div>
35+
36+
## Examples:
37+
38+
<img src='images/example-1.png' >
39+
<img src='images/example-2.png'>
40+
<img src='images/example-3.png'>
41+
42+
### **Features**
43+
44+
❤️ **Lightweight:** Crafted with minimalistic UI design.
45+
46+
⚡️ **Fast:** Show preview or snapshot realtime.
47+
48+
🌈 **Thems:** Customize able code thees
49+
50+
🔥 **PWA:** Install as a [Progressive Web App](https://web.dev/progressive-web-apps) on your device.
51+
52+
- Low RAM/memory and CPU usage
53+
- Add to Home Screen
54+
- Desktop PWA - ( Comming soon )

images/banner.png

213 KB
Loading

images/example-1.png

486 KB
Loading

images/example-2.png

583 KB
Loading

images/example-3.png

499 KB
Loading

images/example-4.png

545 KB
Loading

src/lib/constance.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use server";
22

3+
import { unstable_noStore as noStore } from "next/cache";
4+
35
const codes = [
46
`module.exports = leftpad
57
@@ -43,6 +45,7 @@ export default function Command() {
4345
];
4446

4547
export const getRandomCode = () => {
48+
noStore();
4649
const random = Math.floor(Math.random() * codes.length);
4750

4851
return codes[random];

0 commit comments

Comments
 (0)