Skip to content

Commit c19d460

Browse files
committed
Add container for additional styling
1 parent 073e2c8 commit c19d460

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

public/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ document.getElementById('next-item').addEventListener('click', () => {
5959

6060
// Show Next Item
6161
function showNextItem() {
62-
const container = document.getElementById('timer-container');
62+
const container = document.getElementById('time-container');
6363
container.innerHTML = '';
6464
const timerElement = createTimerElement(agendaItems[currentItemIndex], timeItems[currentItemIndex]);
6565
container.appendChild(timerElement);

public/styles.css

+6-4
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ body {
88
margin: 0;
99
background-color: #f0f0f0;
1010
}
11-
#timer-container {
11+
#time-container {
1212
text-align: center;
1313
margin-bottom: 20px;
1414
}
15-
.timer-item {
15+
#pri-container {
16+
text-align: center;
17+
min-width: 25%;
1618
background-color: #ffffff;
1719
border-radius: 10px;
1820
padding: 2rem;
@@ -63,7 +65,7 @@ footer {
6365
body {
6466
padding: 1rem;
6567
}
66-
#timer-container {
68+
#pri-container {
6769
width: 100%;
6870
}
6971
#next-item {
@@ -77,7 +79,7 @@ footer {
7779
body {
7880
padding: 2rem;
7981
}
80-
#timer-container {
82+
#pri-container {
8183
width: 75%;
8284
}
8385
#next-item {

views/timer.ejs

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
<link rel="stylesheet" href="/styles.css">
88
</head>
99
<body>
10-
<div id="timer-container"></div>
11-
<button id="next-item" class="next-button">Next Item</button>
10+
<div id="pri-container">
11+
<div id="time-container"></div>
12+
<button id="next-item" class="next-button">Next Item</button>
13+
</div>
1214
<script src="/main.js"></script>
1315
<script>
1416
const agendaItems = <%- JSON.stringify(agendaItems) %>;

0 commit comments

Comments
 (0)