<?php
namespace Pockit\Views;

// Главная страница приложения

class HomeView extends LayoutView {
	protected $page_title = "Дом";
	protected $welcome_text;
	protected $background_image;
	protected $background_color;

	protected function customHead() { ?>

<link rel="stylesheet" href="/css/home.css">
<style>
	body {
		background-image: url('<?=$this->background_image?>');
		background-color: <?=$this->background_color?>;
	}
</style>

<?php }
	
	public function content() : void { ?>

<div class='text-center' style='color: white; text-shadow: black 2px 2px; margin-top: 5rem;'>
	<h1><?= $this->welcome_text ?></h1>
	<h3>Выбери действие</h3>

	<div class='actions-row'>
		<div class='action'>
			<img src="/img/actions/file.png">
			<a href="/autogost/new">Создать отчёт<span class='stretched-link'></span></a>
		</div>
		<div class='action'>
			<img src="/img/actions/archive.png">
			<a href="/autogost/archive">Архив отчётов<span class='stretched-link'></span></a>
		</div>
		<div class='action'>
			<img src="/img/actions/exam.png">
			<a href="/grades">Оценки<span class='stretched-link'></span></a>
		</div>
	</div>
</div>
		
<?php }
}
