Made it easier to change header image
This commit is contained in:
parent
2d54d0fa30
commit
404e79211e
@ -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'));
|
||||||
|
Reference in New Issue
Block a user