Made it easier to change header image

This commit is contained in:
Lucien Cartier-Tilet 2020-05-05 19:20:28 +02:00
parent 2d54d0fa30
commit 404e79211e
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
1 changed files with 4 additions and 3 deletions

View File

@ -2,13 +2,14 @@ import 'dart:html';
import './navbar.dart' show makeNavbar; import './navbar.dart' show makeNavbar;
final image_header = 'https://cdn.phundrak.com/img/mahakala-monochrome.png';
Future<Element> makeHeader() async { Future<Element> makeHeader() async {
var header = Element.tag('header'); var header = Element.tag('header');
header header
..append(Element.img() ..append(Element.img()
..attributes['src'] = ..attributes['src'] = image_header
'https://cdn.phundrak.com/img/mahakala-monochrome.png' ..attributes['alt'] = 'Logo'
..attributes['alt'] = 'Logo de Phundrak'
..attributes['heigh'] = '150px' ..attributes['heigh'] = '150px'
..attributes['width'] = '150px') ..attributes['width'] = '150px')
..append(querySelector('h1')); ..append(querySelector('h1'));