Skip to content

Commit

Permalink
Merge pull request #51 from KDT1-FE/KDT0_hyeminpark
Browse files Browse the repository at this point in the history
Kdt0 hyeminpark
  • Loading branch information
IAMISTP authored Jul 28, 2023
2 parents 8894f39 + 4becc4d commit 6f54d7a
Show file tree
Hide file tree
Showing 74 changed files with 1,335 additions and 0 deletions.
Binary file added assets/add-to-playlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/event/Download_on_the_App_Store-400px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/event/Get-it-on-Google-Play-400px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/event/video-tape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/heart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon/left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon/right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/loupe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/love.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/magazine1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/magazine2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/magazine3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/magazine4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/magazine5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/magazine6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/magazine7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/new2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/omygirl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/magazine/zerobase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/mic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/money.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/music-player-back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/music-player-next.png
Binary file added assets/music.png
Binary file added assets/news/123.png
Binary file added assets/news/127.png
Binary file added assets/news/tmxmfpdlzlwm.png
Binary file added assets/news/늉.png
Binary file added assets/news/박효신.png
Binary file added assets/news/샤이니.png
Binary file added assets/news/세븐틴.png
Binary file added assets/news/정국.png
Binary file added assets/pick/pick0.png
Binary file added assets/pick/pick1.png
Binary file added assets/pick/pick2.png
Binary file added assets/pick/pick3.png
Binary file added assets/pick/pick4.png
Binary file added assets/pick/pick5.png
Binary file added assets/pick/pick6.png
Binary file added assets/pick/pick7.png
Binary file added assets/play-button.png
Binary file added assets/play_music.png
Binary file added assets/playlist.png
Binary file added assets/promotion/today_thumbs.1d76741b.png
Binary file added assets/random.png
Binary file added assets/refresh.png
Binary file added assets/search.png
Binary file added assets/social/facebook.png
Binary file added assets/social/instagram.png
Binary file added assets/social/letter-n.png
1 change: 1 addition & 0 deletions assets/sp_topbar.f4891747.svg

Large diffs are not rendered by default.

Binary file added assets/sparkles.png
Binary file added assets/speaker-filled-audio-tool.png
Binary file added assets/stage.png
Binary file added assets/trophy.png
Binary file added assets/user.png
Binary file added assets/vibe/vibe0.png
Binary file added assets/vibe/vibe1.png
Binary file added assets/vibe/vibe2.jpg
Binary file added assets/vibe/vibe3.png
Binary file added assets/vibe/vibe4.png
Binary file added assets/vibe/vibe5.png
Binary file added assets/vibe/vibe6.png
Binary file added assets/vibe/vibe7.png
Binary file added assets/vinyl.png
576 changes: 576 additions & 0 deletions index.html

Large diffs are not rendered by default.

147 changes: 147 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
const magazine_next_btn = document.querySelector(".magazine_next");
const news_next_btn = document.querySelector(".news_next");
const vibe_next_btn = document.querySelector(".vibe_next");
const pick_next_btn = document.querySelector(".pick_next");

const magazine_prev_btn = document.querySelector(".magazine_prev");
const news_prev_btn = document.querySelector(".news_prev");
const vibe_prev_btn = document.querySelector(".vibe_prev");
const pick_prev_btn = document.querySelector(".pick_prev");

const magazine_slider = document.querySelector(".magazine_slider");
const news_slider = document.querySelector(".news_slider");
const vibe_slider = document.querySelector(".vibe_slider");
const pick_slider = document.querySelector(".pick_slider");

const magazine_images = document.querySelectorAll(
".img_container_magazine img"
);
const news_images = document.querySelectorAll(".img_container_news img");
const vibe_images = document.querySelectorAll(".img_container_vibe img");
const pick_images = document.querySelectorAll(".img_container_pick img");

let magazine_index = 0;
let news_index = 0;
let vibe_index = 0;
let pick_index = 0;

function showSlideMagazine(direction) {
let prevbtn = document.querySelector(".magazine_prev");
if (direction === "next") {
console.log("next");
magazine_slider.classList.remove("left");
magazine_slider.classList.add("right");
magazine_index++;
if (magazine_index === magazine_images.length) {
magazine_index = 0;
}
prevbtn.style.visibility = "visible";
} else if (direction === "prev") {
prevbtn.style.visibility = "hidden";
magazine_slider.classList.remove("right");
magazine_slider.classList.add("left");
index--;
if (index < 0) {
index = images.length - 1;
}
}
}
function showSlideNews(direction) {
let prevbtn = document.querySelector(".news_prev");
if (direction === "next") {
console.log("next");
news_slider.classList.remove("left");
news_slider.classList.add("right");
news_index++;
if (news_index === news_images.length) {
news_index = 0;
}
prevbtn.style.visibility = "visible";
} else if (direction === "prev") {
prevbtn.style.visibility = "hidden";
news_slider.classList.remove("right");
news_slider.classList.add("left");
index--;
if (index < 0) {
index = images.length - 1;
}
}
}
function showSlideVibe(direction) {
let prevbtn = document.querySelector(".vibe_prev");
if (direction === "next") {
console.log("next");
vibe_slider.classList.remove("left");
vibe_slider.classList.add("right");
vibe_index++;
if (vibe_index === vibe_images.length) {
vibe_index = 0;
}
prevbtn.style.visibility = "visible";
} else if (direction === "prev") {
prevbtn.style.visibility = "hidden";
vibe_slider.classList.remove("right");
vibe_slider.classList.add("left");
index--;
if (index < 0) {
index = images.length - 1;
}
}
}
function showSlidePick(direction) {
let prevbtn = document.querySelector(".pick_prev");
if (direction === "next") {
console.log("next");
pick_slider.classList.remove("left");
pick_slider.classList.add("right");
pick_index++;
if (pick_index === pick_images.length) {
pick_index = 0;
}
prevbtn.style.visibility = "visible";
} else if (direction === "prev") {
prevbtn.style.visibility = "hidden";
pick_slider.classList.remove("right");
pick_slider.classList.add("left");
index--;
if (index < 0) {
index = images.length - 1;
}
}
}

