Skip to content

Commit 1931085

Browse files
authored
Merge pull request #485 from code-hike/next
✨ Update website ✨
2 parents 046a1be + 1e15b06 commit 1931085

File tree

5 files changed

+84
-21
lines changed

5 files changed

+84
-21
lines changed

apps/web/app/landing/download.tsx

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"use client"
2+
import * as htmlToImage from "html-to-image"
3+
4+
export function Download({ selector }: { selector: string }) {
5+
const onClick = async () => {
6+
const nodes = document.querySelectorAll(selector) as any
7+
for (const node of nodes) {
8+
const dataUrl = await htmlToImage.toPng(node as HTMLElement)
9+
var img = new Image()
10+
img.src = dataUrl
11+
document.getElementById("out")!.appendChild(img)
12+
}
13+
}
14+
return (
15+
<div>
16+
<button onClick={onClick}>As PNG</button>
17+
<div id="out" className="min-w-6 min-h-6 border"></div>
18+
</div>
19+
)
20+
}

apps/web/app/landing/sponsors.json

+27-19
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"name": "speakeasy-api",
12-
"amount": 4331
12+
"amount": 4649
1313
},
1414
{
1515
"name": "uidotdev",
@@ -29,11 +29,11 @@
2929
},
3030
{
3131
"name": "kickstartDS",
32-
"amount": 957
32+
"amount": 986
3333
},
3434
{
3535
"name": "brianespinosa",
36-
"amount": 912
36+
"amount": 941
3737
},
3838
{
3939
"name": "jsheroes",
@@ -47,21 +47,25 @@
4747
"name": "scvnc",
4848
"amount": 421
4949
},
50+
{
51+
"name": "remotion-dev",
52+
"amount": 400
53+
},
5054
{
5155
"name": "nathanclevenger",
52-
"amount": 372
56+
"amount": 391
5357
},
5458
{
5559
"name": "arosenkranz",
5660
"amount": 370
5761
},
5862
{
5963
"name": "molebox",
60-
"amount": 333
64+
"amount": 342
6165
},
6266
{
6367
"name": "traviscooper",
64-
"amount": 315
68+
"amount": 324
6569
},
6670
{
6771
"name": "obgibson",
@@ -85,15 +89,15 @@
8589
},
8690
{
8791
"name": "codeSTACKr",
88-
"amount": 252
92+
"amount": 261
8993
},
9094
{
91-
"name": "matthiaszepper",
92-
"amount": 250
95+
"name": "kiliman",
96+
"amount": 255
9397
},
9498
{
95-
"name": "kiliman",
96-
"amount": 246
99+
"name": "matthiaszepper",
100+
"amount": 250
97101
},
98102
{
99103
"name": "lostintangent",
@@ -219,6 +223,10 @@
219223
"name": "ranman",
220224
"amount": 86
221225
},
226+
{
227+
"name": "zmzlois",
228+
"amount": 84
229+
},
222230
{
223231
"name": "grikomsn",
224232
"amount": 81
@@ -243,10 +251,6 @@
243251
"name": "devopsbarista",
244252
"amount": 67
245253
},
246-
{
247-
"name": "zmzlois",
248-
"amount": 65
249-
},
250254
{
251255
"name": "cdalsoniii",
252256
"amount": 63
@@ -371,6 +375,10 @@
371375
"name": "1rodriguez",
372376
"amount": 25
373377
},
378+
{
379+
"name": "yowainwright",
380+
"amount": 25
381+
},
374382
{
375383
"name": "codebender828",
376384
"amount": 23
@@ -464,12 +472,12 @@
464472
"amount": 9
465473
},
466474
{
467-
"name": "achan-godaddy",
468-
"amount": 7
475+
"name": "peterfox",
476+
"amount": 8
469477
},
470478
{
471-
"name": "peterfox",
472-
"amount": 6
479+
"name": "achan-godaddy",
480+
"amount": 7
473481
},
474482
{
475483
"name": "RayJason",

apps/web/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"diff": "^5.1.0",
2727
"dotenv": "^16.4.1",
2828
"estree-util-to-js": "^2.0.0",
29+
"html-to-image": "^1.11.11",
2930
"lucide-react": "^0.303.0",
3031
"next": "14.1.0",
3132
"next-docs-mdx": "7.1.2",

pnpm-lock.yaml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.md

+28-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Code Hike
2+
13
### Build rich content websites with Markdown and React
24

35
Code Hike is an open-source library that bridges the gap between Markdown and React to help you create technical content that takes advantage of the modern web.
@@ -12,13 +14,37 @@ Try it online on [StackBlitz](https://stackblitz.com/github/code-hike/v1-starter
1214
npx create-next-app -e https://github.com/code-hike/v1-starter
1315
```
1416

15-
<!-- #### Powered by
17+
---
18+
19+
[![GitHub Accelerator](https://github.com/user-attachments/assets/373ac21a-170e-44ea-9401-ed12e545a7f0#gh-dark-mode-only)](https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/#gh-dark-mode-only)
20+
[![GitHub Accelerator](https://github.com/user-attachments/assets/9e6675bb-4981-4cd8-951b-96ae8f40c9ea#gh-light-mode-only)](https://github.blog/2023-04-12-github-accelerator-our-first-cohort-and-whats-next/#gh-light-mode-only)
21+
22+
### Top Sponsors
23+
24+
[![Meta](https://github.com/user-attachments/assets/e3964404-3fb8-483b-8f99-e65ae2740301#gh-dark-mode-only)](https://opensource.fb.com/#gh-dark-mode-only)
25+
[![Meta](https://github.com/user-attachments/assets/3be6741f-f6ea-4957-a0ab-32954aab7f84#gh-light-mode-only)](https://opensource.fb.com/#gh-light-mode-only)
26+
![spacer](https://user-images.githubusercontent.com/1911623/145202317-0bcfb3ed-403c-4737-a781-2eeb6b796e8b.png)
27+
[![Speakeasy](https://github.com/user-attachments/assets/5c5af791-c8c5-402e-92d5-48228a79e3df#gh-dark-mode-only)](https://www.speakeasy.com/#gh-dark-mode-only)
28+
[![Speakeasy](https://github.com/user-attachments/assets/e083d81a-e577-48c8-9fb1-efa26ba6f6f9#gh-light-mode-only)](https://www.speakeasy.com/#gh-light-mode-only)
29+
![spacer](https://user-images.githubusercontent.com/1911623/145202317-0bcfb3ed-403c-4737-a781-2eeb6b796e8b.png)
30+
[![ui.dev](https://github.com/user-attachments/assets/f45441cd-c734-42a8-9a71-459d3cdf0a59#gh-dark-mode-only)](https://ui.dev/#gh-dark-mode-only)
31+
[![ui.dev](https://github.com/user-attachments/assets/5fbf4b0e-4ae8-4434-990a-e0d09a6c3562#gh-light-mode-only)](https://ui.dev/#gh-light-mode-only)
32+
![spacer](https://user-images.githubusercontent.com/1911623/145202317-0bcfb3ed-403c-4737-a781-2eeb6b796e8b.png)
33+
[![Drivly](https://github.com/user-attachments/assets/cf13e6e5-4d4c-43d1-b990-72dce36d0209#gh-dark-mode-only)](https://driv.ly/#gh-dark-mode-only)
34+
[![Drivly](https://github.com/user-attachments/assets/50c05647-5c0a-4b3f-9733-3d7286b6f034#gh-light-mode-only)](https://driv.ly/#gh-light-mode-only)
35+
36+
#### Powered by
1637

1738
[![Vercel](https://user-images.githubusercontent.com/1911623/145199399-68b8cd57-c331-4c50-81a2-8c491fb7c0a5.png#gh-dark-mode-only)](https://vercel.com/?utm_source=codehike&utm_campaign=oss#gh-dark-mode-only)
1839
[![Vercel](https://user-images.githubusercontent.com/1911623/145199467-f07416cf-2ed5-4c6f-a4e1-bbcaabbec603.png#gh-light-mode-only)](https://vercel.com/?utm_source=codehike&utm_campaign=oss#gh-light-mode-only)
1940
![spacer](https://user-images.githubusercontent.com/1911623/145202317-0bcfb3ed-403c-4737-a781-2eeb6b796e8b.png)
2041
[![BrowserStack](https://user-images.githubusercontent.com/1911623/145201865-9786b79a-c532-41f7-8da0-91334b53f380.png#gh-dark-mode-only)](https://www.browserstack.com/#gh-dark-mode-only)
21-
[![BrowserStack](https://user-images.githubusercontent.com/1911623/145201872-8940020c-5659-4066-9a0b-0eb25ace3e61.png#gh-light-mode-only)](https://www.browserstack.com/#gh-light-mode-only) -->
42+
[![BrowserStack](https://user-images.githubusercontent.com/1911623/145201872-8940020c-5659-4066-9a0b-0eb25ace3e61.png#gh-light-mode-only)](https://www.browserstack.com/#gh-light-mode-only)
43+
![spacer](https://user-images.githubusercontent.com/1911623/145202317-0bcfb3ed-403c-4737-a781-2eeb6b796e8b.png)
44+
[![Gitpod](https://github.com/user-attachments/assets/e219d74d-2154-4e02-aceb-45408fee6f90#gh-dark-mode-only)](https://www.gitpod.io/#gh-dark-mode-only)
45+
[![Gitpod](https://github.com/user-attachments/assets/d3095f51-0d43-41f1-84f4-92dba8486d61#gh-light-mode-only)](https://www.gitpod.io//#gh-light-mode-only)
46+
47+
---
2248

2349
#### License
2450

0 commit comments

Comments
 (0)