112 lines
2.8 KiB
Go
112 lines
2.8 KiB
Go
package personalprops
|
|
|
|
import (
|
|
"personalwebsite/websiteapp"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
type PersonalPropertiesApp struct {
|
|
manifest websiteapp.ApplicationManifest
|
|
}
|
|
|
|
func NewPersPropsApp() PersonalPropertiesApp {
|
|
newApp := PersonalPropertiesApp{
|
|
manifest: websiteapp.ApplicationManifest{
|
|
AppId: "personal-properties",
|
|
WindowName: "About me",
|
|
},
|
|
}
|
|
return newApp
|
|
}
|
|
|
|
func (p *PersonalPropertiesApp) GetManifest() websiteapp.ApplicationManifest {
|
|
return p.manifest
|
|
}
|
|
func (p *PersonalPropertiesApp) GetId() string {
|
|
return p.manifest.AppId
|
|
}
|
|
|
|
func (p *PersonalPropertiesApp) Render() gin.H {
|
|
// books := make([]Book, 0)
|
|
// books = append(books, Book{
|
|
// Title: "Title 1",
|
|
// Author: "Author 1",
|
|
// })
|
|
// books = append(books, Book{
|
|
// Title: "Title 2",
|
|
// Author: "Author 2",
|
|
// })
|
|
allProps := make([][]PropElement, 0)
|
|
|
|
basicInfo := make([]PropElement, 0)
|
|
|
|
basicInfo = append(basicInfo, PropElement{
|
|
Key: "",
|
|
Values: []string{"Greg Brzezinski"},
|
|
})
|
|
|
|
basicInfo = append(basicInfo, PropElement{
|
|
Key: "",
|
|
Values: []string{"Saint-Petersburg"},
|
|
})
|
|
|
|
// careerkeys := make([]Prop, 0)
|
|
careerkeys := []PropElement{
|
|
{
|
|
Key: "VR lab assistant",
|
|
Values: []string{"February 2019 - March 2020", "Teaching lessons for students in Unreal Engine 4, Unity and Blender editor courses", "Training students for World Skills Russia"},
|
|
},
|
|
{
|
|
Key: "3d artist",
|
|
Values: []string{"March 2020 - June 2020", "Creating 3d assets for VR game"},
|
|
},
|
|
{
|
|
Key: "Jr. Techartist",
|
|
Values: []string{"Game content integration and production", "Shader coding", "Optimization asset production in artists pipeline"},
|
|
},
|
|
{
|
|
Key: "Techartist",
|
|
Values: []string{"Game content optimization and production", "Profiling and debugging render pipeline", "Creating in-house tools for pipeline software", "Working process pipeline integration and maintenance", "Linux servers administration"},
|
|
},
|
|
}
|
|
// careerkeys = append(careerkeys, Prop{
|
|
// Key: "VR lab assistant ",
|
|
// Prop: "ALSK jlkJls kdfgjasdp jk sdf",
|
|
// })
|
|
// careerkeys = append(careerkeys, Prop{
|
|
// Key: "3d artist",
|
|
// Prop: "qweqwe",
|
|
// })
|
|
// careerkeys = append(careerkeys, Prop{})
|
|
testKeys := []PropElement{}
|
|
testKeys = append(testKeys, PropElement{
|
|
Key: "Urrtt",
|
|
Values: []string{"BakaBaka"},
|
|
})
|
|
|
|
allProps = append(allProps, careerkeys, testKeys, testKeys, testKeys)
|
|
return gin.H{
|
|
"Name": "Greg Brzezinski",
|
|
"BasicBio": "Born 27.09.1998 at Saint-Petersburg",
|
|
"BasicInfo": basicInfo,
|
|
// "books": books,
|
|
"career": careerkeys,
|
|
"allprops": allProps,
|
|
}
|
|
}
|
|
|
|
type Book struct {
|
|
Title string
|
|
Author string
|
|
}
|
|
|
|
type PropElement struct {
|
|
Key string
|
|
Values []string
|
|
}
|
|
|
|
// func (p *PersonalPropertiesApp) GetContent(ctx *gin.Context) interface{} {
|
|
|
|
// }
|