Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
1.0.0
  • Loading branch information
UnbroKen committed May 10, 2022
2 parents 5726337 + 784cb06 commit b5b8b79
Show file tree
Hide file tree
Showing 17 changed files with 74 additions and 16 deletions.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoB.eot
Binary file not shown.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoB.ttf
Binary file not shown.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoB.woff
Binary file not shown.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoB.woff2
Binary file not shown.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoH.eot
Binary file not shown.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoH.ttf
Binary file not shown.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoH.woff
Binary file not shown.
Binary file added Korean-Quotes/fonts/AppleSDGothicNeoH.woff2
Binary file not shown.
Binary file modified Korean-Quotes/images/backgroundImage_1.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Korean-Quotes/images/backgroundImage_2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Korean-Quotes/images/backgroundImage_3.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Korean-Quotes/images/backgroundImage_4.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Korean-Quotes/images/backgroundImage_5.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Korean-Quotes/images/backgroundImage_6.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Korean-Quotes/images/backgroundImage_7.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 12 additions & 9 deletions Korean-Quotes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,25 @@

<body>
<div id="bg">
<img id="image" src="https://i.ibb.co/tBVLZDs/background-Image-5.jpg" alt="배경이미지입니다.">
<img id="image" src="https://i.ibb.co/G0RT85C/background-Image-1.jpg" alt="배경이미지입니다.">
<div id="quote">
<p id="quote_1">한국어 명언 위젯입니다.</p>
<p id="quote_2">5분마다 새로운 명언으로 바뀝니다.</p>
<p id="changeButton" onclick="resetQuote()">새로고침</p>
<p id="refreshButton" onclick="resetQuote()"><img id="refreshImage"
src="https://i.ibb.co/pRc2cVz/refresh-2-48.png" alt="새로고침"></p>
</div>
</div>

<script>
const images = ["https://i.ibb.co/tBVLZDs/background-Image-5.jpg",
"https://i.ibb.co/NCVpQfm/background-Image-4.jpg",
"https://i.ibb.co/JFdmJgD/background-Image-3.jpg",
"https://i.ibb.co/QXnwKsp/background-Image-2.jpg",
"https://i.ibb.co/FhmPR8Y/background-Image-1.jpg",]
const images = ["https://i.ibb.co/X5H2XqM/background-Image-5.jpg",
"https://i.ibb.co/M8TtNsq/background-Image-6.jpg",
"https://i.ibb.co/s9rT9SW/background-Image-7.jpg",
"https://i.ibb.co/G0RT85C/background-Image-1.jpg",
"https://i.ibb.co/PChYhMz/background-Image-2.jpg",
"https://i.ibb.co/1QvvcvH/background-Image-3.jpg",
"https://i.ibb.co/DKwdfnV/background-Image-4.jpg",]
;

///배경 이미지 preload
function preload(images) {
let n = images.length;
for (let i = 0; i < n; i++) {
Expand All @@ -37,6 +40,7 @@
}
};
preload(images);

const IMG_COUNT = images.length;

function randomInt(max) {
Expand Down Expand Up @@ -83,7 +87,6 @@
} else {
goRandom();
}

}

function resetQuote() {
Expand Down
69 changes: 62 additions & 7 deletions Korean-Quotes/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ body iframe:first-child {
#bg {
width: 100vw;
height: 100vh;

display: flex;
justify-content: center;
align-items: center;
position: relative;

background-color: rgba(0, 0, 0, 0.3);
border-radius: 35px;
}

#image {
Expand All @@ -25,28 +29,79 @@ body iframe:first-child {
z-index: -99;
object-fit: cover;

border-radius: 25px;
border-radius: 35px;
}

#changeButton {
#refreshButton {
display: flex;
justify-content: center;
align-items: center;

margin: 0;
position: absolute;
right: 1%;
bottom: 1%;
right: 3%;
bottom: 3%;

cursor: pointer;

background-color: grey;
color: white;
border-radius: 15px;
border-radius: 50%;
}

#refreshImage {
width: 35px;
object-fit: cover;
}

#quote {
padding: 2em;
}

@font-face {
font-family: AppleSDGothicNeoB;
src: url(./fonts/AppleSDGothicNeoB.eot);
src: local(AppleSDGothicNeoB),
url(./fonts/AppleSDGothicNeoB.eot?#iefix) format("embedded-opentype"),
url(./fonts/AppleSDGothicNeoB.woff2) format("woff2"),
url(./fonts/AppleSDGothicNeoB.woff) format("woff"),
url(./fonts/AppleSDGothicNeoB.ttf) format("truetype");
font-style: normal;
font-weight: bold;
unicode-range: U+0-10FFFF;
}

@font-face {
font-family: AppleSDGothicNeoH;
src: url(./fonts/AppleSDGothicNeoH.eot);
src: local(AppleSDGothicNeoH),
url(./fonts/AppleSDGothicNeoH.eot?#iefix) format("embedded-opentype"),
url(./fonts/AppleSDGothicNeoH.woff2) format("woff2"),
url(./fonts/AppleSDGothicNeoH.woff) format("woff"),
url(./fonts/AppleSDGothicNeoH.ttf) format("truetype");
font-style: normal;
font-weight: normal;
unicode-range: U+0-10FFFF;
}

#quote_1 {
font-size: 20px;
color: white;
font-weight: bold;
word-break: keep-all;
}
@media screen and (max-width: 250px) {
#quote_1 {
font-size: 1em;
}
}

#quote_2 {
font-style: italic;
font-size: 10px;
color: white;
word-break: keep-all;
}
@media screen and (max-width: 250px) {
#quote_2 {
font-size: 0.5em;
}
}

1 comment on commit b5b8b79

@vercel
Copy link

@vercel vercel bot commented on b5b8b79 May 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.