Skip to content

Commit

Permalink
General code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesalmeida committed Oct 3, 2024
1 parent 7127c58 commit df9597b
Show file tree
Hide file tree
Showing 29 changed files with 32 additions and 166 deletions.
38 changes: 5 additions & 33 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/* .open-sans {
font-family: "Open Sans", sans-serif;
font-optical-sizing: auto;
font-weight: <weight>;
font-style: normal;
font-variation-settings:
"wdth" 100;
} */

html, body { width:100%; overflow: hidden; }

#root {
Expand All @@ -22,13 +13,11 @@ html, body { width:100%; overflow: hidden; }
background-color: #000000;
box-sizing: border-box;
padding: 2%;
/* padding: 30px; */
aspect-ratio: 16 / 9;
max-height: 748px;
max-width: 1366px;
margin: 0 auto 20px;
border-radius: 3.5% / 5%;
/* border-radius: 35px; */
border: 2px solid grey;
position: relative;
-webkit-box-shadow: 0 5.5px 15px 3px rgba(0, 0, 0, 0.26);
Expand Down Expand Up @@ -56,7 +45,6 @@ html, body { width:100%; overflow: hidden; }

.horizontalPanelGroup {
height: 87% !important;
/* border-radius: 15px 15px 0px 0px; */
border-radius: 1.5% / 3%;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
Expand All @@ -66,7 +54,6 @@ html, body { width:100%; overflow: hidden; }
background-color: #f1f1f1;
width: 100%;
height: 100%;
/* height: calc(68vh - 0px); */
display: flex;
flex-direction: column;
z-index: 4;
Expand All @@ -75,9 +62,7 @@ html, body { width:100%; overflow: hidden; }
}

.panelResizeHandle {
/* background-color: rgb(210, 210, 210); */
background-color: #f1f1f1;
/* width: 5px; */
z-index: 4;
width: 0.3%;
}
Expand All @@ -100,7 +85,6 @@ html, body { width:100%; overflow: hidden; }
.rightPanel {
background-color: #f1f1f1;
position: relative;
/* box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px; */
}

.carStatusIcons {
Expand All @@ -111,10 +95,6 @@ html, body { width:100%; overflow: hidden; }
padding: 0.5% 1% 0.5% 3%;
display: flex;
flex-direction: column;
/* flex-wrap: wrap;
align-content: center;
justify-content: space-between;
align-items: center; */
}

.topBarCarStatusIcons {
Expand All @@ -140,8 +120,6 @@ html, body { width:100%; overflow: hidden; }
}

.drivingGearIcons {
/* display: flex; */
/* justify-content: space-around; */
display: grid;
grid-template-columns: repeat(4, 1fr);
margin-top: 10px;
Expand Down Expand Up @@ -223,7 +201,6 @@ html, body { width:100%; overflow: hidden; }
width: 40px;
position: relative;
top: 15px;
/* opacity: 0; */
}

.speedLimit {
Expand Down Expand Up @@ -270,7 +247,6 @@ html, body { width:100%; overflow: hidden; }
.toggleLocks {
position: relative;
left: 34%;
/* top: -50%; */
z-index: 2;
width: 40px;
display: flex;
Expand Down Expand Up @@ -338,7 +314,7 @@ html, body { width:100%; overflow: hidden; }
text-align: center;
color: #d0d0d0;
font-size: 20px;
position: relative; /* Add this */
position: relative;
}

.small-screen-message span {
Expand All @@ -350,7 +326,8 @@ html, body { width:100%; overflow: hidden; }
}


/* For smaller screens but larger than mobile */
/* -------------------- MEDIA QUERIES -------------------- */

@media screen and (max-width: 768px) {
#root {
padding: 120px 5px;
Expand Down Expand Up @@ -378,12 +355,9 @@ html, body { width:100%; overflow: hidden; }
}
}

/* Media query for mobile devices in landscape mode */
/* -------------------- Media query for mobile devices in LANDSCAPE MODE -------------------- */
@media only screen and (max-device-width: 896px) and (orientation: landscape) {
body {
/* margin-left: 30px; */
/* background-color: #000000; */
}
/* body {} */

#root {
height: 100dvh;
Expand All @@ -405,7 +379,6 @@ html, body { width:100%; overflow: hidden; }
max-height: unset !important;
max-width: unset !important;
padding: 0px !important;
/* position: relative; */
}

.displayWrapper {
Expand Down Expand Up @@ -463,7 +436,6 @@ html, body { width:100%; overflow: hidden; }
}



/* -------------------- UTILITY CSS -------------------- */

.no-select {
Expand Down
3 changes: 1 addition & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,7 @@ function App() {
return () => {
window.removeEventListener('keydown', handleKeyDown);
};
}, [leftTurnSignal, rightTurnSignal]); // Add dependencies

}, [leftTurnSignal, rightTurnSignal]);
return (
<CarLockProvider>
<UserProfileProvider>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Apps/AppleMusic/AppleMusic.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const AppleMusic = () => {
return (
<div className="apple-music">
<h2>Apple Music</h2>
{/* Add your component-specific content here */}
{/* Add component-specific content here */}
</div>
);
};
2 changes: 0 additions & 2 deletions src/components/Apps/Arcade/Arcade.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
position: absolute;
top: 74%;
left: 3%;
/* transform: translate(-50%, -50%); */
display: flex;
flex-direction: row;
align-items: center;
Expand Down Expand Up @@ -93,7 +92,6 @@
}

