우선 만들고 싶은 랜딩페이지를 찾는다.

gpt에게 만들어 달라고 한다.

 

 

css/자바스크립트가 필요하면 만들어 준다고 하니 알겠다고 한다.

 

 

실행해보면

이미지가 없으니 만들어 달라고 하고

 

몇번에 요구에 거쳐, 만들어진 이미지를 jpg로 만든다.

 

이제 만들어진 파일을 동 폴더에 넣고 실행하면

 

 

완성되었다.

 

페이지 서치 5분

코드 붙여넣기 5분

이미지 생성 5분

총 15분 정도 걸렸다.

 

 

 

--

코드 내용

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Freelancer Landing Page</title>
    <link rel="stylesheet" href="styles.css">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
    <!-- Header Section -->
    <header class="header">
        <div class="container">
            <h1>I'm Freelancer.<span></span></h1>
            <div class="social-icons">
                <a href="#"><i class="fab fa-facebook-f"></i></a>
                <a href="#"><i class="fab fa-twitter"></i></a>
                <a href="#"><i class="fab fa-linkedin-in"></i></a>
                <a href="#"><i class="fab fa-instagram"></i></a>
                <a href="#"><i class="fab fa-github"></i></a>
            </div>
        </div>
    </header>

    <!-- Services Section -->
    <section class="services">
        <div class="container">
            <div class="service">
                <i class="fas fa-paint-brush"></i>
                <h3>Web Design</h3>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
            </div>
            <div class="service">
                <i class="fas fa-code"></i>
                <h3>Web Development</h3>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
            </div>
            <div class="service">
                <i class="fas fa-mobile-alt"></i>
                <h3>Responsive Design</h3>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
            </div>
            <div class="service">
                <i class="fab fa-wordpress"></i>
                <h3>Wordpress</h3>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
            </div>
            <div class="service">
                <i class="fas fa-search"></i>
                <h3>Web Research</h3>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
            </div>
            <div class="service">
                <i class="fas fa-search-dollar"></i>
                <h3>SEO</h3>
                <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
            </div>
        </div>
    </section>

    <!-- About Section -->
    <section class="about">
        <div class="container">
            <div class="about-content">
                <img src="profile.jpg" alt="Freelancer Photo">
                <div class="about-text">
                    <h2>Who Am I?</h2>
                    <p>Hi! My name is Romie Doe. I am a Web Developer, and I'm very passionate and dedicated to my work.</p>
                    <div class="skills">
                        <div class="skill">
                            <p>Photoshop</p>
                            <div class="skill-bar">
                                <div class="skill-percentage" style="width: 80%;"></div>
                            </div>
                        </div>
                        <div class="skill">
                            <p>Illustrator</p>
                            <div class="skill-bar">
                                <div class="skill-percentage" style="width: 90%;"></div>
                            </div>
                        </div>
                        <div class="skill">
                            <p>Web Design</p>
                            <div class="skill-bar">
                                <div class="skill-percentage" style="width: 75%;"></div>
                            </div>
                        </div>
                        <div class="skill">
                            <p>Web Development</p>
                            <div class="skill-bar">
                                <div class="skill-percentage" style="width: 95%;"></div>
                            </div>
                        </div>
                    </div>
                    <div class="buttons">
                        <a href="#" class="btn">Hire Me</a>
                        <a href="#" class="btn">Download CV</a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer Section -->
    <footer class="footer">
        <div class="container">
            <p>&copy; 2024 Freelancer. All rights reserved.</p>
        </div>
    </footer>
</body>
</html>

 

 

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Header Section */
.header {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.header .social-icons {
    margin-top: 20px;
}

.header .social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.header .social-icons a:hover {
    color: #f39c12;
}

/* Services Section */
.services {
    padding: 50px 0;
    background: #f4f4f4;
    text-align: center;
}

.service {
    display: inline-block;
    width: 30%;
    margin: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.service i {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 10px;
}

/* About Section */
.about {
    padding: 50px 0;
    background: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-content img {
    max-width: 40%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.about-text {
    max-width: 55%;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.skills {
    margin-top: 20px;
}

.skill {
    margin-bottom: 15px;
}

.skill p {
    margin: 0;
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    background: #e0e0e0;
    height: 8px;
    border-radius: 5px;
    overflow: hidden;
}

.skill-percentage {
    height: 100%;
    background: #f39c12;
    transition: width 0.5s;
}

.buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-right: 15px;
    transition: background 0.3s;
}

.btn:hover {
    background: #f39c12;
}

/* Footer Section */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer p {
    margin: 0;
}

 

gpt를 이용해서 이미지를 생성하고

 

 관련 프롬프트를 만들었다.

 

Kling을 이용해 생성한 이미지로 영상으로 만들었다.

 

capcut에서 동영상을 이어 붙였다.

 

https://www.youtube.com/watch?v=FwS_fMEhLI8

 

 

이전에는 캡처 프로그램을 만들었다.

하지만 동영상 여러개가 한 폴더에 있는 경우,

모든 영상을 한 캡처폴더에 다 담는 것은 불필요하니

 

영상이름과 동일한 폴더를 만들고 그 안에 영상파일을 넣는

프로그램을 만들었다.

(은근히 새폴더를 만들어 이름을 쓰고 영상파일을 넣은 일은 귀찮다)

 

결과는 다음과 같다.

 

 

import os
import shutil

# 이동할 파일 확장자 목록 (필요에 따라 확장자를 추가할 수 있습니다)
video_extensions = ['.mp4', '.avi', '.mkv', '.mov', '.flv', '.wmv']

def organize_videos_into_folders(root_folder):
    # root_folder 내의 항목들을 순회
    for item_name in os.listdir(root_folder):
        item_path = os.path.join(root_folder, item_name)
        
        # 파일일 때만 실행하고, 확장자가 동영상 파일인지 확인
        if os.path.isfile(item_path) and any(item_name.lower().endswith(ext) for ext in video_extensions):
            # 동영상 파일 이름을 사용하여 하위 폴더 생성 (확장자 제거 후 공백 제거)
            video_folder_name = os.path.splitext(item_name)[0].strip()
            video_folder_path = os.path.join(root_folder, video_folder_name)
            
            # 하위 폴더가 없으면 생성
            if not os.path.exists(video_folder_path):
                os.makedirs(video_folder_path)
                print(f"Created folder: {video_folder_path}")
            
            # 동영상 파일을 하위 폴더로 이동
            new_file_path = os.path.join(video_folder_path, item_name)
            shutil.move(item_path, new_file_path)
            print(f"Moved {item_name} to {video_folder_path}")

root_folder = r""  # 폴더 경로를 입력하세요
organize_videos_into_folders(root_folder)

 

 

 

그리고 이전에 만든것도 같이 이용하면

2024.11.13 - [AI 프로젝트 일기] - GPT로 영상캡처 프로그램 만들기

+ Recent posts