personal-website/websiteapp/img-viewer/imgviewer.go
2023-04-13 04:09:07 +03:00

36 lines
683 B
Go

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
}
func (p *ImgViewerApp) Render(isMobile bool) gin.H {
return gin.H{
"Name": "Greg Brzezinski",
"BasicBio": "Born 27.09.1998 at Saint-Petersburg",
}
}