Skip to content

Commit

Permalink
♻️ refactor(home): use webp images when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tartari committed Feb 18, 2024
1 parent de164af commit 4c156ad
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 4 deletions.
Binary file added public/images/IIT_Linfa.webp
Binary file not shown.
Binary file added public/images/IIT_Modular.webp
Binary file not shown.
Binary file added public/images/IIT_Modular_Mobile.webp
Binary file not shown.
Binary file added public/images/IIT_Modules.webp
Binary file not shown.
Binary file added public/images/banner-blur.webp
Binary file not shown.
Binary file added public/images/banner.webp
Binary file not shown.
Binary file added public/images/me.webp
Binary file not shown.
Binary file added public/images/recharge_car.webp
Binary file not shown.
Binary file added public/images/thesis.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/molecules/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Hero = (props: { scrollTarget?: React.ForwardedRef<HTMLSelectElement> }) =
minHeight: '100vh',
boxShadow: '0 0.25em 0.5em 0 rgba(0, 0, 0, 0.25)',

backgroundImage: 'url("images/banner-blur.jpg")',
backgroundImage: 'url("images/banner-blur.webp")',
backgroundPosition: 'center center',
backgroundAttachment: 'fixed',
backgroundSize: 'cover',
Expand Down
7 changes: 4 additions & 3 deletions src/components/pages/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const MainPage = () => {
ref={refIITLinfa}
scrollTarget={refIITModular}
anchor="bottom"
image="images/IIT_Linfa.png"
image="images/IIT_Linfa.webp"
title="LINFA: An Intuitive Block-Programming Interface for Reconfigurable Robots"
caption={
<>
Expand All @@ -49,7 +49,7 @@ const MainPage = () => {
anchor="right"
// anchor="left"
image="images/IIT_Modular.png"
mobileImage="images/IIT_Modular_Mobile.png"
mobileImage="images/IIT_Modular_Mobile.webp"
title="Revamping HHCM's Modular: Swift Generation of Modular Robot Models"
caption={
<>
Expand All @@ -71,7 +71,7 @@ const MainPage = () => {
ref={refIITCalibration}
scrollTarget={refWUTThesis}
anchor="left"
image="images/IIT_Modules.jpg"
image="images/IIT_Modules.webp"
title="Automated Actuators and Robotic Modules Calibration"
caption={
<>
Expand All @@ -92,6 +92,7 @@ const MainPage = () => {
ref={refWUTThesis}
anchor="bottom"
image="images/thesis.jpg"
mobileImage="images/thesis.webp"
title="Voice Controlled Mobile Robot for Indoor Applications"
caption={
<>
Expand Down

0 comments on commit 4c156ad

Please sign in to comment.