magazine_next_btn.addEventListener("click", () => {
showSlideMagazine("next");
});
news_next_btn.addEventListener("click", () => {
showSlideNews("next");
});
vibe_next_btn.addEventListener("click", () => {
showSlideVibe("next");
});
pick_next_btn.addEventListener("click", () => {
showSlidePick("next");
});

magazine_prev_btn.addEventListener("click", () => {
showSlideMagazine("prev");
});
news_prev_btn.addEventListener("click", () => {
showSlideNews("prev");
});
vibe_prev_btn.addEventListener("click", () => {
showSlideVibe("prev");
});
pick_prev_btn.addEventListener("click", () => {
showSlidePick("prev");
});

document.querySelector(".range").addEventListener("input", (event) => {
let gradient_value = 100 / event.target.attributes.max.value;
event.target.style.background =
"linear-gradient(to right, gray 0%, gray " +
gradient_value * event.target.value +
"%, #4b4b4b " +
gradient_value * event.target.value +
"%, #4b4b4b";
});
162 changes: 162 additions & 0 deletions styles/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
.header {
width: 250px;
height: 100vh;
background-color: black;
position: fixed;
overflow: none;
flex-shrink: 0;
}
hr {
background: #1a1a1a;
width: 80%;
height: 1px;
border: 0;
margin: 0 auto;
}
.header_logo {
display: block;
color: white;
text-transform: uppercase;
font-family: "Cabin", sans-serif;
padding: 2rem 2rem;
cursor: pointer;
}
.header_logo * {
vertical-align: middle;
}

.logo_naver {
font-weight: 800;
}
.logo_vibe {
font-weight: 800;
font-size: 30px;
}
.header_submenu {
overflow: scroll;
height: 65%;
}
.header_signin_area {
display: block;
color: white;
font-size: larger;
display: flex;
flex-direction: row;
align-items: center;
padding: 1rem 2.5rem;
cursor: pointer;
}

.user_icon {
width: 20px;
height: 20px;
}
.login_txt {
margin: 0 10px 0 10px;
}
.header_member {
margin: 0 auto;
}
.member_p {
margin: 1.2rem 2.5rem;
font-size: 13px;
}
.member_button_area {
display: block;
cursor: pointer;
width: 80%;
height: 3rem;
border-radius: 0.5rem;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0 auto;
background: rgb(236, 0, 0);
background: linear-gradient(
90deg,
rgba(236, 0, 0, 1) 0%,
rgba(244, 47, 201, 0.6321122198879552) 48%,
rgba(96, 0, 135, 1) 100%
);
}
.member_icon {
width: 1.5rem;
}
.member_text {
font-weight: 800;
margin: 0 5px;
}
.header_search {
cursor: pointer;
border-radius: 5px;
margin: 0 auto;
padding: 1.5rem 2rem 1rem;
display: flex;
flex-direction: initial;
justify-content: center;
align-items: center;
}
.search_input {
width: 100%;
height: 3rem;
box-sizing: border-box;
background: #1d1d1d;
background-image: url("../assets/loupe.png");
background-size: 1.2rem 1.2rem;
background-position: 10px center;
background-repeat: no-repeat;
padding-left: 40px;
border-radius: 5px;
border: none;
}
.search_icon {
width: 1.5rem;
height: 1.5rem;
}
.header_menu {
margin: 0 auto;
width: 80%;
font-size: 1.2rem;
}
.header_menu li > a {
padding: 0.6rem 0;
display: flex;
flex-direction: row;
align-items: center;
cursor: pointer;
}
.header_menu li > a > span {
margin-left: 0.5rem;
color: gray;
}
.header_menu li > a > span:hover {
color: white;
}
.header_menu ul > hr {
width: 100%;
margin: 1rem auto;
}
.header_menu li:last-child {
margin-bottom: 100px;
}
.header_menu img {
width: 25px;
height: 25px;
}
.header_install {
border: 1px solid gray;
display: block;
width: 80%;
margin: 1rem auto;
padding: 1.1rem;
text-align: center;
font-size: large;
border-radius: 0.5rem;
cursor: pointer;
background-color: transparent;
}
.header_install:hover {
width: 80%;
border: 2px solid white;
}
16 changes: 16 additions & 0 deletions styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font: inherit;
color: white;
list-style: none;
text-decoration: none;
}
.body {
background-color: black;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: row;
}
Loading

0 comments on commit 6f54d7a

Please sign in to comment.