-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
131 changed files
with
11,196 additions
and
2 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 @@ | ||
VITE_USER_PASSWORD=azerty |
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,5 @@ | ||
*.log | ||
.DS_Store | ||
.cache/ | ||
node_modules/ | ||
dist/ |
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 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Xiaoha Zou (@Renovamen) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -1,2 +1,63 @@ | ||
# macos-portfolio | ||
Macos inspired portfolio | ||
# playground-macos | ||
|
||
My portfolio website simulating macOS's GUI: https://portfolio.zxh.me | ||
|
||
Powered by [React](https://reactjs.org/) + [Zustand](https://zustand-demo.pmnd.rs/) + [UnoCSS](https://uno.antfu.me/) + [TypeScript](https://www.typescriptlang.org/) + [Vite](https://vitejs.dev/). | ||
|
||
![light mode](./public/screenshots/light.png) | ||
![dark mode](./public/screenshots/dark.png) | ||
|
||
|
||
| ||
|
||
## Usage | ||
|
||
Clone the repo and install dependencies: | ||
|
||
```bash | ||
pnpm install | ||
``` | ||
|
||
Start dev server (with hot reloading): | ||
|
||
```bash | ||
pnpm dev | ||
``` | ||
|
||
Build for production with minification to the `dist` folder: | ||
|
||
```bash | ||
pnpm build | ||
``` | ||
|
||
|
||
| ||
|
||
## Changelog | ||
|
||
- **Update 2023.06.26**: Improve [FaceTime](https://support.apple.com/en-us/HT208176). | ||
|
||
- **Update 2023.06.25**: Add [Typora](https://typora.io/), built on top of [Milkdown](https://milkdown.dev/). | ||
|
||
- **Update 2021.12.05**: Simulated the device's actual battery state using [Battery API](https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API), displaying 100% charge on [unsupported browsers](https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API#browser_compatibility). | ||
|
||
- **Update 2021.12.05**: Refactored for cleaner code by utilizing functional components and hooks. Refer to [this branch](https://github.com/Renovamen/playground-macos/tree/class-component) for the previous version implemented with class components. | ||
|
||
|
||
| ||
|
||
## Credits | ||
|
||
- macOS | ||
- [Monterey](https://www.apple.com/macos/monterey/) | ||
- [Catalina](https://www.apple.com/bw/macos/catalina/) | ||
- [macOS Icon Gallery](https://www.macosicongallery.com/) | ||
- [sindresorhus/file-icon-cli](https://github.com/sindresorhus/file-icon-cli) | ||
- [vivek9patel.github.io](https://github.com/vivek9patel/vivek9patel.github.io) | ||
|
||
|
||
| ||
|
||
## License | ||
|
||
[MIT](MIT) |
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,13 @@ | ||
import { renovamen } from "@renovamen/eslint-config"; | ||
|
||
const configs = renovamen({ | ||
files: ["**/*.ts", "**/*.tsx"], | ||
rules: { | ||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"react/jsx-no-undef": "off" | ||
} | ||
}); | ||
|
||
export default configs; |
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,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Xiaohan Zou's portfolio in macOS style." | ||
/> | ||
|
||
<link rel="icon" href="/logo/favicon.svg" /> | ||
<link rel="apple-touch-icon" href="/logo/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="/manifest.json" /> | ||
|
||
<title>Martial Laubier Portfolio</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
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,67 @@ | ||
{ | ||
"name": "playground-macos", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"build": "vite build", | ||
"dev": "vite --host", | ||
"lint": "eslint .", | ||
"prepare": "husky", | ||
"serve": "vite preview --host" | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts,tsx}": "eslint --fix", | ||
"package.json": "sort-package-json" | ||
}, | ||
"prettier": "@renovamen/prettier-config", | ||
"dependencies": { | ||
"@milkdown/core": "^7.3.6", | ||
"@milkdown/plugin-history": "^7.3.6", | ||
"@milkdown/plugin-listener": "^7.3.6", | ||
"@milkdown/preset-commonmark": "^7.3.6", | ||
"@milkdown/preset-gfm": "^7.3.6", | ||
"@milkdown/react": "^7.3.6", | ||
"@rooks/use-raf": "^4.11.2", | ||
"date-fns": "^3.6.0", | ||
"dotenv": "^16.4.5", | ||
"env": "^0.0.2", | ||
"framer-motion": "^11.1.7", | ||
"katex": "^0.16.10", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-markdown": "^9.0.1", | ||
"react-rangeslider": "2.2.0", | ||
"react-rnd": "^10.4.10", | ||
"react-syntax-highlighter": "^15.5.0", | ||
"react-webcam": "^7.2.0", | ||
"web-vitals": "^3.5.2", | ||
"zustand": "^4.5.2" | ||
}, | ||
"devDependencies": { | ||
"@iconify/json": "^2.2.205", | ||
"@renovamen/eslint-config": "^0.1.7", | ||
"@renovamen/prettier-config": "^0.1.7", | ||
"@types/node": "^20.12.8", | ||
"@types/react": "^18.3.1", | ||
"@types/react-dom": "^18.3.0", | ||
"@types/react-rangeslider": "^2.2.7", | ||
"@types/react-syntax-highlighter": "^15.5.11", | ||
"@unocss/reset": "^0.59.4", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"eslint": "^8.57.0", | ||
"husky": "^9.0.11", | ||
"lint-staged": "^15.2.2", | ||
"pnpm": "^9.0.6", | ||
"rehype-external-links": "^3.0.0", | ||
"rehype-katex": "7.0.0", | ||
"remark-gfm": "4.0.0", | ||
"remark-math": "6.0.0", | ||
"sort-package-json": "^2.10.0", | ||
"taze": "^0.13.8", | ||
"typescript": "^5.4.5", | ||
"unocss": "^0.59.4", | ||
"unplugin-auto-import": "^0.17.5", | ||
"vite": "^5.2.10" | ||
}, | ||
"packageManager": "pnpm@9.0.6" | ||
} |
Oops, something went wrong.