-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(site/blog): add wedding invitation
- Loading branch information
Showing
49 changed files
with
188 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return <>{children}</>; | ||
} |
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"use client"; | ||
import { useEffect } from "react"; | ||
// import AMapLoader from "@amap/amap-jsapi-loader"; | ||
|
||
export default function MapContainer() { | ||
useEffect(() => { | ||
let map: any; | ||
// issue: https://github.com/vercel/next.js/issues/60862 | ||
(async () => { | ||
const AMapLoader = (await import("@amap/amap-jsapi-loader")).default; | ||
AMapLoader.load({ | ||
key: "5ffcb88a9d059f2b26f39122669061ff", // 申请好的Web端开发者Key,首次调用 load 时必填 | ||
version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15 | ||
plugins: [], // 需要使用的的插件列表,如比例尺'AMap.Scale'等 | ||
}) | ||
.then((AMap) => { | ||
map = new AMap.Map("container", { | ||
// 设置地图容器id | ||
viewMode: "3D", // 是否为3D地图模式 | ||
zoom: 11, // 初始化地图级别 | ||
center: [116.397428, 39.90923], // 初始化地图中心点位置 | ||
}); | ||
}) | ||
.catch((e) => { | ||
console.log(e); | ||
}); | ||
})(); | ||
|
||
return () => { | ||
map?.destroy(); | ||
}; | ||
}, []); | ||
|
||
return <div id="container" className="w-full aspect-square" />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import Video from "./video"; | ||
import Amap from "./amap"; | ||
|
||
export default function Wedding() { | ||
return ( | ||
<> | ||
<Video | ||
src={ | ||
"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4" | ||
} | ||
/> | ||
<div className="text-xl text-center">王麒涵 & 付云英</div> | ||
<div>2024/02/13|甲辰年正明初四|星期二</div> | ||
|
||
<div>锦宴</div> | ||
<div>四川省广元市利州区宝轮镇富丽东方天顺大厦</div> | ||
|
||
<Amap /> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
"use client"; | ||
import { useEffect } from "react"; | ||
// issue: https://github.com/vercel/next.js/issues/60862 | ||
// import Plyr from "plyr"; | ||
import "plyr/dist/plyr.css"; | ||
|
||
type VideoProps = { | ||
src: string; | ||
}; | ||
|
||
export default function Video({ src }: VideoProps) { | ||
useEffect(() => { | ||
let player: any = null; | ||
|
||
// issue: https://github.com/vercel/next.js/issues/60862 | ||
(async () => { | ||
const Plyr = (await import("plyr")).default; | ||
player = new Plyr("#player"); | ||
})(); | ||
|
||
return () => { | ||
player?.destroy(); | ||
}; | ||
}, []); | ||
return ( | ||
<video | ||
id="player" | ||
play-inline="true" | ||
controls | ||
data-poster="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg" | ||
> | ||
<source src={src} type="video/mp4" /> | ||
{/* <source src="/path/to/video.webm" type="video/webm" /> */} | ||
<track | ||
kind="captions" | ||
label="English captions" | ||
src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt" | ||
src-lang="en" | ||
default | ||
/> | ||
</video> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Header from "./components/Header"; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return ( | ||
<> | ||
<Header /> | ||
<main className="container mx-auto px-4 pt-10">{children}</main> | ||
</> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...blog/app/posts/[slug]/opengraph-image.tsx → ...pp/(web)/posts/[slug]/opengraph-image.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
site/blog/app/posts/layout.tsx → site/blog/app/(web)/posts/layout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
site/blog/app/projects/ism-analysis/page.tsx → .../app/(web)/projects/ism-analysis/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
site/blog/app/projects/kupo-monitor/page.tsx → .../app/(web)/projects/kupo-monitor/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
site/blog/app/projects/luban/page.tsx → site/blog/app/(web)/projects/luban/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
site/blog/app/projects/page.tsx → site/blog/app/(web)/projects/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aab07e8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
qhan – ./
qhan.wang
www.qhan.wang
qhan-qhanw.vercel.app
qhan-git-main-qhanw.vercel.app