Skip to content

Commit e984cc4

Browse files
committed
Finally themed the index page
1 parent 09a145b commit e984cc4

File tree

8 files changed

+132
-51
lines changed

8 files changed

+132
-51
lines changed

_quarto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ format:
2121
toc: true
2222
embed-resources: true
2323
self-contained-math: true
24+
anchor-sections: false

_site/experiments/cpp_test/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
88

99

10-
<title>Cpp_test – Computational Physics</title>
10+
<title>C++ Test – Computational Physics</title>
1111
<style>
1212
code{white-space: pre-wrap;}
1313
span.smallcaps{font-variant: small-caps;}
@@ -4791,7 +4791,7 @@
47914791

47924792
<header id="title-block-header" class="quarto-title-block default">
47934793
<div class="quarto-title">
4794-
<h1 class="title">Cpp_test</h1>
4794+
<h1 class="title">C++ Test</h1>
47954795
</div>
47964796

47974797

_site/experiments/wave_equation/index.html

Lines changed: 0 additions & 16 deletions
Large diffs are not rendered by default.

_site/index.html

Lines changed: 64 additions & 28 deletions
Large diffs are not rendered by default.

_site/search.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33
"objectID": "experiments/cpp_test/index.html",
44
"href": "experiments/cpp_test/index.html",
5-
"title": "Cpp_test",
5+
"title": "C++ Test",
66
"section": "",
77
"text": "This should test the render cpp script.\nextern void render_rect(int x, int y, int w, int h);\n\nint main() {\n render_rect(0,0,50,50);\n return 0;\n}\nNow we display a canvas with a square"
88
},
@@ -47,5 +47,19 @@
4747
"title": "About",
4848
"section": "",
4949
"text": "About this site"
50+
},
51+
{
52+
"objectID": "index.html",
53+
"href": "index.html",
54+
"title": "Computational Physics",
55+
"section": "",
56+
"text": "Home Page\n\n\n\n\n\n\n\n\n\n\n\nCpp_test\n\n \n\n\n\n\nPoisson’s Equation (Voltage)\n\n \\[\\nabla V = -\\frac{1}{\\epsilon_0}\\rho\\] \n\n\n\n\nSchrödinger’s Equation\n\n \\[-\\frac{\\hbar}{2m}\\nabla^2 \\psi(x) + V(x) \\psi(x) = E \\psi(x)\\] \n\n\n\n\nWave Equation\n\n \\[\\frac{\\partial^2 y}{\\partial^2 t} = \\frac{T}{\\mu} \\frac{\\partial^2 y}{\\partial^2 x}\\] \n\n\n\nNo matching items"
57+
},
58+
{
59+
"objectID": "index.html#home-page",
60+
"href": "index.html#home-page",
61+
"title": "Computational Physics",
62+
"section": "Home Page",
63+
"text": "Home Page"
5064
}
5165
]

experiment.ejs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
<ul>
1+
<ul class="listing-container">
22
<% for (const item of items) { %>
3-
<li><a href="<%- item.path %>"><%= item.title %></a> <%= item.description%></li>
3+
<li class="list-item">
4+
<a href="<%- item.path %>" class="card-link">
5+
<h3 class="card-title"><%= item.title %></h3><br>
6+
<span class="card-desc"><%= item.description %></span>
7+
</a>
8+
</li>
49
<% } %>
510
</ul>

experiments/cpp_test/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Cpp_test
2+
title: C++ Test
33
---
44

55
This should test the render cpp script.

index.qmd

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,45 @@ listing:
55
sort: "title asc"
66
template: experiment.ejs
77
---
8-
## Experiments
8+
## Home Page
9+
```{=html}
10+
<style>
11+
.listing-container {
12+
background: var(--bs-gray-900);
13+
list-style-type: none; /* Removes bullet points from unordered lists */
14+
padding: 1em; /* Optional: removes default padding */
15+
text-align: center;
16+
}
17+
.card-link {
18+
background: none;
19+
color: inherit; /* Use the same color as the surrounding text */
20+
text-decoration: none; /* Remove underline */
21+
cursor: default; /* Change cursor to default */
22+
}
23+
.card-desc {
24+
background: none;
25+
color: inherit; /* Use the same color as the surrounding text */
26+
}
27+
.card-link:hover {
28+
background: none;
29+
color: inherit; /* Keep the same color on hover */
30+
text-decoration: none; /* Keep no underline on hover */
31+
}
32+
.list-item {
33+
background: var(--bs-default);
34+
border: 0.1em;
35+
padding: 0.1em 1em 0.5em 1em;
36+
border-radius: 1em;
37+
margin: 1em;
38+
}
39+
40+
.list-item:hover {
41+
background: var(--bs-default);
42+
border: 0.1em;
43+
padding: 0.1em 1em 0.5em 1em;
44+
border-radius: 1em;
45+
margin: 1em;
46+
color: var(--bs-green);
47+
}
48+
</style>
49+
```

0 commit comments

Comments
 (0)