Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
TBorundia committed Aug 10, 2024
2 parents 6160869 + d2d87b3 commit e34e3d7
Show file tree
Hide file tree
Showing 9 changed files with 2,777 additions and 72 deletions.
24 changes: 12 additions & 12 deletions assets/css/refresher.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
right: 30px;
}
#caduceus {
width: 50px;
height: 50px;
width: 30px;
height: 30px;
}
}

Expand All @@ -58,8 +58,8 @@ and (-webkit-min-device-pixel-ratio: 2) {
right: 60px;
}
#caduceus {
width: 50px;
height: 50px;
width: 30px;
height: 30px;
}
}

Expand All @@ -72,8 +72,8 @@ and (-webkit-min-device-pixel-ratio: 2) {
right: 8px;
}
#caduceus {
width: 50px;
height: 50px;
width: 30px;
height: 30px;
}
}

Expand All @@ -87,8 +87,8 @@ and (-webkit-min-device-pixel-ratio: 3) {
right: 10px;
}
#caduceus {
width: 50px;
height: 50px;
width: 30px;
height: 30px;
}
}

Expand All @@ -102,8 +102,8 @@ and (-webkit-min-device-pixel-ratio: 3) {
right: 12px;
}
#caduceus {
width: 50px;
height: 50px;
width: 30px;
height: 30px;
}
}

Expand All @@ -114,7 +114,7 @@ and (max-device-width: 896px)
and (-webkit-min-device-pixel-ratio: 2) {

#caduceus {
width: 50px;
height: 50px;
width: 30px;
height: 30px;
}
}
43 changes: 37 additions & 6 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1091,11 +1091,11 @@ body.dark-mode .dropdown-menu-item:hover {
}

body.dark-mode .chapter-card {
background-color: var(--chinese-violet);
/* background-color: var(--chinese-violet); */
}

body.dark-mode .chapter-card::before {
background-color: var(--old-rose);
background: var(--old-rose);
}

