Skip to content

Commit

Permalink
SVG icon updates for All Courses Page and Site now defaults to Light …
Browse files Browse the repository at this point in the history
…mode

Signed-off-by: Satish Surath <[email protected]>
  • Loading branch information
satishsurath committed Sep 7, 2023
1 parent 27b4c41 commit 9bd43c8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
});

function applyTheme() {
const savedTheme = localStorage.getItem('theme') || 'dark';
const savedTheme = localStorage.getItem('theme') || 'light';
setTheme(savedTheme);
}
</script>
Expand Down
44 changes: 40 additions & 4 deletions app/templates/course_management.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="center-align">All Courses</h1>
<th>Course Name</th>
<th>Modify</th>
<th>Delete</th>
<th>AllDayTA</th>
<th>Test TA</th>
<th>Rename</th>
</tr>
</thead>
Expand All @@ -28,10 +28,17 @@ <h1 class="center-align">All Courses</h1>
<tr>
<td>{{ course }}</td>
<td>
<a href="{{ url_for('course_contents', course_name=course) }}"><svg style="fill: var(--text-color);" width="18px" height="18px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"/></svg></a>
<a href="{{ url_for('course_contents', course_name=course) }}">
<svg style="fill: var(--text-color);" width="18px" height="18px" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" viewBox="10 0 65 81.25" version="1.1" x="0px" y="0px"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage"><g sketch:type="MSArtboardGroup" fill="#000000"><path d="M70.3638309,26.4972842 L83.3010391,39.4344925 L43.4875796,79.247952 L30.5503714,66.3107438 L70.3638309,26.4972842 Z M27.7631516,69.5838164 L40.7003599,82.5210246 L25.7614281,84.5227482 L27.7631516,69.5838164 Z M79.736483,17.1518561 C80.7173191,16.1710201 82.1722077,16.0500704 83.3078984,17.1857611 C86.9199568,20.7978195 91.6062204,25.4840831 92.728856,26.6067187 C93.8514915,27.7293542 93.6853099,29.0774457 92.6736913,30.0890643 C91.6620727,31.100683 85.8279146,36.934841 85.8279146,36.934841 L72.8907064,23.9976328 C72.8907064,23.9976328 78.755647,18.1326922 79.736483,17.1518561 Z" sketch:type="MSShapeGroup"/><path d="M65.6682564,23.1287772 C59.1483903,18.8515734 50.6216865,14.8521229 40.6637012,14.6608209 L40.6199498,14.6608209 L40.5761984,14.6608209 C26.3715776,14.9337981 15.0642716,22.9608039 8.35572379,28.4842889 C8.0348802,28.7474291 5.83758773,30.4516923 5.80112823,32.6305916 C5.77439126,34.1651662 6.48170554,35.2988824 7.50014088,36.2481546 C12.6396956,41.2775827 23.4769376,49.9764889 37.6992494,51.0977842 L65.6682564,23.1287772 Z M54.4498147,34.3472189 C54.4951212,33.8828973 54.5183108,33.4119715 54.5183108,32.9355391 C54.5183108,25.1495402 48.3250572,18.831716 40.6199498,18.782531 C32.9342874,18.831716 26.7191581,25.1495402 26.7191581,32.9355391 C26.7191581,40.7215381 32.9342874,47.0393622 40.6199498,47.0910065 C41.0039766,47.08831 41.3842479,47.0700599 41.760184,47.0368496 L54.4498147,34.3472189 Z M40.6637012,27.4341874 L40.6637012,27.4341874 C40.6491174,27.4317281 40.6345336,27.4317281 40.6199498,27.4317281 L40.5761984,27.4317281 L40.5761984,27.4341874 C37.6351321,27.507965 35.270126,29.9426267 35.270126,32.9355391 C35.270126,35.9284515 37.6327015,38.3655725 40.5761984,38.4368909 L40.5761984,38.4418094 C40.5907822,38.4418094 40.605366,38.4368909 40.6199498,38.4368909 C40.6321029,38.4368909 40.6466867,38.4418094 40.6637012,38.4418094 L40.6637012,38.4368909 C43.6266431,38.3655725 45.9697736,35.9284515 45.9697736,32.9355391 C45.9697736,29.9426267 43.6266431,27.507965 40.6637012,27.4341874 L40.6637012,27.4341874 Z" sketch:type="MSShapeGroup"/></g></g></svg>
</a>


