Skip to content

Commit

Permalink
simple logo
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 9, 2024
1 parent 29f3933 commit 4fdbf43
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/dist/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="description" content="Discover InstaChart: Your go-to online tool for effortlessly creating, customizing, and sharing professional charts as images. Ideal for business, academic, or personal use, our platform supports dynamic, real-time chart updates. Perfect for data visualization in presentations, websites, and social media. Easy, fast, and versatile – InstaChart transforms your data into impactful visuals!"><meta name="viewport" content="width=device-width"><link rel="icon" type="image/svg+xml" href="/favicon.ico"><link rel="canonical" href="http://localhost:4321/"><meta name="generator" content="Astro v4.0.8"><title>InstaChart - Generate charts as images online. Embed dynamic charts as images.</title><script async src="https://www.googletagmanager.com/gtag/js?id=G-XZJTXSVNVB"></script><script>window.dataLayer = window.dataLayer || [];
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="description" content="Discover InstaChart: Your go-to online tool for effortlessly creating, customizing, and sharing professional charts as images. Ideal for business, academic, or personal use, our platform supports dynamic, real-time chart updates. Perfect for data visualization in presentations, websites, and social media. Easy, fast, and versatile – InstaChart transforms your data into impactful visuals!"><meta name="viewport" content="width=device-width"><link rel="icon" type="image/svg+xml" href="/favicon.ico"><link rel="canonical" href="http://localhost:4321/"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="InstaChart - Generate charts as images online. Embed dynamic charts as images."><meta name="twitter:description" content="Discover InstaChart: Your go-to online tool for effortlessly creating, customizing, and sharing professional charts as images. Ideal for business, academic, or personal use, our platform supports dynamic, real-time chart updates. Perfect for data visualization in presentations, websites, and social media. Easy, fast, and versatile – InstaChart transforms your data into impactful visuals!"><meta name="twitter:image" content="https://instachart.coveritup.app/logo.png"><meta property="og:url" content="http://localhost:4321/"><meta property="og:type" content="website"><meta property="og:title" content="InstaChart - Generate charts as images online. Embed dynamic charts as images."><meta property="og:description" content="Discover InstaChart: Your go-to online tool for effortlessly creating, customizing, and sharing professional charts as images. Ideal for business, academic, or personal use, our platform supports dynamic, real-time chart updates. Perfect for data visualization in presentations, websites, and social media. Easy, fast, and versatile – InstaChart transforms your data into impactful visuals!"><meta property="og:image" content="https://instachart.coveritup.app/logo.png"><meta property="og:image:width" content="1024"><meta property="og:image:height" content="512"><meta property="og:image:alt" content="Medidation times"><meta property="og:site_name" content="Instachart"><meta property="og:locale" content="en_US"><meta name="theme-color" content="#ffffff"><meta name="color-scheme" content="light dark"><meta name="apple-mobile-web-app-title" content="Instachart"><meta name="application-name" content="Instachart"><meta name="msapplication-TileColor" content="#ffffff"><meta name="msapplication-TileImage" content="/favicon.ico"><meta name="msapplication-config" content="/favicon.ico"><meta name="generator" content="Astro v4.0.8"><title>InstaChart - Generate charts as images online. Embed dynamic charts as images.</title><script async src="https://www.googletagmanager.com/gtag/js?id=G-XZJTXSVNVB"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

Expand Down
Binary file added frontend/dist/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions pkg/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
const (
DOCS_URL = "https://github.com/kevincobain2000/instachart"
FAVICON_FILE = "favicon.ico"
LOGO_FILE = "logo.png"
ROBOTS_FILE = "robots.txt"
ROBOTS_TXT = `User-agent: *
Allow: *
Expand Down Expand Up @@ -52,6 +53,16 @@ func SetupRoutes(e *echo.Echo, baseURL string, publicDir embed.FS, allowedRemote
SetHeadersResponseImage(c.Response().Header(), "png")
return c.Blob(http.StatusOK, "image/x-icon", content)
})
// /logo.png
e.GET(baseURL+LOGO_FILE, func(c echo.Context) error {
filename := fmt.Sprintf("%s/%s", DIST_DIR, "logo.png")
content, err := publicDir.ReadFile(filename)
if err != nil {
return c.String(http.StatusNotFound, "404")
}
SetHeadersResponseImage(c.Response().Header(), "png")
return c.Blob(http.StatusOK, "image/png", content)
})

// /line
e.GET(baseURL+"line", func(c echo.Context) error {
Expand Down

0 comments on commit 4fdbf43

Please sign in to comment.