diff --git a/frontend/public/index.html b/frontend/public/index.html index aa069f2..0fe6747 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -7,7 +7,7 @@ - React App + hMarket - Akıllı Alışveriş Listesi diff --git a/frontend/public/logo192.png b/frontend/public/logo192.png index fc44b0a..ad9fdc0 100644 Binary files a/frontend/public/logo192.png and b/frontend/public/logo192.png differ diff --git a/frontend/public/logo512.png b/frontend/public/logo512.png index a4e47a6..cc566e8 100644 Binary files a/frontend/public/logo512.png and b/frontend/public/logo512.png differ diff --git a/frontend/public/manifest.json b/frontend/public/manifest.json index 080d6c7..e798215 100644 --- a/frontend/public/manifest.json +++ b/frontend/public/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "React App", - "name": "Create React App Sample", + "short_name": "hMarket", + "name": "hMarket - Akıllı Alışveriş Listesi", "icons": [ { "src": "favicon.ico", diff --git a/frontend/src/components/Layout/Navbar.tsx b/frontend/src/components/Layout/Navbar.tsx index 8bb3613..0bb9d17 100644 --- a/frontend/src/components/Layout/Navbar.tsx +++ b/frontend/src/components/Layout/Navbar.tsx @@ -88,7 +88,7 @@ const Navbar: React.FC = () => { - HMarket + hMarket @@ -139,7 +139,7 @@ const Navbar: React.FC = () => { - HMarket + hMarket @@ -188,7 +188,7 @@ const Navbar: React.FC = () => { sx={{ cursor: 'pointer' }} onClick={() => navigate('/dashboard')} > - HMarket + hMarket diff --git a/frontend/src/pages/Auth/LoginPage.tsx b/frontend/src/pages/Auth/LoginPage.tsx index 3f3614b..3822f06 100644 --- a/frontend/src/pages/Auth/LoginPage.tsx +++ b/frontend/src/pages/Auth/LoginPage.tsx @@ -106,7 +106,7 @@ const LoginPage: React.FC = () => { - HMarket + hMarket @@ -250,7 +250,7 @@ const LoginPage: React.FC = () => { {/* Features */} - Neden HMarket? + Neden hMarket? diff --git a/generate_logo.py b/generate_logo.py new file mode 100644 index 0000000..a30ff15 --- /dev/null +++ b/generate_logo.py @@ -0,0 +1,63 @@ +from PIL import Image, ImageDraw, ImageFilter + +def create_hmarket_logo(path, size=512): + # Create image with transparent background + img = Image.new('RGBA', (size, size), (255, 255, 255, 0)) + draw = ImageDraw.Draw(img) + + # Modern Blue/Teal Gradient simulation + # Let's draw a rounded rectangle background for the icon + padding = size // 8 + rect_shape = [padding, padding, size - padding, size - padding] + corner_radius = size // 6 + + # Draw shadow + shadow_offset = size // 40 + draw.rounded_rectangle( + [padding + shadow_offset, padding + shadow_offset, size - padding + shadow_offset, size - padding + shadow_offset], + radius=corner_radius, + fill=(0, 0, 0, 40) + ) + + # Draw main background circle/rounded rect with gradient + for i in range(size - 2*padding): + # Color from #3a7bd5 to #00d2ff + r = int(58 + (0 - 58) * (i / (size - 2*padding))) + g = int(123 + (210 - 123) * (i / (size - 2*padding))) + b = int(213 + (255 - 213) * (i / (size - 2*padding))) + draw.line([padding + i, padding, padding + i, size - padding], fill=(r, g, b, 255)) + + # Redraw rounded corners mask (to make it look like a rounded rect icon) + mask = Image.new('L', (size, size), 0) + mask_draw = ImageDraw.Draw(mask) + mask_draw.rounded_rectangle(rect_shape, radius=corner_radius, fill=255) + + # Apply mask to gradient + output = Image.new('RGBA', (size, size), (255, 255, 255, 0)) + output.paste(img, (0, 0), mask=mask) + + # Draw Shopping Cart Icon (Simplified white vector style) + draw_icon = ImageDraw.Draw(output) + s = size // 10 # scale factor + + # Cart body + cart_color = (255, 255, 255, 255) + # Handle and frame + draw_icon.line([3*s, 3*s, 3.5*s, 3*s, 4*s, 6*s, 7.5*s, 6*s], fill=cart_color, width=s//3) + # Basket + draw_icon.polygon([4*s, 4*s, 7.5*s, 4*s, 7*s, 5.5*s, 4.5*s, 5.5*s], fill=cart_color) + # Wheels + draw_icon.ellipse([4.2*s, 6.2*s, 4.8*s, 6.8*s], fill=cart_color) + draw_icon.ellipse([6.7*s, 6.2*s, 7.3*s, 6.8*s], fill=cart_color) + + # Save + output.save(path) + return output + +# Generate both sizes +logo512 = create_hmarket_logo("/home/hololu/calismalar/hMarket/frontend/public/logo512.png", 512) +logo192 = logo512.resize((192, 192), Image.LANCZOS) +logo192.save("/home/hololu/calismalar/hMarket/frontend/public/logo192.png") +logo512.save("/home/hololu/calismalar/hmarket-logo.png") # Extra copy for OAuth screen + +print("Logolar başarıyla oluşturuldu.") diff --git a/generate_logo_orange.py b/generate_logo_orange.py new file mode 100644 index 0000000..e9a4462 --- /dev/null +++ b/generate_logo_orange.py @@ -0,0 +1,60 @@ +from PIL import Image, ImageDraw + +def create_orange_logo(path, size=512): + # Base image + img = Image.new('RGBA', (size, size), (255, 255, 255, 0)) + draw = ImageDraw.Draw(img) + + # Background color #FF5722 + bg_color = (255, 87, 34, 255) + + padding = size // 10 + corner_radius = size // 6 + draw.rounded_rectangle( + [padding, padding, size - padding, size - padding], + radius=corner_radius, + fill=bg_color + ) + + # Scale for the 24x24 SVG path + # We want the icon to fit in the center, say 60% of the box + icon_size = size * 0.55 + offset = (size - icon_size) / 2 + scale = icon_size / 24 + + def scale_pt(x, y): + return (offset + x * scale, offset + y * scale) + + # Drawing the cart manually based on the SVG path logic + # Wheels + r_wheel = 1 * scale + w1_c = scale_pt(7, 20) + draw.ellipse([w1_c[0]-r_wheel, w1_c[1]-r_wheel, w1_c[0]+r_wheel, w1_c[1]+r_wheel], fill="white") + + w2_c = scale_pt(17, 20) + draw.ellipse([w2_c[0]-r_wheel, w2_c[1]-r_wheel, w2_c[0]+r_wheel, w2_c[1]+r_wheel], fill="white") + + # The main body path + # M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2z + # Simplified polygon for the cart body + points = [ + scale_pt(1, 2), scale_pt(1, 4), scale_pt(3, 4), + scale_pt(6.6, 11.59), scale_pt(5.25, 14.04), + scale_pt(5.25, 15), scale_pt(7, 17), scale_pt(19, 17), + scale_pt(19, 15), scale_pt(7.42, 15), scale_pt(8.35, 13.37), + scale_pt(15.8, 13.37), scale_pt(17.55, 12.34), scale_pt(21.13, 5.85), + scale_pt(21.25, 5.37), scale_pt(20.25, 4.37), scale_pt(5.21, 4.37), + scale_pt(4.27, 2.37) + ] + draw.polygon(points, fill="white") + + # Save + img.save(path) + +create_orange_logo("/home/hololu/calismalar/hMarket/frontend/public/logo512.png", 512) +create_orange_logo("/home/hololu/calismalar/hmarket-logo.png", 512) +img_512 = Image.open("/home/hololu/calismalar/hMarket/frontend/public/logo512.png") +img_192 = img_512.resize((192, 192), Image.LANCZOS) +img_192.save("/home/hololu/calismalar/hMarket/frontend/public/logo192.png") + +print("Yeni turuncu logolar oluşturuldu.") diff --git a/logo_temp.html b/logo_temp.html new file mode 100644 index 0000000..36a31a0 --- /dev/null +++ b/logo_temp.html @@ -0,0 +1,39 @@ + + + + + + +
+ + + +
+ +