Browse Source

Get some WEB DESIGN going

axkuhta 1 year ago
parent
commit
0fc5d82649

+ 5 - 0
resources/views/include/footer.blade.php

@@ -0,0 +1,5 @@
+<div class="footer">
+<div class="container">
+Footer™ ©®
+</div>
+</div>

+ 8 - 0
resources/views/include/header.blade.php

@@ -0,0 +1,8 @@
+<div class="header">
+<a href="/" class="logo">LaravelDemo</a>
+<div class="container">
+<a href="/">Главная</a>
+<a href="/form">Форма</a>
+<a href="/data">Данные</a>
+</div>
+</div>

+ 2 - 1
resources/views/index.blade.php

@@ -4,5 +4,6 @@
 @section("title", "Главная страница")
 
 @section("content")
-	<b>Здесь контент</b>
+	<h1>Добро пожаловать</h1>
+	<p>Со страницы "форма" можно отправить данные на сервер, а со страницы "данные" можно посмотреть все отправленные данные.</p>
 @endsection

+ 53 - 1
resources/views/layouts/app.blade.php

@@ -5,19 +5,71 @@
 		<style>
 			body {
 				font-family: system-ui, sans-serif;
-				font-size: 16px;
+				font-size: 20px;
+				margin: 0;
+
+				background-color: #E88F00;
+				color: #00305B;
 			}
 
 			.container {
 				max-width: 48rem;
 				margin: 0px auto;
 			}
+
+			.content {
+				background-color: #202020;
+				color: #D0D0D0;
+
+				font-size: 18px;
+				padding: 1rem;
+			}
+
+			.footer {
+				font-size: 12px;
+				padding: 1rem;
+			}
+
+			a:visited {
+				color: inherit;
+			}
+
+			.header a {
+				display: inline-block;
+				text-decoration: none;
+				padding: 1rem 1rem 1rem 0ex;
+				color: inherit;
+			}
+
+			.logo {
+				font-weight: bold;
+				padding: 1rem !important;
+				float: left;
+			}
+
+			@media (max-width: 72rem) {
+				.header a {
+					padding: 1rem;
+				}
+
+				.header .container {
+					margin: 0;
+				}
+
+				.logo {
+					float: none;
+				}
+			}
 		</style>
 	</head>
 	<body>
+		@include('include.header')
+		<div class="content">
 		<div class="container">
 			@yield('content')
 		</div>
+		</div>
+		@include('include.footer')
 	</body>
 </html>