Skip to content

Commit

Permalink
Move rounded corners to embed itself instead of iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDavis05 committed Feb 27, 2024
1 parent 1462b45 commit 0519669
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hackstoga/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ <h2 style="text-align: center">Teams & Projects</h2>
<h1 class="header">Schedule</h1>
<iframe
src="./embedables/schedule"
style="width: 100%; height: 1000px; border-radius: 1em; border: none; overflow: scroll"
style="width: 100%; height: 1000px; border: none; overflow: scroll"
></iframe>
<div class="pure-u-1-1 formatting-separator"></div>
</div>
Expand Down
8 changes: 6 additions & 2 deletions scripts/hackstoga/schedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ function updateSchedule() {
specialColors = ['gold', 'silver', '#9F7A34'];
let tableContent = `
<tr>
<th>Time</th>
<th
class="topleft"
>Time</th>
<th>Main Activity</th>
<th>Side Activity α</th>
<th>Side Activity β</th>
<th
class="topright"
>Side Activity β</th>
</tr>
`;

Expand Down
19 changes: 13 additions & 6 deletions style/hackstoga/schedule.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,22 @@ body {
}

#schedule-list table {
border-collapse: collapse;
border-spacing: 2;
border-collapse: separate;
border-spacing: 0;
width: 100%;
}

#schedule-list th,
td {
border: 2px solid #000; /* Adding borders for demonstration */
padding: 8px; /* Adding padding for demonstration */
#schedule-list td,
th {
border: 2px solid #000;
}

.topleft {
border-top-left-radius: 1em;
}

.topright {
border-top-right-radius: 1em;
}

#schedule-list th {
Expand Down

0 comments on commit 0519669

Please sign in to comment.