2 files deleted
12 files modified
| | |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | filter: blur(24px) brightness(0.9); |
| | | transform: scale(1.1); |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 顶部标题区 */ |
| | |
| | | |
| | | .image-box { position: relative; width: 100%; height: 100%; } |
| | | |
| | | .image-box img { |
| | | .image-box .template-media { |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: cover; /* 改为 cover 填满宽度 */ |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="bg"></div> |
| | | <div class="bg">{{media}}</div> |
| | | <div class="top"> |
| | | <div class="title">{{title}}</div> |
| | | </div> |
| | | |
| | | <div class="image-center"> |
| | | <div class="image-box"> |
| | | <img src="{{image}}" alt="内容图片"> |
| | | {{media}} |
| | | <div class="caption">{{text}}</div> |
| | | </div> |
| | | </div> |
| | |
| | | color: #fff; |
| | | position: relative; |
| | | background: #1a1a1a; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center bottom 400px; |
| | | } |
| | | |
| | | .media-bg { |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | transform: translateY(-400px); |
| | | height: calc(100% + 400px); |
| | | } |
| | | |
| | | /* 顶部区域 */ |
| | |
| | | transform: translateX(-50%); |
| | | text-align: center; |
| | | width: 90%; |
| | | z-index: 1; |
| | | } |
| | | |
| | | .image { |
| | |
| | | transform: translateX(-50%); |
| | | text-align: center; |
| | | width: 90%; |
| | | z-index: 1; |
| | | } |
| | | |
| | | .main-text { |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="media-bg">{{media}}</div> |
| | | |
| | | <!-- 顶部标题区 --> |
| | | <div class="top-section"> |
| | | <div class="title">{{title}}</div> |
| | |
| | | position: relative; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .media-bg { |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .title { |
| | | position: absolute; |
| | | top: 300px; |
| | | z-index: 1; |
| | | width: 100%; |
| | | text-align: center; |
| | | font-size: 92px; |
| | |
| | | .text { |
| | | position: absolute; |
| | | bottom: 300px; |
| | | z-index: 1; |
| | | width: 100%; /* 稍微调整以适应全宽图片 */ |
| | | padding: 0 60px; |
| | | text-align: center; |
| | |
| | | </head> |
| | | <body> |
| | | <div class="bg"> |
| | | <div class="media-bg">{{media}}</div> |
| | | <div class="title">{{title}}</div> |
| | | <div class="text">{{text}}</div> |
| | | </div> |
| | |
| | | color: #2a2a2a; |
| | | position: relative; |
| | | background: #e8e5e0; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .media-bg { |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 背景遮罩层 */ |
| | |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="media-bg">{{media}}</div> |
| | | |
| | | <div class="title"> |
| | | <div class="title-content">{{title}}</div> |
| | | </div> |
| | |
| | | color: #000; |
| | | position: relative; |
| | | background: #e8e8e8; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | /* 背景模糊效果 */ |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | padding: 0 60px; |
| | | } |
| | | |
| | | .media-bg { |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 背景遮罩层 */ |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="media-bg">{{media}}</div> |
| | | |
| | | <!-- 标题 --> |
| | | <div class="title">{{title}}</div> |
| | | |
| | |
| | | position: relative; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | z-index: 0; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .media-bg { |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .title { |
| | | position: relative; |
| | | z-index: 1; |
| | | width: 900px; |
| | | text-align: center; |
| | | font-size: 92px; |
| | |
| | | </head> |
| | | <body> |
| | | <div class="bg"> |
| | | <div class="media-bg">{{media}}</div> |
| | | <div class="title">{{title}}</div> |
| | | </div> |
| | | <div class="footer"> |
| | |
| | | height: 40%; |
| | | z-index: 2; |
| | | padding: 0 0; /* 无左右内边距 */ |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* Footer */ |
| | |
| | | </head> |
| | | <body> |
| | | <div class="title">{{title}}</div> |
| | | <image src="{{image}}" class="image-center" /> |
| | | <div class="image-center">{{media}}</div> |
| | | <div class="footer"> |
| | | <div class="author"> |
| | | <div class="author-name"> |
| | |
| | | height: 40%; |
| | | z-index: 2; |
| | | padding: 0 0; /* 无左右内边距 */ |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* Footer */ |
| | |
| | | <div class="title-wrapper"> |
| | | <span class="title">{{text}}</span> |
| | | </div> |
| | | <image src="{{image}}" class="image-center" /> |
| | | <div class="image-center">{{media}}</div> |
| | | <div class="footer"> |
| | | <div class="author"> |
| | | <div class="author-name"> |
| | |
| | | <body> |
| | | <!-- Background image layer (customizable via background parameter) --> |
| | | <div class="background-image"> |
| | | <img src="{{background=https://img.alicdn.com/imgextra/i2/O1CN01TngrfY1NTZK1xwuWd_!!6000000001571-0-tps-690-1494.jpg}}" alt="Background"> |
| | | {{media}} |
| | | </div> |
| | | |
| | | <!-- Gradient overlay --> |
| | |
| | | </div> |
| | | </body> |
| | | </html> |
| | | |
| | |
| | | padding: 80px 100px; |
| | | } |
| | | |
| | | .media-bg { |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | /* 背景遮罩层 */ |
| | | body::before { |
| | | content: ''; |
| | |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="media-bg">{{media}}</div> |
| | | |
| | | <!-- 顶部标题 --> |
| | | <div class="header"> |
| | | <div class="title">{{title}}</div> |
| | |
| | | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| | | background-color: #1a1a1a; |
| | | color: #ffffff; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | position: relative; |
| | | } |
| | | |
| | | .media-bg { |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .container { |
| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="media-bg">{{media}}</div> |
| | | |
| | | <div class="container"> |
| | | <!-- Stars background --> |
| | | <div class="stars" id="stars"></div> |
| | |
| | | position: relative; |
| | | background: transparent; |
| | | /* 移除黑色背景 */ |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | } |
| | | |
| | | /* 背景使用图片并做模糊处理,完全覆盖整个页面 */ |
| | | .bg { |
| | | position: relative; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-image: url("{{image}}"); |
| | | background-size: cover; |
| | | background-position: center; |
| | | position: absolute; |
| | | inset: 0; |
| | | z-index: 0; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .main { |
| | | position: relative; |
| | | z-index: 1; |
| | | width: 100%; |
| | | height: 1080px; |
| | | } |
| | |
| | | </head> |
| | | |
| | | <body> |
| | | <!-- <div class="bg"></div> --> |
| | | <div class="bg">{{media}}</div> |
| | | <div class="main"> |
| | | <div class="title">{{title}}</div> |
| | | <div class="text">{{text}}</div> |