Skip to content

Commit e49a10b

Browse files
committed
working changes
1 parent b1727ab commit e49a10b

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ Hey there, welcome to my personal website.
44
This is a portfolio website built on the theme of MacOS made with ReactJs and TailwindCSS.
55
This is currently under development.
66

7-
# UNDER DEVELOPMENT :construction: on :apple:
7+
88

99
## Features present currently
1010

1111
* MacOs Bash terminal support for basic commands like ls, cd ,clear.
1212
* Opening of multiple windows
1313
* Changing of desktop background
14-
* And Obviously - My Portfolio in a window ( working on it).
14+
* And Obviously - My Portfolio in a window ( about me ).
15+
* Spotlight ( ctrl + space to activate )
16+
1517

1618
## Contributions are most welcome
1719

src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const Component = () => {
6363
const Stacks = () => {
6464
const [state, dispatch] = useContext(Context);
6565
return (
66-
<div className="absolute right-0 mr-10 flex flex-col bg-transparent z-10">
66+
<div className="absolute right-0 mr-10 flex flex-col bg-transparent" style={{zIndex : 5}}>
6767
<img src={HDD} className="m-4 mb-0 h-12 w-12 md:h-16 md:w-16 shadow-xl" />
6868
<div className="text-xs text-white ml-1 font-black mt-2">Macintosh HD</div>
6969
<div className="cursor-pointer focus:bg-gray-400 z-10"

src/Components/Profile.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ const Profile = (props) => {
8888
<div className="md:flex hidden flex-col w-1/4 md:w-1/5 h-full bg-gray-200 dark:bg-gray-700 text-sm overflow-y-auto rounded-bl-xl" style={{height : context.height }}>
8989
{renderNavLinks()}
9090
</div>
91-
<div onClick={() => showNavbar(!navbar)} className="md:hidden flex flex-col items-center justify-center absolute bg-ub-cool-grey rounded w-6 h-6 top-1 left-1">
92-
<div className=" w-3.5 border-t border-black"></div>
93-
<div className=" w-3.5 border-t border-black" style={{ marginTop: "2pt", marginBottom: "2pt" }}></div>
94-
<div className=" w-3.5 border-t border-black"></div>
95-
<div className={(navbar ? " visible animateShow z-30 " : " invisible ") + " md:hidden text-xs absolute bg-ub-cool-grey py-0.5 px-1 rounded-sm top-full mt-1 left-0 shadow border-black border border-opacity-20"}>
91+
<div onClick={() => showNavbar(!navbar)} className="md:hidden flex flex-col items-center justify-center absolute rounded w-6 h-6 top-1 left-1">
92+
<div className=" w-3.5 border-t border-black dark:border-white"></div>
93+
<div className=" w-3.5 border-t border-black dark:border-white" style={{ marginTop: "2pt", marginBottom: "2pt" }}></div>
94+
<div className=" w-3.5 border-t border-black dark:border-white"></div>
95+
<div className={(navbar ? " visible animateShow z-30 " : " invisible ") + " md:hidden text-xs absolute py-0.5 px-1 rounded-sm top-full mt-1 left-0 shadow border-black border border-opacity-20"}>
9696
{renderNavLinks()}
9797
</div>
9898
</div>

src/Components/Spotlight.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ const SpotLight = () => {
8686
if ( index === 0) {
8787
dispatch({ type: "NEW_WINDOW", payload: { id: 'TERMINAL', header: true, title: "Terminal" } })
8888
} else if ( index === 1 ){
89-
dispatch({ type: "NEW_WINDOW", payload: { id: 'RANDOM', header: true, title: "Mail" } })
89+
dispatch({ type: "NEW_WINDOW", payload: { id: 'MAIL', header: true, title: "Mail" } })
9090
} else if ( index === 2 ){
91-
dispatch({ type: "NEW_WINDOW", payload: { id: 'RANDOM', header: true, title: "Finder" } })
91+
dispatch({ type: "NEW_WINDOW", payload: { id: 'PROFILE', header: true, title: "Finder" } })
9292
}
9393
setShow(false);
9494

src/Components/Terminal.js

+7
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ const Terminal = (props) => {
321321
processStatement();
322322
}
323323
}
324+
325+
if (window.screen.width < 500) {
326+
context = {
327+
height: "30rem",
328+
width: (window.screen.width - 200) + "px"
329+
}
330+
}
324331

325332

326333
return (

src/draggable.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const Draggable = (props) => {
1010

1111

1212
const [ currHeight , setHeigth ] = React.useState("30rem");
13-
const [ currWidth , setWidth ] = React.useState("40rem");
13+
const [ currWidth , setWidth ] = React.useState( "40rem");
14+
1415

1516
const currState = React.useRef(state);
1617

@@ -260,7 +261,7 @@ const Draggable = (props) => {
260261
}
261262

262263
function doDrag(e) {
263-
if (startWidth + e.clientX - startX > 480 ){
264+
if (startWidth + e.clientX - startX > 280 ){
264265
elem.style.width = startWidth + e.clientX - startX + "px";
265266
setWidth(elem.style.width);
266267
}
@@ -271,7 +272,7 @@ const Draggable = (props) => {
271272
}
272273

273274
function doDragMinusBoth(e) {
274-
if (startWidth + e.clientX - startX > 480) {
275+
if (startWidth + e.clientX - startX > 280) {
275276
elem.style.width = startWidth - e.clientX + startX + "px";
276277
setWidth(elem.style.width);
277278
}
@@ -287,7 +288,7 @@ const Draggable = (props) => {
287288
if (startWidth - e.clientX + startX !== elem.style.minWidth) {
288289
elem.style.left = e.clientX + "px";
289290
}
290-
if (startWidth + e.clientX - startX > 480) {
291+
if (startWidth + e.clientX - startX > 280) {
291292
elem.style.width = startWidth - e.clientX + startX + "px";
292293
setWidth(elem.style.width);
293294
}
@@ -297,7 +298,7 @@ const Draggable = (props) => {
297298
}
298299
}
299300
function doDragMinusTop(e) {
300-
if (startWidth + e.clientX - startX > 480) {
301+
if (startWidth + e.clientX - startX > 280) {
301302
elem.style.width = startWidth - e.clientX + startX + "px";
302303
setWidth(elem.style.width);
303304
}

0 commit comments

Comments
 (0)