tangled
alpha
login
or
join now
finxol.io
/
portfolio
0
fork
atom
Personal site
staging.colinozanne.co.uk
portfolio
astro
0
fork
atom
overview
issues
pulls
pipelines
fix: project page layout
finxol.io
2 months ago
f8ed28c5
a5143f8d
verified
This commit was signed with the committer's
known signature
.
finxol.io
SSH Key Fingerprint:
SHA256:olFE3asYdoBMScuJOt60UxXdJ0RFdGv5kVKrdOtIcPI=
1/1
deploy.yaml
success
15s
+14
-13
3 changed files
expand all
collapse all
unified
split
src
assets
styles
projects
projects.css
components
pages
project.astro
layouts
Layout.astro
+11
-10
src/assets/styles/projects/projects.css
···
1
1
article {
2
2
display: grid;
3
3
-
grid-template-columns: auto auto 1fr;
3
3
+
grid-template-columns: auto 1fr;
4
4
grid-template-areas:
5
5
-
"back-btn title subtitle"
6
6
-
". img img"
7
7
-
". description description";
5
5
+
"back-btn title"
6
6
+
". subtitle"
7
7
+
". img"
8
8
+
". description";
8
9
gap: var(--spacing);
9
10
column-gap: calc(var(--spacing) * 2);
10
10
-
row-gap: calc(var(--spacing) * 3);
11
11
+
row-gap: calc(var(--spacing) * 2);
11
12
align-items: center;
12
13
margin-inline-end: 3rem;
13
14
font-size: 1.1rem;
···
31
32
margin: 0;
32
33
font-size: 2.7rem;
33
34
font-weight: bolder;
34
34
-
width: fit-content;
35
35
-
max-width: 50cqi;
35
35
+
margin-block-end: calc(var(--spacing) * -1);
36
36
}
37
37
38
38
& > p.subtitle {
39
39
grid-area: subtitle;
40
40
margin: 0;
41
41
font-size: 1.5rem;
42
42
-
align-self: end;
43
43
-
margin-block-end: 0.2rem;
44
42
}
45
43
46
44
& > div {
···
69
67
gap: var(--spacing);
70
68
71
69
@media screen and (max-width: 768px) {
72
72
-
flex-direction: column;
73
70
align-items: center;
71
71
+
grid-template-areas:
72
72
+
"img img"
73
73
+
"box1 box3"
74
74
+
"box2 box2";
74
75
}
75
76
76
77
& > img,
+2
-2
src/components/pages/project.astro
···
1
1
---
2
2
import Layout from "@/layouts/Layout.astro";
3
3
-
import "@/assets/styles/projects/karr.css";
3
3
+
import "@/assets/styles/projects/projects.css";
4
4
import { Icon } from "astro-icon/components";
5
5
import { projects } from "@/data/projects";
6
6
···
44
44
</picture>
45
45
46
46
<div class="container">
47
47
-
<Icon name="tabler:brand-git" />
47
47
+
<Icon name="tabler:calendar" />
48
48
<span>
49
49
{content.datePrefix}
50
50
{project.startDate.toLocaleDateString(locale)}
+1
-1
src/layouts/Layout.astro
···
338
338
}
339
339
340
340
main {
341
341
-
container-type: inline-size;
341
341
+
container: main-content / inline-size;
342
342
padding: var(--spacing);
343
343
overflow-y: scroll;
344
344
}