poster.blade.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <!--设置视口,解决pc和手机屏幕不匹配问题-->
  5. <meta name="viewport" content="width=device-width,
  6. initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0">
  7. <style type="text/css">
  8. .bg {
  9. width: 513px;
  10. height: 800px;
  11. margin: 0 auto;
  12. background-image: url("{{config('app.url').'/storage/'.$about->poster}}");
  13. background-repeat: no-repeat;
  14. background-size: cover;
  15. position: relative;
  16. overflow: hidden;
  17. }
  18. .name {
  19. position: absolute;
  20. left: 24px;
  21. bottom: 58px;
  22. font-size: 20px;
  23. font-weight: bold;
  24. }
  25. .code {
  26. position: absolute;
  27. right: 5px;
  28. bottom: -7px;
  29. width: 120px;
  30. height: 120px;
  31. }
  32. .code-img {
  33. width: 100%;
  34. height: 100%;
  35. }
  36. /*.code-avatar {*/
  37. /* width: 20px;*/
  38. /* height: 20px;*/
  39. /* position: absolute;*/
  40. /* right: 49px;*/
  41. /* bottom: 50;*/
  42. /*}*/
  43. </style>
  44. </head>
  45. <body>
  46. <div class="bg">
  47. <p class="name">{{$user_name}}</p>
  48. <div class="code">
  49. <img class="code-img" src="/qrcodes/qrcode_{{$user_id}}.png">
  50. {{-- <img class="code-avatar"--}}
  51. {{-- src="https://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJy4P6yHFluic3QHDibFfQtJOibtyYbrU6EEpicpy2yiaGLtbrS2xicRTSJBFOyrUoYplrwp33m6EuRw6RA/132">--}}
  52. </div>
  53. </div>
  54. </body>
  55. </html>