</td>
<td>
<a href="{{ url_for('delete_item', name=course) }}"><svg style="fill: var(--text-color);" width="18px" height="18px"viewBox="0 -0.5 21 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<a href="{{ url_for('delete_item', name=course) }}">


<svg style="fill: var(--text-color);" width="18px" height="18px" viewBox="0 -0.5 21 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Dribbble-Light-Preview" transform="translate(-179.000000, -360.000000)" style="fill: var(--text-color);">
<g id="icons" transform="translate(56.000000, 160.000000)">
Expand All @@ -45,7 +52,36 @@ <h1 class="center-align">All Courses</h1>
</form>
</td>
<td>
<a href="{{ url_for('teaching_assistant', course_name=course) }}"><svg style="fill: var(--text-color);" width="18px" height="18px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"/></svg></a>
<a href="{{ url_for('teaching_assistant', course_name=course) }}">
<svg style="fill: var(--text-color);" width="18px" height="18px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 511.998 511.998" xml:space="preserve">
<g>
<g>
<g>
<path d="M418.643,21.318H221.353c-51.547,0-93.355,41.807-93.355,93.355v13.312H93.355C41.807,127.984,0,169.792,0,221.339
v88.683c0,55.289,26.377,95.296,76.864,95.296h8.469v64c0,22.932,31.239,29.714,40.747,8.845
c7.211-15.827,19.353-30.833,35.143-44.611c9.913-8.65,20.621-16.265,31.321-22.725c3.835-2.315,7.11-4.157,9.649-5.509h75.14
c52.857,0,106.667-44.46,106.667-95.296v-11.371h51.134c50.487,0,76.864-40.007,76.864-95.296v-88.683
C511.998,63.119,470.206,21.318,418.643,21.318z M277.333,362.651H197.12c-3.133,0-6.227,0.69-9.063,2.021
c-3.758,1.764-9.867,4.982-17.563,9.628c-12.7,7.667-25.394,16.695-37.322,27.103c-1.756,1.533-3.481,3.081-5.172,4.647v-22.065
c0-11.782-9.551-21.333-21.333-21.333H76.864c-22.276,0-34.197-18.081-34.197-52.629v-88.683
c0-27.983,22.705-50.688,50.688-50.688h55.977h141.312c1.198,0,2.383,0.057,3.56,0.138c21.165,1.471,38.766,15.936,44.849,35.478
c1.481,4.761,2.279,9.823,2.279,15.072v55.979c0,0.015,0.002,0.029,0.002,0.044v32.661
C341.333,335.302,308.233,362.651,277.333,362.651z M469.331,203.355c0,34.548-11.921,52.629-34.197,52.629H384v-34.645
c0-9.74-1.495-19.131-4.264-27.959c-11.505-36.697-45.057-63.637-85.143-65.306c-1.31-0.055-2.625-0.089-3.948-0.089h-0.002
H170.665v-13.312c0-27.983,22.705-50.688,50.688-50.688h197.291c27.996,0,50.688,22.696,50.688,50.688V203.355z"/>
<path d="M192,234.651c-11.776,0-21.333,9.557-21.333,21.333c0,11.776,9.557,21.333,21.333,21.333s21.333-9.557,21.333-21.333
C213.333,244.208,203.776,234.651,192,234.651z"/>
<path d="M277.333,234.651c-11.776,0-21.333,9.557-21.333,21.333c0,11.776,9.557,21.333,21.333,21.333s21.333-9.557,21.333-21.333
C298.667,244.208,289.109,234.651,277.333,234.651z"/>
<path d="M106.667,234.651c-11.776,0-21.333,9.557-21.333,21.333c0,11.776,9.557,21.333,21.333,21.333S128,267.76,128,255.984
C128,244.208,118.443,234.651,106.667,234.651z"/>
</g>
</g>
</g>
</svg>

</a>
</td>
<td>
<form action="{{ url_for('rename_item') }}" method="post">
Expand Down

0 comments on commit 9bd43c8

Please sign in to comment.