personal-website/websiteapp/img-viewer/imgviewer.go

36 lines
683 B
Go
Raw Normal View History

2023-04-12 21:05:23 +00:00
package imgviewer
import (
"personalwebsite/websiteapp"
"github.com/gin-gonic/gin"
)
type ImgViewerApp struct {
manifest websiteapp.ApplicationManifest
}
func NewImgViewerApp() ImgViewerApp {
newApp := ImgViewerApp{
manifest: websiteapp.ApplicationManifest{
AppId: "img-viewer",
WindowName: "About me", //TODO: delete
},
}
return newApp
}
func (p *ImgViewerApp) GetManifest() websiteapp.ApplicationManifest {
return p.manifest
}
func (p *ImgViewerApp) GetId() string {
return p.manifest.AppId
}
2023-04-13 01:09:07 +00:00
func (p *ImgViewerApp) Render(isMobile bool) gin.H {
2023-04-12 21:05:23 +00:00
return gin.H{
"Name": "Greg Brzezinski",
"BasicBio": "Born 27.09.1998 at Saint-Petersburg",
}
}