Skip to content

Commit 85984b4

Browse files
committed
move to webm; try fix pub size on mobile; try fix dark mode on mobile
1 parent 4dccdcf commit 85984b4

File tree

6 files changed

+12
-3
lines changed

6 files changed

+12
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ yarn start
4747

4848
## TODO:
4949

50-
- gha for deploys on merge to main
50+
- minor fixes: top bar icon size on mobile; dark mode mobile not working; better zod parsing
5151

5252
- add Sheares!
5353
- add new publications: llama (rsc), evoxels, vulture, image rep (adv sci), hr-dv2 (adv int sys), BIL, prompt to protocol

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<html lang="en">
44
<head>
55
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
7+
<meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)" />
68
<title>tldr</title>
79
</head>
810
<body>

public/assets/micro.gif

-6.83 MB
Binary file not shown.

public/assets/micro.webm

1.89 MB
Binary file not shown.

src/components/MainContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const MainContent = () => {
22
return (
33
<div className="outlined-content">
4-
<img src="/assets/micro.gif" style={{ maxWidth: "75%", objectFit: "scale-down" }} />
4+
<video src="/assets/micro.webm" autoPlay loop muted style={{ maxWidth: "75%", objectFit: "scale-down" }} />
55
<p>
66
The Tools for Learning, Design and Research (tldr) group is a multidisciplinary team based in the Dyson school
77
of Design engineering at Imperial College London. With activities spanning online education, generative design

src/styles.module.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
:global(html) {
2+
color-scheme: light dark;
3+
}
14

25
// Color variables
36
$secondary: #f5a418;
@@ -46,7 +49,8 @@ $text-white: #fafafa;
4649
}
4750

4851
@media (prefers-color-scheme: dark) {
49-
:root[data-theme="dark"] {
52+
:root[data-theme="dark"],
53+
:root:not([data-theme="light"]) {
5054
--bg: #{$bg-dark};
5155
--text-color: #{$text-white};
5256
}
@@ -103,6 +107,7 @@ ul {
103107

104108
li {
105109
margin-bottom: 0.5em;
110+
max-width: 75%;
106111
}
107112

108113
.flex-row {
@@ -358,6 +363,8 @@ input:checked + .slider:before {
358363
}
359364

360365
// PUBLICATIONS
366+
367+
361368
li a{
362369
color: #006666;
363370
}

0 commit comments

Comments
 (0)