Browse Source

made everything except the json part. thinking about combining it with the calendar

site-edits
junu park 3 weeks ago
parent
commit
1420240b1b
  1. 54
      index.html
  2. 21
      src/index.ts
  3. 24
      src/main.ts
  4. 120
      src/style.css
  5. 1
      src/syllabus.ts
  6. 35
      syllabus.html
  7. 8
      vite.config.ts

54
index.html

@ -2,12 +2,56 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{준후의 서버}</title>
<title>6.S913 Fundamentals of Linux Systems</title>
<meta name="description" content="This website is intended to provide information about Juni Kim’s Linux operating system–related class">
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<h1>Fundamentals of linux systems</h1>
<div class="card"><a href="http://localhost:5173/syllabus">Go to syllabus</a></div>
<ul>
<li>This class is intended as a crash course for students to understand the basics of how modern Linux systems
operate and for students to construct one from scratch</li>
<li>Students are expected to be <span class="highlight2">comfortable working in Unix/Linux environments and using the command line</span>
as their primary interface for development</li>
<li>Join <a href="https://piazza.com/mit/spring2026/6s913">piazza</a> to receive Announcements and join class discussions</li>
<li>Lectures and lab hours will take place at <span class="highlight3">34-301</span></li>
<li>Click <span class="highlight1">Go to the Syllabus</span> to view the course syllabus</li>
</ul>
<h2>Schedule</h2>
<table class="calendar">
<thead>
<tr>
<th>Sun</th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thr</th>
<th>Fri</th>
<th>Sat</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td>20</td>
<td>21</td>
<td>22</td>
<td>23</td>
<td>24</td>
</tr>
<tr>
<td>25</td>
<td>26</td>
<td>27</td>
<td>28</td>
<td>29</td>
<td>30</td>
<td></td>
</tr>
</tbody>
</table>
</body>
<script type="module" src="/src/index.ts"></script>
</html>

21
src/index.ts

@ -0,0 +1,21 @@
import './style.css'
/*fetch("data/lecture_schedule.json")
.then(response => response.json())
.then(data => {
document.getElementById("course-title").textContent =
`${data.course.title} (${data.course.semester})`;
const scheduleList = document.getElementById("schedule");
data.weeks.forEach(week => {
const li = document.createElement("li");
li.innerHTML = `
<strong>${week.week} (${week.date})</strong><br>
주제: ${week.topic}
`;
scheduleList.appendChild(li);
});
})
.catch(error => {
console.error("schedule not loaded:", error);
});*/

24
src/main.ts

@ -1,24 +0,0 @@
import './style.css'
import typescriptLogo from './typescript.svg'
import viteLogo from '/vite.svg'
import { setupCounter } from './counter.ts'
document.querySelector<HTMLDivElement>('#app')!.innerHTML = `
<div>
<a href="https://vite.dev" target="_blank">
<img src="${viteLogo}" class="logo" alt="Vite logo" />
</a>
<a href="https://www.typescriptlang.org/" target="_blank">
<img src="${typescriptLogo}" class="logo vanilla" alt="TypeScript logo" />
</a>
<h1>Vite + TypeScript</h1>
<div class="card">
<button id="counter" type="button"></button>
</div>
<p class="read-the-docs">
Click on the Vite and TypeScript logos to learn more
</p>
</div>
`
setupCounter(document.querySelector<HTMLButtonElement>('#counter')!)

120
src/style.css

@ -1,96 +1,68 @@
:root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
display: flex;
place-items: center;
place-items:top;
min-width: 320px;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
text-align: center;
font-size: 4.2em;
line-height: 1.1;
}
#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
ul {
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
text-align:left;
font-size: 2em;
line-height: 1.8;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vanilla:hover {
filter: drop-shadow(0 0 2em #3178c6aa);
}
.card {
padding: 2em;
padding: 0.8em;
width: fit-content;
background-color: #d0ff00dc;
}
.read-the-docs {
color: #888;
.highlight1{
color:blue;
font-size:1em;
font-weight:bold;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
.highlight2{
color:red;
font-size:1em;
font-weight:bold;
}
.highlight3{
color:black
font=size:1em;
font-weight:bold;
}
button:hover {
border-color: #646cff;
.highlight4{
color:black;
font=size:1.4em;
font-weight:bold;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
h2{
font-size:3em;
line-height:3;
}
.calendar {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
.calendar th,
.calendar td {
border: 1px solid #ccc;
height: 170px;
text-align: center;
vertical-align: top;
}
.calendar th {
background: #f5f5f5;
}

1
src/syllabus.ts

@ -0,0 +1 @@
import './style.css'

35
syllabus.html

@ -2,12 +2,37 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{강의계획서 페이지}</title>
<title>6.S913 Fundamentals of Linux Systems-Syllabus</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
<h1>Fundamentals of linux systems-Syllabus</h1>
<div class="card"> <a href="http://localhost:5173/">Back to Main</a></div>
<div class="topic">
<ul>
<li><span class="highlight4">Assignment</span>
<div class="branch">The assignment for this course has four main parts, named <span class="highlight4">busybox, kernel, user, image</span></div>
<div class="branch">All parts must be completed and integrated together
to receive credit for the course</div>
<div class="branch"> Assignment must be submitted by<span class="highlight4">
Friday, January 30, 2026 11:59PM GMT-5</span></div>
<div class="branch">Students will be given a somewhat minimal scaffold for their projects and will be responsible for submitting a
tarball for their project</div>
<div class="branch"><span class="highlight4">Docker is required on all systems, and Windows users are strongly advised to use wsl</span></div>
</li>
<li>The assignment should be done on sufficiently modern hardware (for reference, you should expect to compile
the linux kernel)</li>
<li>
A significant part of this course is learning to maintain clean, reproducible filesystem state
</li>
<li>We will only grade <span class="highlight4">the final submissions </span>of those who have registered for credit. Submission logistics will be
announced later</li>
<li>Click <span class="highlight1">Back to Main</span> to go back to the Main page</li>
</ul>
</div>
</body>
<script type="module" src="/src/syllabus.ts"></script>
</html>

8
vite.config.ts

@ -0,0 +1,8 @@
export default {
server: {
watch: {
usePolling: true,
interval: 100,
},
},
}
Loading…
Cancel
Save