Skip to content

Commit

Permalink
Add blog and add react-image-gallery component
Browse files Browse the repository at this point in the history
  • Loading branch information
wangarthur committed Jun 18, 2024
1 parent 0b845ef commit ff78e94
Show file tree
Hide file tree
Showing 4 changed files with 7,928 additions and 1 deletion.
108 changes: 108 additions & 0 deletions blog/arthur-drift-202406.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
date: 2024-06-12
authors: arthur
image: https://cos.codec.wang/photograph/arthur-drift-hk-5.jpg
tags: ["摄影", "街拍", "香港", "澳门", "street photography"]
---

import ImageGallery from "react-image-gallery";

# 「Arthur 漂流计划」•港澳街拍

港澳通行证办了这么久,端午假期终于用上了!计划了两天 HK,一天 MACAO,特种兵作战,走起~

### 香港

<ImageGallery
thumbnailPosition="left"
showPlayButton={false}
items={[
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-5.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-5.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-1.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-1.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-8.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-8.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-2.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-2.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-3.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-3.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-4.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-4.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-6.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-6.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-7.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-7.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-9.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-9.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-hk-10.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-hk-10.jpg",
},
]}
/>

<!--truncate-->

### 澳门

<ImageGallery
thumbnailPosition="left"
showPlayButton={false}
items={[
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-7.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-7.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-2.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-2.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-1.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-1.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-3.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-3.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-4.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-4.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-5.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-5.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-6.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-6.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-8.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-8.jpg",
},
{
original: "https://cos.codec.wang/photograph/arthur-drift-macao-9.jpg",
thumbnail: "https://cos.codec.wang/photograph/arthur-drift-macao-9.jpg",
},
]}
/>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-image-gallery": "^1.3.0",
"rehype-katex": "^5.0.0",
"remark-math": "^3.0.1"
},
Expand Down
4 changes: 3 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* work well for content-centric websites.
*/

@import "~react-image-gallery/styles/css/image-gallery.css";

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
Expand All @@ -18,7 +20,7 @@
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
[data-theme="dark"] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
Expand Down
Loading

0 comments on commit ff78e94

Please sign in to comment.