재미로 읽는 정오의 뒹굴신 일기📓
I stumbled upon a show called 끝사랑
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>플래시 카드</title>
<style>
body {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
min-height: 100vh;
background-color: #f8f9fa;
position: relative;
z-index: 1;
}
.card {
width: 90%;
max-width: 400px;
height: 300px;
perspective: 1000px;
position: relative;
margin: 10px;
z-index: 2;
}
.card__face {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 1.4em;
text-align: center;
border: 1px solid #ccc;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.6s;
background-color: #ffffff;
padding: 20px;
box-sizing: border-box;
}
.card__face--front {
background-color: #e6c27b;
}
.card__face--back {
background-color: #c4d8d2;
transform: rotateY(180deg);
}
.card.is-flipped .card__face--front {
transform: rotateY(180deg);
}
.card.is-flipped .card__face--back {
transform: rotateY(0deg);
}
.speaker-icon {
margin-top: 20px;
cursor: pointer;
font-size: 1.4em;
}
.logo {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
width: 50px;
}
.card-number {
position: absolute;
top: 10px;
left: 50%;
transform: translateX(-50%);
font-size: 0.98em;
}
.text-line {
display: block;
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="container" id="card-container">
<!-- 카드가 여기에 동적으로 추가됩니다 -->
</div>
<script>
const cardData = [
{
number: 641,
frontText: "네가 잘돼서<br>나도 좋아.",
backText: "I'm happy for you.",
audioSrc: "https://blog.kakaocdn.net/dn/b8AJuj/btsJHDmqHBx/Wk6lKYynuUYdUVKTWUikGk/tfile.mp4"
},
{
number: 642,
frontText: "이게 아마도<br>최선 같아.",
backText: "This is probably for the best.",
audioSrc: "https://blog.kakaocdn.net/dn/Gq1KP/btsJHXZiFNZ/eokQXZa2rZ69M7dP7Hq330/tfile.mp4"
},
{
number: 643,
frontText: "내가<br>알았어야 했어.",
backText: "I should've known.",
audioSrc: "https://blog.kakaocdn.net/dn/nSCdo/btsJGMEsxMy/MrYcteyjPPVugWdN9PLla0/tfile.mp4"
},
{
number: 644,
frontText: "나랑 사귈래?<br>(데이트 할래?)",
backText: "Will you go out with me?",
audioSrc: "https://blog.kakaocdn.net/dn/83sL8/btsJIuvuS4F/GA14NxyVpzCVxGyHezNHtK/tfile.mp4"
},
{
number: 645,
frontText: "그가 나한테<br>데이트 신청했어.",
backText: "He asked me out.",
audioSrc: "https://blog.kakaocdn.net/dn/b6LYlE/btsJHPG5EpY/ifbf4t5fMFeWOKwBUWlAZK/tfile.mp4"
},
{
number: 646,
frontText: "너 수락했어?",
backText: "Did you say yes?",
audioSrc: "https://blog.kakaocdn.net/dn/CEynn/btsJGocWq8p/GvU6Vvf3uv8bSRF0tePko0/tfile.mp4"
},
{
number: 647,
frontText: "완전 신난다!",
backText: "I'm super excited.",
audioSrc: "https://blog.kakaocdn.net/dn/dn4tVW/btsJGXsm45u/qzBTbxnDJrkBdDiOBqRvFk/tfile.mp4"
},
{
number: 648,
frontText: "언제 같이 좀 놀자.",
backText: "We should hang out sometime.",
audioSrc: "https://blog.kakaocdn.net/dn/JmAaA/btsJHP8gEl3/FXEbBqMBx35lPxLNx51B1K/tfile.mp4"
},
{
number: 649,
frontText: "넌 그런 말<br>하면 안 되지!",
backText: "You're not supposed to say that!",
audioSrc: "https://blog.kakaocdn.net/dn/9O2nq/btsJHBa4sd0/qQU9IfOMVABtDeNDmBhRa1/tfile.mp4"
},
{
number: 650,
frontText: "다리에 감각이 없어.",
backText: "I can't feel my legs.",
audioSrc: "https://blog.kakaocdn.net/dn/b1nleD/btsJGBb3L6v/tVbkByk6Nw86kfY0vW2NVk/tfile.mp4"
}
];
const container = document.getElementById('card-container');
cardData.forEach((data, index) => {
const card = document.createElement('div');
card.className = 'card';
card.id = `card${index + 1}`;
card.innerHTML = `
<div class="card__face card__face--front">
<div class="card-number">${data.number}</div>
${data.frontText.split('<br>').map(line => `<span class="text-line">${line}</span>`).join('')}
<img src="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbqWKHV%2FbtsIxkWWSCQ%2FH5ebr5KfDdnjvtA7y43if0%2Fimg.png" class="logo" alt="로고">
</div>
<div class="card__face card__face--back">
<div class="card-number">${data.number}</div>
${data.backText}
<div class="speaker-icon speaker-icon${index + 1}">🎧</div>
<audio id="audio${index + 1}" src="${data.audioSrc}"></audio>
<img src="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbqWKHV%2FbtsIxkWWSCQ%2FH5ebr5KfDdnjvtA7y43if0%2Fimg.png" class="logo" alt="로고">
</div>
`;
container.appendChild(card);
});
function setupCard(cardId, audioId, speakerIconClass) {
document.querySelector(cardId).addEventListener('click', function() {
this.classList.toggle('is-flipped');
});
document.querySelector(speakerIconClass).addEventListener('click', function(event) {
event.stopPropagation();
var audio = document.querySelector(audioId);
audio.play();
});
}
cardData.forEach((_, index) => {
setupCard(`#card${index + 1}`, `#audio${index + 1}`, `.speaker-icon${index + 1}`);
});
</script>
</body>
</html>
🎧 영어 왕초보 기초 문법 강의 10강
https://www.youtube.com/playlist?list=PLaCVhPj5LHe6jILV8bE_C2LvqgFR7NbmS
🎧 1000문장 1탄(빈칸채우기)
🎧 1000문장 2탄(설명, 한글발음 有)
🔥뒹굴신 매운맛 영어회화 중급자용 재생목록
https://www.youtube.com/playlist?list=PLaCVhPj5LHe4QVKdVfhrKVhnryvRFCotk
'영어 한 줄 일기' 카테고리의 다른 글
영어 일기 I guess Stanley tumblers are everywhere these days. (0) | 2024.09.27 |
---|---|
영어 일기 I was totally craving something h 681-690ot and sweet, so I.. (1) | 2024.09.26 |
영어 일기 Now that fall's here, my skin is getting super dry. (0) | 2024.09.25 |
영어 일기 I checked the October calendar today, This year, the.. (0) | 2024.09.24 |
영어 일기 I saw them cutting down a dead tree in my apartment.. (0) | 2024.09.23 |
영어 일기 It rained a lot overnight, and the temperature dropped.. (0) | 2024.09.21 |
영어 일기 I brought home some sweet potatoes that my parents.. (0) | 2024.09.20 |
영어 일기 Did you eat a lot of yummy food over the holiday? (0) | 2024.09.19 |
영어 일기 I visited my ancestors' graves for Chuseok early in the.. (0) | 2024.09.18 |
영어 일기 I left at 5am to visit my parents, thinking I’d beat the.. (0) | 2024.09.17 |
댓글