1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-10 09:52:51 +00:00

updated header

This commit is contained in:
2016-12-08 03:08:33 +01:00
parent 9c2e7bd754
commit d2cc34d3a0
2 changed files with 16 additions and 10 deletions

View File

@@ -1,18 +1,20 @@
import React from 'react';
import {bubble} from '../../assets/js/bubble';
//import {bubble} from '../../assets/js/bubble';
import '../../assets/scss/Header.scss';
export default class Header extends React.Component {
/*
componentDidMount() {
bubble();
//insert this:
<canvas id="canvas" width="854" height="709"></canvas>
}
*/
render() {
return (
<header id="header" class="Header">
<canvas id="canvas" width="854" height="709"></canvas>
</header>
<header id="header" class="Header"/>
)
}
}

View File

@@ -1,10 +1,10 @@
package main
import (
"github.com/NYTimes/gziphandler"
"log"
"net/http"
"strconv"
"github.com/NYTimes/gziphandler"
"mywebsite/server/controller/api"
"mywebsite/server/db"
@@ -24,6 +24,9 @@ func main(){
handle := gziphandler.GzipHandler(route.Routes())
log.Println("Starting Server...")
log.Println(http.ListenAndServe(":"+strconv.Itoa(configurations.Port), handle))
/* enable for TLS support
go func(){
log.Println(http.ListenAndServe(":"+strconv.Itoa(configurations.Port), handle))
}()
@@ -31,4 +34,5 @@ func main(){
if configurations.TLSCertFile != "" && configurations.TLSKeyFile != "" {
log.Println(http.ListenAndServeTLS(":"+strconv.Itoa(configurations.TLSPort), configurations.TLSCertFile, configurations.TLSKeyFile, handle))
}
*/
}