GithubHelp home page GithubHelp logo

renovamen / playground-macos Goto Github PK

View Code? Open in Web Editor NEW
3.1K 21.0 311.0 35.34 MB

My portfolio website simulating macOS's GUI, developed with React and UnoCSS.

Home Page: https://portfolio.zxh.me

License: MIT License

HTML 0.88% CSS 5.81% TypeScript 93.10% JavaScript 0.22%
react tailwindcss typescript vite portfolio zustand

playground-macos's Introduction

playground-macos

My portfolio website simulating macOS's GUI: https://portfolio.zxh.io

Powered by React + Zustand + UnoCSS + TypeScript + Vite.

light mode dark mode

 

Usage

Clone the repo and install dependencies:

pnpm install

Start dev server (with hot reloading):

pnpm dev

Build for production with minification to the dist folder:

pnpm build

 

Changelog

  • Update 2023.06.26: Improve FaceTime.

  • Update 2023.06.25: Add Typora, built on top of Milkdown.

  • Update 2021.12.05: Simulated the device's actual battery state using Battery API, displaying 100% charge on unsupported browsers.

  • Update 2021.12.05: Refactored for cleaner code by utilizing functional components and hooks. Refer to this branch for the previous version implemented with class components.

 

Credits

 

License

MIT

playground-macos's People

Contributors

jacobgo avatar lilimul avatar louisyoungx avatar renovamen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

playground-macos's Issues

clock is outdated

Your setInterval on your new Date in state doesnt seem to be working. Clock is out of date.

Well done!

Just wanted to congratulate you for your own portfolio. It's very complex and complete at the same time. Would be cool if you could create a framework out of this.

Nevertheless I had some fun looking at it. Thanks :)

app内文字模糊

大佬的项目很酷炫!但我遇到了个问题

浏览器:Edge91.0.864.37

比如自带的Bear中,projects页:
image
然而profile是正常的:
image

我将app链接替换为自己的,果然也糊了(红框处是浏览器单独打开的效果):
image

Resizing the safari window beyond some size pulls in the wallpaper

As title says, if I resize Safari (only at the initial page), beyond some size the wallpaper is bleeding through instead of it being the default Safari app. I don't think this is the behavior on MacOS but maybe it has changed in the more recent release in which case please ignore.

Apple Icon Dropdown should overlap Windows.

image
Photo from screenshot using Edge browser in iOS on iPhone XS Max.

In true MacOS, the Apple icon dropdown in the top left would overlay windows. This is not the case in your site.

Either way, awesome site! Good job!

Index.html showing a blank page

Hi, I've made the yarn build, and am trying to run the app using the build folder. It is, however, showing a blank page as in the screensht below:

image

The build was successful, can you let me know what I am doing wrong and how to run the optimised version of the app?

md渲染问题

源文件样式:
image
正常渲染后的样式:
image
macos主页渲染后样式:
image
大概问题就是,原生的html语法再主页项目栏内不兼容,导致主页看起来很怪

Not able to deploy to heroku or github pages

Hi, I'm trying to deploy the app:
On GitHub pages it just shows me the Readme file on the created url.
On Heroku it shows me this error in the logs:

2022-01-15T05:33:45.424226+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp.herokuapp.com request_id=3c64ab79-434e-4b28-bf1f-fb3e3a4c207b fwd="202.89.77.71" dyno= connect= service= status=503 bytes= protocol=https

2022-01-15T05:33:46.475301+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=myapp.herokuapp.com request_id=f5e94d87-a369-45d0-b7ad-f07a26b59377 fwd="202.89.77.71" dyno= connect= service= status=503 bytes= protocol=https

For heroku I'm using this procfile:
web: bin/boot

and this server.js:

var express = require('express');
var app = express();
app.use(express.static(__dirname + '/'));
app.listen(process.env.PORT || 8080);

Please help me deploy this to either of this places

Blocked Google Analytics Crashing Whole Page

Using Firefox + uBlock Origin, the page fails to load due to the error below

Uncaught (in promise) GA4React intialization failed: {"type":"error"}
    onerror ga4manager.tsx:148
    value ga4manager.tsx:144
    value ga4manager.tsx:66
    e index.js:72
    c runtime.js:63
    _invoke runtime.js:293
    T runtime.js:118
    Babel 4
    565 index.js:71
    565 index.js:71
    l (index):1
    t (index):1
    r (index):1
    <anonymous> main.6349041b.chunk.js:1

Use css-property filter to implent brightness justify feature

使用 redux+css: filter( brightness:( 0.x %); ) 应用在界面上就可以超偷鸡地实现控制栏里Brightness的调节功能啦~ 最好加个限制,否则调到0就完全看不到就尴尬了hhh
因为实在太简单所以不好意思提PR,希望龙大人采纳,嗷呜嗷呜🐲

太酷了!

这个项目出现在我的首推页面上,看了一下非常赞!2333,顺便也瞅了一下作者的博客和其他项目,感觉都非常有意思!祝好~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.