Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahR13 authored Oct 11, 2024
1 parent 7823f7b commit a1d45c2
Show file tree
Hide file tree
Showing 20 changed files with 586 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _announcements/week-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Week 0 Announcement
week: 0
date: 2024-08-28
---

Hello world!
{: .fs-5 }
8 changes: 8 additions & 0 deletions _announcements/week-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Week 1 Announcement
week: 1
date: 2024-09-08
---

1. Meet
2. Profit??
20 changes: 20 additions & 0 deletions _includes/minutes.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% capture _minutes_workspace %}
{% comment %}
Return the number of minutes between midnight and the given time string (e.g. '9:30 AM').
Parameters:
`time` (string): the time to convert.
{% endcomment %}

{% assign _time = include.time %}
{% assign _hhmm = _time | split: ' ' | first | split: ':' %}
{% assign _hours = _hhmm | first | to_integer %}
{% assign _minutes = _hhmm | last | to_integer %}
{% assign _ampm = _time | split: ' ' | last | upcase %}

{% if _ampm == 'AM' and _hours == 12 %}
{% assign _hours = _hours | minus: 12 %}
{% elsif _ampm == 'PM' and _hours != 12 %}
{% assign _hours = _hours | plus: 12 %}
{% endif %}
{% endcapture %}{% assign _minutes_workspace = '' %}{{ _hours | times: 60 | plus: _minutes }}
14 changes: 14 additions & 0 deletions _layouts/announcement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="announcement">
<h2>{{ page.title }}</h2>
<span class="announcement-meta">
{% if page.date %}
{{ page.date | date: '%b %e' }}
&middot;
{% endif %}
{% assign minutes = content | strip_html | number_of_words | divided_by: 180.0 | round %}
{{ minutes }} min read
</span>
<div>
{{ content }}
</div>
</div>
4 changes: 4 additions & 0 deletions _layouts/module.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h2 class="fs-4" id="{{ page.title | slugify }}" >{{ page.title }}</h2>
<div class="module">
{{ content }}
</div>
34 changes: 34 additions & 0 deletions _layouts/schedule.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{% assign start_time = page.timeline | first %}
{% capture offset %}{% include minutes.liquid time=start_time %}{% endcapture %}
<div class="schedule">
<ul class="schedule-timeline" style="min-width: {{ page.schedule | size | times: 120 }}px">
{% for time in page.timeline %}
<li class="schedule-time">{{ time }} </li>
{% endfor %}
</ul>
<ul class="schedule-group">
{% for day in page.schedule %}
<li class="schedule-day">
<h2 class="schedule-header no_anchor">{{ day.name }}</h2>
{% if day.events %}
<ul class="schedule-events" style="height: {{ page.timeline | size | times: 40 }}px">
{% for event in day.events %}
{% capture start %}{% include minutes.liquid time=event.start %}{% endcapture %}
{% capture end %}{% include minutes.liquid time=event.end %}{% endcapture %}
{% assign top = start | minus: offset | times: 40 | divided_by: 30 %}
{% assign height = end | minus: start | times: 40 | divided_by: 30 %}
<li class="schedule-event {% if event.class %}{{ event.class }}{% else %}{{ event.name | slugify }}{% endif %}"
style="top: {{ top }}px; height: {{ height }}px;">
<div class="name">{{ event.name }}</div>
<div class="time">{{ event.start }}–{{ event.end }}</div>
{% if event.location %}
<div class="location">{{ event.location }}</div>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
29 changes: 29 additions & 0 deletions _layouts/staffer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<div class="staffer">
{%- if page.photo -%}
<img class="staffer-image" src="{{ site.baseurl }}{{ page.subpath }}{{ page.photo }}" alt="" width="{{ page.width }}" height="{{ page.height }}">
{%- endif -%}
<div>
<h3 class="staffer-name" id="{{ page.name | slugify }}">
{%- if page.website -%}
<a href="{{ page.website }}">{{ page.name }}</a>
{%- else -%}
{{ page.name }}
{%- endif -%}
</h3>
{%- if page.pronouns -%}
<p class="staffer-pronouns">{{ page.pronouns }}</p>
{%- endif -%}
{%- if page.email -%}
<p><a href="mailto:{{ page.email }}">{{ page.email }}</a></p>
{%- endif -%}
{%- if page.meta -%}
<dl class="staffer-meta">
{%- for meta in page.meta -%}
<dt>{{ meta[0] }}</dt>
<dd>{{ meta[1] | markdownify }}</dd>
{%- endfor -%}
</dl>
{%- endif -%}
{{ content }}
</div>
</div>
23 changes: 23 additions & 0 deletions _modules/week-01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: Introduction to SIGExample
---

