Skip to content

Commit 4e785ae

Browse files
committed
icons small fix
1 parent fb67363 commit 4e785ae

7 files changed

Lines changed: 228 additions & 125 deletions

components/Windows98Contact.jsx

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
"use client";
22

33
import React, { useState } from 'react';
4+
import Image from 'next/image';
45
import Windows98Window from './Windows98Window';
56

7+
import envelope_closed_icon from '@/public/icons/win98/png/envelope_closed-0.png';
8+
import envelope_open_icon from '@/public/icons/win98/png/envelope_open_sheet-0.png';
9+
import refresh_icon from '@/public/icons/win98/png/overlay_refresh-0.png';
10+
import phone_icon from '@/public/icons/win98/png/world_phonereceiver.png';
11+
import globe_map_icon from '@/public/icons/win98/png/globe_map-0.png';
12+
613
const Win98_contact = ({ onClose, onFocus, isActive, zIndex }) => {
714
const [form_data, set_form_data] = useState({
815
name: "",
@@ -63,7 +70,7 @@ const Win98_contact = ({ onClose, onFocus, isActive, zIndex }) => {
6370
return (
6471
<Windows98Window
6572
title = "Contact Form"
66-
icon = "./icons/win98/png/envelope_closed-0.png"
73+
icon = {envelope_closed_icon}
6774
onClose = {onClose}
6875
onFocus = {onFocus}
6976
isActive = {isActive}
@@ -149,10 +156,12 @@ const Win98_contact = ({ onClose, onFocus, isActive, zIndex }) => {
149156
justifyContent: 'center'
150157
}}
151158
>
152-
<img
153-
src = "./icons/win98/png/envelope_open_sheet-0.png"
159+
<Image
160+
src = {envelope_open_icon}
154161
alt = "Send"
155-
style = {{ width: '16px', height: '16px', imageRendering: 'pixelated' }}
162+
width = {16}
163+
height = {16}
164+
style = {{ imageRendering: 'pixelated' }}
156165
onError = {(e) => {
157166
e.target.style.display = 'none';
158167
e.target.insertAdjacentHTML('afterend', '<span>📧</span>');
@@ -172,10 +181,12 @@ const Win98_contact = ({ onClose, onFocus, isActive, zIndex }) => {
172181
justifyContent: 'center'
173182
}}
174183
>
175-
<img
176-
src = "./icons/win98/png/overlay_refresh-0.png"
184+
<Image
185+
src = {refresh_icon}
177186
alt = "Clear"
178-
style = {{ width: '16px', height: '16px', imageRendering: 'pixelated' }}
187+
width = {16}
188+
height = {16}
189+
style = {{ imageRendering: 'pixelated' }}
179190
onError = {(e) => {
180191
e.target.style.display = 'none';
181192
e.target.insertAdjacentHTML('afterend', '<span>🔄</span>');
@@ -193,10 +204,12 @@ const Win98_contact = ({ onClose, onFocus, isActive, zIndex }) => {
193204
<legend style = {{ fontWeight: 'bold' }}>📞 Contact Information</legend>
194205
<div style = {{ padding: '10px' }}>
195206
<div style = {{ marginBottom: '8px', display: 'flex', alignItems: 'center' }}>
196-
<img
197-
src = "./icons/win98/png/envelope_closed-0.png"
207+
<Image
208+
src = {envelope_closed_icon}
198209
alt = "Email"
199-
style = {{ width: '16px', height: '16px', imageRendering: 'pixelated', marginRight: '8px' }}
210+
width = {16}
211+
height = {16}
212+
style = {{ imageRendering: 'pixelated', marginRight: '8px' }}
200213
onError = {(e) => {
201214
e.target.style.display = 'none';
202215
e.target.insertAdjacentHTML('afterend', '<span>📧</span>');
@@ -205,10 +218,12 @@ const Win98_contact = ({ onClose, onFocus, isActive, zIndex }) => {
205218
<strong>Email:</strong>&nbsp;maksym.kopychko@gmail.com
206219
</div>
207220
<div style = {{ marginBottom: '8px', display: 'flex', alignItems: 'center' }}>
208-
<img
209-
src = "./icons/win98/png/world_phonereceiver.png"
221+
<Image
222+
src = {phone_icon}
210223
alt = "Phone"
211-
style = {{ width: '16px', height: '16px', imageRendering: 'pixelated', marginRight: '8px' }}
224+
width = {16}
225+
height = {16}
226+
style = {{ imageRendering: 'pixelated', marginRight: '8px' }}
212227
onError = {(e) => {
213228
e.target.style.display = 'none';
214229
e.target.insertAdjacentHTML('afterend', '<span>📞</span>');
@@ -217,10 +232,12 @@ const Win98_contact = ({ onClose, onFocus, isActive, zIndex }) => {
217232
<strong>Phone:</strong>&nbsp;+380669702817
218233
</div>
219234
<div style = {{ marginBottom: '8px', display: 'flex', alignItems: 'center' }}>
220-
<img
221-
src = "./icons/win98/png/globe_map-0.png"
235+
<Image
236+
src = {globe_map_icon}
222237
alt = "Location"
223-
style = {{ width: '16px', height: '16px', imageRendering: 'pixelated', marginRight: '8px' }}
238+
width = {16}
239+
height = {16}
240+
style = {{ imageRendering: 'pixelated', marginRight: '8px' }}
224241
onError = {(e) => {
225242
e.target.style.display = 'none';
226243
e.target.insertAdjacentHTML('afterend', '<span>🌍</span>');

0 commit comments

Comments
 (0)