test update2
This commit is contained in:
37
resources/views/pdf/view.blade.php
Normal file
37
resources/views/pdf/view.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<!-- your/view.blade.php -->
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Ivan Julian</title>
|
||||
<style>
|
||||
body {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
h1, p {
|
||||
/* Gaya teks Anda */
|
||||
}
|
||||
|
||||
img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0.3; /* Sesuaikan dengan tingkat kecerahan yang diinginkan */
|
||||
z-index: -1; /* Letakkan gambar di belakang konten lain */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Sisipkan gambar sebagai elemen img -->
|
||||
<img src="{{public_path('images/logo-linksehat-vertical-default.png')}}" width="100px">
|
||||
|
||||
<!-- Konten HTML -->
|
||||
<h1>Hello, {{ $key }}</h1>
|
||||
<p>This is a simple example for generating PDF in Laravel using Dompdf.</p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user