forked from 77media/video-flow
竖屏封面
This commit is contained in:
parent
4f6c53bbfa
commit
f92135d155
@ -8,6 +8,7 @@ import './style/create-to-video2.css';
|
||||
import { getScriptEpisodeListNew, MovieProject } from "@/api/script_episode";
|
||||
import { ChatInputBox } from '@/components/ChatInputBox/ChatInputBox';
|
||||
import cover_image1 from '@/public/assets/cover_image3.jpg';
|
||||
import cover_image2 from '@/public/assets/cover_image_shu.jpg';
|
||||
import { motion } from 'framer-motion';
|
||||
import { Tooltip, Button } from 'antd';
|
||||
import { downloadVideo, getFirstFrame } from '@/utils/tools';
|
||||
@ -309,7 +310,7 @@ export default function CreateToVideo2() {
|
||||
<div
|
||||
className="absolute inset-0 w-full h-full bg-cover bg-center bg-no-repeat group-hover:scale-105 transition-transform duration-500"
|
||||
style={{
|
||||
backgroundImage: `url(${cover_image1.src})`,
|
||||
backgroundImage: `url(${project.aspect_ratio === 'VIDEO_ASPECT_RATIO_PORTRAIT' ? cover_image2.src : cover_image1.src})`,
|
||||
}}
|
||||
data-alt="cover-image"
|
||||
/>
|
||||
|
||||
BIN
public/assets/cover_image_shu.jpg
Normal file
BIN
public/assets/cover_image_shu.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 737 KiB |
Loading…
x
Reference in New Issue
Block a user