Skip to content

Commit

Permalink
image compressing
Browse files Browse the repository at this point in the history
  • Loading branch information
Nobatgeldi committed Oct 17, 2023
1 parent 1904aa3 commit 689fcc7
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 3 deletions.
Binary file added public/covisart/images/ngs/JustSim.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/JustSim_icon.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/RaceSeat.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/RaceSeat_icon.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/black.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/cockpit.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/cockpit_icon.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/green.webp
Binary file not shown.
Binary file added public/covisart/images/ngs/grey.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions src/covisart/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export default function Configuration() {
}

function NGS(name) {
const motorImage = './covisart/images/ngs/' + name + '.png'
const motorImage = './covisart/images/ngs/' + name + '.webp'
return (
<img id={name} style={{ borderRadius: "10%",position: "relative"}} src={motorImage} alt={name} />
)
}
function NGS_A(name) {
const motorImage = './covisart/images/ngs/' + name + '.png'
const motorImage = './covisart/images/ngs/' + name + '.webp'
return (
<img id={name} style={{ borderRadius: "10%", position: "absolute", top:0, left:0}} src={motorImage} alt={name} />
)
Expand Down
2 changes: 1 addition & 1 deletion src/covisart/Selections/AccessorySelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Customizer() {
}

function Accessory(name, selected) {
const sizeImage = './covisart/images/ngs/' + name + '_icon.png'
const sizeImage = './covisart/images/ngs/' + name + '_icon.webp'
return (
<div key={name} className={selected} style={{ height: "20%", width: "20%", textAlign: "center", wordWrap:"break-word" }} onClick={() => {name !='cockpit' && (state.accessory = name)}}>
{
Expand Down

0 comments on commit 689fcc7

Please sign in to comment.