mirror of
https://github.com/tjsga/towardstj.git
synced 2025-04-09 22:50:17 -04:00
ui improvements
This commit is contained in:
parent
d73e1eddad
commit
d7637d9cf9
|
@ -2,4 +2,4 @@
|
|||
|
||||
Source for TowardsTJ flatpage
|
||||
|
||||
Made with :heart: by Rushil Umaretiya (2023rumareti) and Michael Fatemi (2022mfatemi)
|
||||
Made with :heart: by Michael Fatemi (2022mfatemi) and Rushil Umaretiya (2023rumareti)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
html {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
|
||||
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
|
@ -70,17 +70,24 @@ nav {
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
max-width: 75%;
|
||||
margin: 1rem auto;
|
||||
width: 100%;
|
||||
margin-top: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
padding: 0.5rem;
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
.quote-col {
|
||||
flex: 1;
|
||||
padding: 2rem calc(min(4rem, 100vw));
|
||||
}
|
||||
|
||||
.introduction {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100vh;
|
||||
padding-top: 2.5rem;
|
||||
padding-bottom: 2.5rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
@ -98,7 +105,7 @@ table {
|
|||
.button {
|
||||
border-radius: 0.5rem;
|
||||
padding: 0.5em 1em;
|
||||
margin: 0.5rem 0;
|
||||
margin: 0.5rem 0.5rem;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
color: inherit;
|
||||
|
@ -157,7 +164,7 @@ table {
|
|||
}
|
||||
|
||||
.whitesmoke {
|
||||
background-color: whitesmoke;
|
||||
background-color: #e7e7e7;
|
||||
}
|
||||
|
||||
.inline {
|
||||
|
@ -174,27 +181,40 @@ table {
|
|||
.materials-table {
|
||||
border-spacing: 0;
|
||||
text-align: left;
|
||||
padding: 0.5rem;
|
||||
padding: 1rem 0.5rem;
|
||||
background-color: white;
|
||||
border: 0px;
|
||||
border-radius: 0.5rem;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.materials-table > thead > tr > th {
|
||||
padding: 0.5rem;
|
||||
.materials-table > thead > tr > th,
|
||||
.materials-table > tbody > tr > td {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.materials-table > thead > tr > th:nth-child(1) {
|
||||
text-align: right;
|
||||
padding-right: 1rem;
|
||||
width: 15%;
|
||||
}
|
||||
|
||||
.materials-table > thead > tr > th:nth-child(2) {
|
||||
text-align: left;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
/* Day number */
|
||||
.materials-table > tbody > tr > td:nth-child(1) {
|
||||
text-align: right;
|
||||
padding: 0.5rem;
|
||||
padding-right: 1rem;
|
||||
}
|
||||
|
||||
/* Topics */
|
||||
.materials-table > tbody > tr > td:nth-child(2) {
|
||||
text-align: left;
|
||||
padding: 0.5rem;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.materials-table td {
|
||||
|
@ -206,3 +226,7 @@ span.materials-table-title {
|
|||
display: inline-block;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.footer {
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
|
39
index.html
39
index.html
|
@ -56,16 +56,20 @@
|
|||
</div>
|
||||
<div class="introduction">
|
||||
<div class="quote">
|
||||
<h1 class="important" style="text-align: center; margin-top: 2em">
|
||||
Next year, over <span class="bold">800</span> students will enter the
|
||||
TJ building for the first time.
|
||||
<div class="quote-col">
|
||||
<h1 class="important" style="text-align: center">
|
||||
Next year, over <span class="bold">800</span> students will enter
|
||||
the TJ building for the first time.
|
||||
</h1>
|
||||
<p class="subheader">
|
||||
TJ's Student Government Association is hosting a summer program where
|
||||
students can get inside advice from upperclassmen about classes,
|
||||
extracurriculars, and TJ life.
|
||||
</div>
|
||||
<div class="quote-col">
|
||||
<p style="font-style: italic; font-size: 2rem">
|
||||
TJ's Student Government Association is hosting a summer program
|
||||
where students can get inside advice from upperclassmen about
|
||||
classes, extracurriculars, and TJ life.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inline">
|
||||
<a
|
||||
class="button hover-1 signup-button whitesmoke"
|
||||
|
@ -83,8 +87,9 @@
|
|||
>
|
||||
</div>
|
||||
</div>
|
||||
<main>
|
||||
<h1 class="header" id="schedule">Schedule</h1>
|
||||
<main style="position: relative">
|
||||
<div id="schedule" style="margin-top: -5rem; height: 5rem"></div>
|
||||
<h1 class="header">Schedule</h1>
|
||||
<p style="margin-block-start: 0; text-align: center">
|
||||
2024 students: August 2nd - August 6th, weekdays<br />
|
||||
2025 students: August 2nd - August 13th, weekdays<br /><br />
|
||||
|
@ -92,7 +97,8 @@
|
|||
10:00am - 11:15am or 11:30am - 12:45pm.
|
||||
</p>
|
||||
|
||||
<h2 id="topics">Topics</h2>
|
||||
<div id="topics" style="margin-top: -5rem; height: 5rem"></div>
|
||||
<h2>Topics</h2>
|
||||
|
||||
<span>
|
||||
(Jump to: <a href="#2025-week-1">2025 week 1</a>,
|
||||
|
@ -254,6 +260,19 @@
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<footer class="footer">
|
||||
<p>
|
||||
<a href="https://github.com/tjsga/towardstj">GitHub</a>
|
||||
</p>
|
||||
<p>
|
||||
Website made with ❤ by
|
||||
<a href="https://github.com/myfatemi04">Michael Fatemi</a> &
|
||||
<a href="https://github.com/rushilwiz">Rushil Umaretiya</a>
|
||||
</p>
|
||||
</footer>
|
||||
</main>
|
||||
|
||||
<script
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
$(function () {
|
||||
$(() => {
|
||||
$(document).scroll(function () {
|
||||
var $nav = $("nav");
|
||||
var $hero = $(".hero");
|
||||
$nav.toggleClass("scrolled", $(this).scrollTop() > $hero.height());
|
||||
const $nav = $('nav');
|
||||
$nav.toggleClass('scrolled', $(this).scrollTop() > $nav.height());
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user