Sep 28
: [Java & Git](#)
: [1.1](#)

Sep 29
: **Section**{: .label .label-purple }[Intro to Java](#)
: [Solution](#)

Sep 30
: [Variables & Objects](#)
: [1.2](#), [2.1](#)

Oct 1
: **Lab**{: .label .label-purple } [Intro to Java](#)

Oct 2
: [Tracing, IntLists, & Recursion](#)
: [2.1](#)
: **HW 1 due**{: .label .label-red }
23 changes: 23 additions & 0 deletions _modules/week-02.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: SIGExample Topic 1
---

Oct 5
: [Linked Lists & Encapsulation](#)
: [3.1](#), [2.2](#), [2.3](#)

Oct 6
: **Section**{: .label .label-purple }[Linked Lists](#)
: [Solution](#)

Oct 7
: [Resizing Arrays](#)
: [2.4](#), [2.5](#)

Oct 8
: **Lab**{: .label .label-purple } [Resizing Arrays](#)

Oct 9
: [Runtime Analysis](#)
: [8.1](#), [8.2](#), [8.3](#), [8.4](#)
: **HW 2 due**{: .label .label-red }
11 changes: 11 additions & 0 deletions _sass/custom/announcement.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.announcement {
@extend %card;

h1, h2 {
@extend .text-gamma;
}

.announcement-meta {
@extend .text-epsilon;
}
}
33 changes: 33 additions & 0 deletions _sass/custom/card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@mixin abstract-card() {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 14px rgba(0, 0, 0, 0.05);
margin: $sp-4 (-$gutter-spacing-sm);

@include mq(md) {
border-radius: $border-radius;
margin: $sp-4 0;
}
}

%card {
@include abstract-card();
display: flex;
flex-direction: column;
min-width: 0;
padding: 0 $sp-4;
position: relative;
word-wrap: break-word;

>:first-child {
border-top: none !important;
}

>:last-child {
border-bottom: none !important;
}

.label {
border-radius: $border-radius;
margin-left: 0;
user-select: none;
}
}
53 changes: 53 additions & 0 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Just the Class dependencies
@import 'card';

// Just the Class styles
@import 'announcement';
@import 'module';
@import 'schedule';
@import 'staffer';

// Overrides
code {
font-size: 14px;
padding: 0.2em 0.4em;
border: none;
}

iframe {
max-width: 100%;
}

details {
@extend .mb-4;
}

summary {
@extend .btn, .btn-outline;

width: 100%;
}

.main-content {
dl {
display: block;
grid-template-columns: none;
}

dt {
font-weight: 700;
text-align: start;

&::after {
content: normal;
}
}

dd {
font-weight: normal;

+ dt {
margin-top: 1em;
}
}
}
97 changes: 97 additions & 0 deletions _sass/custom/module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
.main-content .module,
.module {
@extend %card;

h1,
h2,
h3,
h4,
h5,
h6 {
&:first-child {
margin-top: $sp-4;
}
}

>dl {
border-bottom: $border $border-color;
border-top: $border $border-color;
display: grid;
grid-template-columns: max-content 1fr;
margin: $sp-2 (-$sp-4);

&:first-child {
margin-top: 0;
}

&:last-child {
margin-bottom: 0;
}

@include mq(lg) {
grid-template-columns: 1fr 7fr;
}

%module-item {
margin: 0;
padding: $sp-2;

@include mq(sm) {
padding: $sp-2 $sp-4;
}
}

>dt {
@extend %module-item;
border-top: $border $border-color;
font-weight: normal;
text-align: right;

+dd {
border-top: $border $border-color;
}

&:first-child {
border-top: none;

+dd {
border-top: none;
}
}

&::after {
content: ":";
}
}

>dd {
@extend %module-item;

+dd {
padding-top: 0;
}

ol, ul, dl {
margin: 0;
}

dl {
display: flex;
flex-direction: column;

@include mq(sm) {
flex-direction: row;
}

dt {
flex: 0 0 62.5%;
margin: 0;
}

dd {
margin: 0;
}
}
}
}
}
Loading

0 comments on commit a1d45c2

Please sign in to comment.