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