laravel12_start/resources/views/example.blade.php

112 lines
2.7 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Сайт-визитка</title>
<style>
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
color: #333;
background-color: #f9f9f9;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
padding: 30px 0;
border-bottom: 1px solid #eee;
margin-bottom: 30px;
}
h1 {
color: #2c3e50;
margin-bottom: 10px;
}
.subtitle {
color: #7f8c8d;
font-style: italic;
}
.content {
display: flex;
flex-wrap: wrap;
gap: 30px;
margin-bottom: 40px;
}
.photo {
flex: 1;
min-width: 300px;
text-align: center;
}
.photo img {
max-width: 100%;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.text-block {
flex: 2;
min-width: 300px;
background: white;
padding: 25px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
footer {
text-align: center;
padding: 20px;
color: #7f8c8d;
font-size: 0.9em;
border-top: 1px solid #eee;
}
.contacts {
margin-top: 20px;
}
a {
color: #3498db;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>{{ $page->getMainInfo()->getField('h1') }}</h1>
<p class="subtitle">{{ $page->getMainInfo()->getField('subtitle') }}</p>
</header>
<div class="content">
<div class="photo">
<img src="/files-browser{{ $page->getMainInfo()->getField('image') }}" alt="Мое фото">
</div>
<div class="text-block">
{!! $page->getMainInfo()->getField('text') !!}
</div>
</div>
<footer>
<p>© {{ date('Y') }} Все права защищены.</p>
</footer>
</div>
</body>
</html>