Skip to content

Commit 265a7b3

Browse files
added webp files for better page load performance
1 parent d5cdd1b commit 265a7b3

25 files changed

+62
-25
lines changed

.DS_Store

0 Bytes
Binary file not shown.

app/root.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ import type { LinksFunction } from "@remix-run/node";
1010
import "./tailwind.css";
1111

1212
export const links: LinksFunction = () => [
13+
{
14+
rel: "preload",
15+
href: "/folder.webp",
16+
as: "image",
17+
},
18+
{
19+
rel: "preload",
20+
href: "/wallpaper.webp",
21+
as: "image",
22+
},
23+
{
24+
rel: "preload",
25+
href: "/basketball2.webp",
26+
as: "image",
27+
},
1328
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
1429
{
1530
rel: "preconnect",

app/routes/components/AboutMe.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function AboutMe(){
1010
<div className="main-content">
1111
<div className="aboutme-text-container">
1212
<div className="img-container">
13-
<img className="me" src="/groot.gif" />
13+
<img className="me" src="/groot.webp" />
1414
</div>
1515
<span className="introduction">
1616
I'm <strong>Siddharth Mohite</strong>, a full-stack developer with a sharp eye for detail crafting UI components that don’t just function, but captivate.

app/routes/components/Folder.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Folder({filename}){
2020
<div className="folder-image-container">
2121
<img
2222
onClick={handleFileClick}
23-
className={`folder-image ${FileClick ? "active" : ""}`} src="/folder.png"></img>
23+
className={`folder-image ${FileClick ? "active" : ""}`} src="/folder.webp"></img>
2424
<span
2525
className={`folder-name-text ${FileClick ? "active" : ""}`}>{filename}</span>
2626
</div>

app/routes/components/SendAMessage.jsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,20 @@ const handleButtonClose = () =>
6868
className="button-max">
6969

7070
</button>
71-
</div>
71+
</div>
72+
{status && (
73+
<div className={`response-message ${status.type}`}>
74+
{status.message}
75+
</div>
76+
)}
7277
<button onClick={handleSubmit} title="Send" className="send-email">
7378
{loading ? <div className="spinner"></div> : <SendEmailIcon />}
7479
</button>
75-
{status && (
80+
{/* {status && (
7681
<div className={`response-message ${status.type}`}>
7782
{status.message}
7883
</div>
79-
)}
84+
)} */}
8085
</div>
8186
<div className="mail-sender-content">
8287
<div className="input-container">

app/routes/homepage.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ export default function homepage(){
4242

4343

4444
const images = [
45-
{ id: 1, src: "/finder.png", name:"Finder" },
46-
{ id: 2, src: "/mail.png",name:"Contact Me" },
47-
{ id: 3, src: "/news.png" ,name:"Blog"},
48-
{ id: 4, src: "/terminal.png" ,name:"Terminal"},
49-
{ id: 5, src: "/chrome.png",name:"Google Chrome" },
50-
{ id: 6, src: "/calculator.png" ,name:"Calculator"},
51-
{ id: 7, src: "/vscode.png",name:"Visual Studio Code"},
52-
{ id: 8, src: "/trash.png",name:"Trash"}
45+
{ id: 1, src: "/finder.webp", name:"Finder" },
46+
{ id: 2, src: "/mail.webp",name:"Contact Me" },
47+
{ id: 3, src: "/news.webp" ,name:"Blog"},
48+
{ id: 4, src: "/terminal.webp" ,name:"Terminal"},
49+
{ id: 5, src: "/chrome.webp",name:"Google Chrome" },
50+
{ id: 6, src: "/calculator.webp" ,name:"Calculator"},
51+
{ id: 7, src: "/vscode.webp",name:"Visual Studio Code"},
52+
{ id: 8, src: "/trash.webp",name:"Trash"}
5353
];
5454

5555
const updateTime = () =>
@@ -271,16 +271,16 @@ useEffect(() => {
271271
})
272272
{( controlCenterButtonClicked &&
273273
<div className="controlcenter-container">
274-
{/* <FullScreenProvider> */}
275274
<ControlCenter />
276-
{/* </FullScreenProvider> */}
277275
</div>
278276
)}
279277
{( selectedId == 1 &&
280278
<Finder onClose={handleClose} folderId={selectedFolderId || 1}/>
281279
)}
282280
{(selectedId == 2 &&
281+
<div className="contact-me-container">
283282
<SendAMessage onClose={handleClose} />
283+
</div>
284284
)}
285285
({
286286
selectedId == 6 &&
@@ -387,7 +387,7 @@ useEffect(() => {
387387
</div>
388388
<div
389389
className="overlay-topbar__siri">
390-
<img className="overlay-topbar__siri-img" src="/Siri.png"/>
390+
<img className="overlay-topbar__siri-img" src="/Siri.webp"/>
391391
</div>
392392
<span className="overlay-topbar__day-text">
393393
{dayState} {monthState} {dateState}
@@ -415,7 +415,7 @@ useEffect(() => {
415415
<img
416416
src={image.src}
417417
alt={`Image ${image.id}`}
418-
data-id={image.id} //
418+
data-id={image.id}
419419
className="overlay-downbar__image"></img>
420420
{selectedId == image.id &&(
421421
<div className="overlay-downbar__image-notifier"/>

app/routes/styles/SendAMessage.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
.mail-topbar{
1212
display: flex;
1313
flex-direction: row;
14+
justify-content: space-between;
1415
height: 4rem;
1516
background-color: rgb(243, 239, 239);
1617
border-radius: 0.5rem;
@@ -68,7 +69,7 @@
6869
}
6970

7071
.send-email{
71-
margin-bottom: 0.5rem;
72+
margin-right:2rem;
7273
}
7374

7475
.input-container,
@@ -115,7 +116,7 @@
115116
.response-message {
116117
margin-top: 10px;
117118
margin-left: auto;
118-
margin-right: 10px;
119+
margin-right: auto;
119120
padding: 10px;
120121
text-align: center;
121122
font-weight: bold;

app/routes/styles/homepage.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,20 @@
8787
border-radius: 0.75rem;
8888
z-index: -1; /* Send background to back */
8989
}
90+
.contact-me-container{
91+
display: flex;
92+
overflow:hidden;
93+
position: absolute; /* Add this */
94+
left: 50%;
95+
top: 50%;
96+
transform: translate(-50%, -50%);
97+
width: 70vw;
98+
height: 70vh;
99+
z-index: 30;
100+
border-radius: 12px;
101+
transition: all 0.3s ease;
90102

103+
}
91104
.calculator{
92105
z-index:50;
93106
// height: 30vh;
@@ -103,6 +116,15 @@
103116
left: 0;
104117
z-index: 1;
105118
}
119+
.background-image{
120+
width: 100%;
121+
height: 100%;
122+
object-fit: cover; /* Equivalent to object-cover */
123+
position: absolute;
124+
top: 0;
125+
left: 0;
126+
z-index:0;
127+
}
106128

107129
.folder-wrapper{
108130
position:absolute;

public/.DS_Store

0 Bytes
Binary file not shown.

public/10sec.mp4

Lines changed: 0 additions & 3 deletions
This file was deleted.

public/22sec.mp4

Lines changed: 0 additions & 3 deletions
This file was deleted.

public/Siri.webp

55.4 KB
Binary file not shown.

public/backdrop3.webp

380 KB
Binary file not shown.

public/basketball.png

-5.76 MB
Binary file not shown.

public/basketball1.png

-40.8 KB
Binary file not shown.

public/calculator.webp

18 KB
Binary file not shown.

public/chrome.webp

12.9 KB
Binary file not shown.

public/finder.webp

21.7 KB
Binary file not shown.

public/folder.webp

77.5 KB
Binary file not shown.

public/groot.webp

506 KB
Binary file not shown.

public/mail.webp

19.7 KB
Binary file not shown.

public/news.webp

19.6 KB
Binary file not shown.

public/terminal.webp

16.9 KB
Binary file not shown.

public/trash.webp

51.2 KB
Binary file not shown.

public/vscode.webp

42.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)