.game-carousel img.active {
/* border-color: #007bff; */
opacity: 1;
}

Expand Down
7 changes: 0 additions & 7 deletions src/components/Apps/BackupCam/BackupCam.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
margin: 0 auto;
padding: 1.5%;
height: 100%;
/* background-color: red;
width: 500px;
height: 500px;
position: relative;
top: 0px;
left: 0px; */
}

.cameraWrapper video {
Expand All @@ -19,7 +13,6 @@
.loadingPlaceholder {
width: 100%;
height: 100%;
/* min-height: 400px; */
display: flex;
justify-content: center;
align-items: center;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Apps/Calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const Calendar = () => {
return (
<div className="calendar">
<h2>Calendar</h2>
{/* Add your component-specific content here */}
{/* Add component-specific content here */}
</div>
);
};
8 changes: 0 additions & 8 deletions src/components/Apps/CarSettings/CarSettings.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@
display: flex;
justify-content: space-between;
align-items: center;
/* padding: 0px 10px 5px; */
border-bottom: 1px solid #ccc;
grid-column: 1 / 3;
grid-row: 1 / 2;
max-height: 30px;
padding: 5px 10px 10px;
/* position: fixed; */
}

.top-bar-item img {
Expand Down Expand Up @@ -155,14 +153,9 @@
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
/* height: 40px; */
/* background-color: #f0f0f0; */
/* border: 1px solid #ccc; */
width: 100%;
text-align: center;
border-radius: 5px;
/* border-top-left-radius: 10px;
border-top-right-radius: 10px; */
}

.btn:hover {
Expand Down Expand Up @@ -200,7 +193,6 @@
.row-2 div,
.row-3 div,
.row-5 div {
/* margin: 0px; */
padding: 5% 0%;
background-color: #f0f0f0;
flex: 1;
Expand Down
1 change: 0 additions & 1 deletion src/components/Apps/Dashcam/Dashcam.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.dashcam-container {
/* padding: 20px; */
text-align: center;
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Apps/Dashcam/Dashcam.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function Dashcam() {
};

// YouTube video ID
const videoId = '5gFR3sMWSO0'; // Replace with your desired video ID
const videoId = '5gFR3sMWSO0'; // Video ID for speicific video to play on load.

return (
<div className="dashcam-container">
Expand Down
1 change: 1 addition & 0 deletions src/components/Apps/Podcasts/Podcasts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* .podcasts {} */
2 changes: 1 addition & 1 deletion src/components/Apps/Podcasts/Podcasts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const Podcasts = () => {
return (
<div className="podcasts">
<h2>Podcasts</h2>
{/* Add your component-specific content here */}
{/* Add component-specific content here */}
</div>
);
};
2 changes: 1 addition & 1 deletion src/components/Apps/Theater/Theater.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Theater = () => {
<div className="theaterWrapper">
<h2>Theater</h2>
<p>Coming Soon...</p>
{/* Add your component-specific content here */}
{/* Add component-specific content here */}
</div>
);
};
2 changes: 1 addition & 1 deletion src/components/Apps/Toybox/Toybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Toybox = () => {
<div className="toyboxWrapper">
<h2>Toybox</h2>
<p>Coming Soon...</p>
{/* Add your component-specific content here */}
{/* Add component-specific content here */}
</div>
);
};
4 changes: 1 addition & 3 deletions src/components/BatteryStatus/BatteryStatus.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@
transition: width 0.3s ease-in-out;
}

.batteryStatus {
/* Add any additional styles you need */
}
/* .batteryStatus {} */
9 changes: 0 additions & 9 deletions src/components/BtmNavBar/BtmNavBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
position: relative;
height: 13%;
width: 100%;
/* height: calc(10vh - 1px); */
/* width: calc(100vw - 64px); */
/* need to account for the 1px border in the width and height */
border-left: 1px solid #343434;
border-right: 1px solid #343434;
Expand All @@ -18,11 +16,9 @@
color: white;
display: grid;
grid-template-columns: 8% 19% 48% 25%;
/* grid-gap: 10px; */
align-items: center;
height: 100%;
text-align: center;
/* padding: 0 20px; */
}

.navIconWrapper {
Expand Down Expand Up @@ -51,17 +47,13 @@
.dockApps {
display: flex;
flex-direction: row;
/* justify-content: space-between; */
justify-self: center;
align-items: center;
/* height: 100%; */
/* width: 100%; */
}

.navIcons {
height: 45%;
width: 45%;
/* width: 40px; */
padding: 0 15px;
transition: transform 0.1s ease-in-out, filter 0.1s ease-in-out;
}
Expand All @@ -84,7 +76,6 @@
}

.car-settings {
/* width: 18%; */
justify-self: start;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/CarLock/CarLock.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

.carLock .unlocked .lock-shackle {
transform: translateX(10px) rotateY(-180deg); /* Adjusted transformation */
transform: translateX(10px) rotateY(-180deg);
}

.carLock .locked {
Expand Down
3 changes: 1 addition & 2 deletions src/components/LoadingScreen/LoadingScreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
width: 10%;
height: auto;
position: absolute;
/* top: 35px; */
animation: spinY 3s infinite linear;
transform-style: preserve-3d;
}
Expand All @@ -43,7 +42,7 @@

.dots {
display: inline-block;
width: 20px; /* Adjust as needed */
width: 20px;
text-align: left;
}

Expand Down
Loading

0 comments on commit df9597b

Please sign in to comment.