mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-10 18:02:51 +00:00
updated header
This commit is contained in:
@@ -1,18 +1,20 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {bubble} from '../../assets/js/bubble';
|
//import {bubble} from '../../assets/js/bubble';
|
||||||
|
|
||||||
import '../../assets/scss/Header.scss';
|
import '../../assets/scss/Header.scss';
|
||||||
|
|
||||||
export default class Header extends React.Component {
|
export default class Header extends React.Component {
|
||||||
|
/*
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
bubble();
|
bubble();
|
||||||
|
//insert this:
|
||||||
|
<canvas id="canvas" width="854" height="709"></canvas>
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<header id="header" class="Header">
|
<header id="header" class="Header"/>
|
||||||
<canvas id="canvas" width="854" height="709"></canvas>
|
|
||||||
</header>
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/NYTimes/gziphandler"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"github.com/NYTimes/gziphandler"
|
|
||||||
|
|
||||||
"mywebsite/server/controller/api"
|
"mywebsite/server/controller/api"
|
||||||
"mywebsite/server/db"
|
"mywebsite/server/db"
|
||||||
@@ -24,6 +24,9 @@ func main(){
|
|||||||
handle := gziphandler.GzipHandler(route.Routes())
|
handle := gziphandler.GzipHandler(route.Routes())
|
||||||
|
|
||||||
log.Println("Starting Server...")
|
log.Println("Starting Server...")
|
||||||
|
log.Println(http.ListenAndServe(":"+strconv.Itoa(configurations.Port), handle))
|
||||||
|
|
||||||
|
/* enable for TLS support
|
||||||
go func(){
|
go func(){
|
||||||
log.Println(http.ListenAndServe(":"+strconv.Itoa(configurations.Port), handle))
|
log.Println(http.ListenAndServe(":"+strconv.Itoa(configurations.Port), handle))
|
||||||
}()
|
}()
|
||||||
@@ -31,4 +34,5 @@ func main(){
|
|||||||
if configurations.TLSCertFile != "" && configurations.TLSKeyFile != "" {
|
if configurations.TLSCertFile != "" && configurations.TLSKeyFile != "" {
|
||||||
log.Println(http.ListenAndServeTLS(":"+strconv.Itoa(configurations.TLSPort), configurations.TLSCertFile, configurations.TLSKeyFile, handle))
|
log.Println(http.ListenAndServeTLS(":"+strconv.Itoa(configurations.TLSPort), configurations.TLSCertFile, configurations.TLSKeyFile, handle))
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user