body.dark-mode .chapter-card:hover {
Expand Down Expand Up @@ -1216,20 +1216,40 @@ body.dark-mode .chapter-card:hover {
padding: 20px 0px;
}
.pricing-card {
box-shadow: rgba(53, 31, 31, 0.5) 0px 5px 10px 0px inset;
padding: 40px 50px;
background-color: var(--seashell);
text-align: center;
transition: var(--transition-2);
border-radius: var(--radius-5);
box-shadow: var(--shadow-2);
/* box-shadow: var(--shadow-2); */
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 200px;
min-height: 150px;
margin-top: 100px;
}

.pricing-card button{
margin-top: 20px !important;
box-shadow: rgba(50, 50, 93, 0.5) 0px 50px 100px -20px inset,
rgba(0, 0, 0, 0.7) 0px 30px 60px -30px,
rgba(10, 37, 64, 0.75) 0px -2px 6px 0px inset;
font-weight: 500 !important;
}
body.dark-mode .pricing-card button{
margin-left: auto !important;
margin-right: auto !important;
background-color: #faa2a2 !important;
color:#6a1818 !important;
box-shadow: rgba(80, 80, 92, 0.5) 0px 50px 100px -20px inset,
rgba(86, 73, 73, 0.7) 0px 30px 60px -30px,
rgba(74, 76, 78, 0.75) 0px -2px 6px 0px inset;
font-weight: 500 !important;

}
.dark-mode .pricing-card {
background-color: #151111;
background:linear-gradient(#000000, #8e4949);
}
.dark-mode .pricing-card .card-title {
color: white;
Expand All @@ -1251,6 +1271,10 @@ body.dark-mode .chapter-card:hover {
}

.pricing-card .price {
box-shadow: rgba(53, 31, 31, 0.5) 0px 5px 10px 0px ;
background: linear-gradient(#8f3838, #db7272);
color:white !important;
border-radius: 10px;
font-family: var(--ff-philosopher);
font-size: var(--fs-1);
color: var(--charcoal);
Expand Down Expand Up @@ -3238,7 +3262,11 @@ footer {
fill: #1e1c1c;
}


.iconrow{
display: flex;
flex-direction: row;
justify-content: space-between;
}
/* Switch Container */
.switch-container {
position: absolute;
Expand Down Expand Up @@ -3446,6 +3474,9 @@ body.dark-mode .pricing-card h3 {
gap: 10px;
}

body.dark-mode .chapter-card{
background:linear-gradient(#090e11, #4b2e2e);
}
/* Medium devices (large tablets and small laptops, 768px to 1060px) */
@media (min-width: 950px) and (max-width: 1060px) {
.foot-top {
Expand Down
169 changes: 169 additions & 0 deletions assets/html/audio.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SwapReads - Custom Audiobook Player</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.audiobook-container {
max-width: 600px;
width: 100%;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
text-align: center;
}

.book-image {
width: 200px;
height: 300px;
background-color: #ddd;
border-radius: 10px;
background-size: cover;
background-position: center;
margin: 0 auto 20px auto;
}

h2 {
font-size: 24px;
margin-bottom: 10px;
}

p {
color: #555;
margin-bottom: 20px;
}

.audio-player {
display: flex;
flex-direction: column;
align-items: center;
}

.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 10px;
}

.play-btn {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
font-size: 24px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}

.progress-container {
width: 100%;
background-color: #ddd;
border-radius: 5px;
cursor: pointer;
}

.progress {
height: 10px;
background-color: #4CAF50;
border-radius: 5px;
width: 0;
}

.time {
font-size: 14px;
color: #555;
}
</style>
</head>
<body>
<div class="audiobook-container">
<div class="book-image" style="background-image: url('https://m.media-amazon.com/images/I/71cpVgEK94L._AC_UF1000,1000_QL80_.jpg');"></div>
<h2>The Great Adventure</h2>
<p>by John Doe</p>

<div class="audio-player">
<div class="controls">
<button class="play-btn" id="playBtn">▶️</button>
<div class="time" id="currentTime">0:00</div>
<div class="time">/</div>
<div class="time" id="durationTime">0:00</div>
</div>
<div class="progress-container" id="progressContainer">
<div class="progress" id="progress"></div>
</div>
</div>

<audio id="audio">
<source src="audiobook-sample.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</div>

<script>
const audio = document.getElementById('audio');
const playBtn = document.getElementById('playBtn');
const progressContainer = document.getElementById('progressContainer');
const progress = document.getElementById('progress');
const currentTimeEl = document.getElementById('currentTime');
const durationTimeEl = document.getElementById('durationTime');

// Play & Pause Audio
playBtn.addEventListener('click', () => {
if (audio.paused) {
audio.play();
playBtn.textContent = '⏸️';
} else {
audio.pause();
playBtn.textContent = '▶️';
}
});

// Update progress bar and time
audio.addEventListener('timeupdate', () => {
const { duration, currentTime } = audio;
const progressPercent = (currentTime / duration) * 100;
progress.style.width = `${progressPercent}%`;

// Update current time
const minutes = Math.floor(currentTime / 60);
const seconds = Math.floor(currentTime % 60);
currentTimeEl.textContent = `${minutes}:${seconds < 10 ? '0' : ''}${seconds}`;

// Update duration
const durationMinutes = Math.floor(duration / 60);
const durationSeconds = Math.floor(duration % 60);
if (!isNaN(durationMinutes)) {
durationTimeEl.textContent = `${durationMinutes}:${durationSeconds < 10 ? '0' : ''}${durationSeconds}`;
}
});

// Set progress bar manually
progressContainer.addEventListener('click', (e) => {
const width = progressContainer.clientWidth;
const clickX = e.offsetX;
const duration = audio.duration;

audio.currentTime = (clickX / width) * duration;
});
</script>
</body>
</html>
Loading

0 comments on commit e34e3d7

Please sign in to comment.