Skip to content

Commit 8cdda86

Browse files
committed
inicio de maquetación para textos
1 parent b3cfd7c commit 8cdda86

File tree

7 files changed

+52
-15
lines changed

7 files changed

+52
-15
lines changed

_includes/layouts/about.vto

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,19 @@
22
layout: layouts/base.vto
33
---
44

5-
{{# Artigo #}}
6-
<article>
7-
<header>
8-
<h1>{{ title }}</h1>
9-
</header>
5+
<header class="header">
6+
<h1 class="header-title">{{ title }}</h1>
7+
</header>
108

11-
<div>
12-
{{ for block of body }}
13-
{{ await comp[block.type](block) }}
14-
{{ /for }}
15-
</div>
16-
</article>
9+
<div class="blocks">
10+
{{ for block of body }}
11+
{{ await comp[block.type](block) }}
12+
{{ /for }}
13+
</div>
1714

18-
{{# Menú #}}
1915
<nav>
2016
<ul>
21-
{{ for p of search.pages(`menu=true lang=${lang}`, "order=asc") }}
17+
{{ for p of search.pages(`type=about lang=${lang}`, "order=asc") }}
2218
<li {{ if p.url == url }} class="is-active"{{ /if }}>
2319
<a href="{{ p.url }}">{{ p.title }}</a>
2420
</li>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.blocks {
2+
display: grid;
3+
grid-column: full;
4+
grid-template-columns: subgrid;
5+
}
6+
.section {
7+
grid-column: center;
8+
}
9+
10+
.section-text {
11+
font-size: var(--size-2);
12+
line-height: var(--line-text);
13+
}
14+
.section-image {
15+
grid-column: content;
16+
display: grid;
17+
grid-template-columns: subgrid;
18+
19+
figcaption {
20+
grid-row: 1;
21+
grid-column: content-start / center-start;
22+
text-align: right;
23+
font-size: var(--size-0);
24+
}
25+
picture {
26+
grid-row: 1;
27+
grid-column: center-start / content-end;
28+
}
29+
img {
30+
display: block;
31+
max-width: 100%;
32+
border-radius: var(--border-radius);
33+
}
34+
}

_includes/styles/components/header.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22
display: grid;
33
row-gap: var(--space-s);
44
margin-bottom: 100px;
5-
grid-column: center;
5+
grid-column: content;
66
align-content: start;
77
max-width: 800px;
8+
9+
@media (width > 1200px) {
10+
grid-column-start: center-start;
11+
}
812
}
913

1014
.header-title {

_includes/styles/variables.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
--line-xshort: 1.1;
3333
--line-short: 1.3;
3434
--line-base: 1.4;
35+
--line-text: 1.6;
3536

3637
/* FX */
3738
--border-radius: 6px;

pages/3_a-xunta-directiva_gl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ body:
2121
Javier Pérez (tesoureiro), Antonio Doñate (vogal) e M.ª del Rosario
2222
Domínguez (vogal).
2323
type: text
24-
- image: /about/images/55c3b7c86bc95-asemblea-2006.jpg
24+
- image: /img/about/55c3b7c86bc95-asemblea-2006.jpg
2525
text: "Primeira asemblea da DAG, 30 de xuño de 2006"
2626
mode: normal
2727
type: image

pages/_data.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
layout: layouts/about.vto
22
main_menu: about
3+
type: about

style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
@import "styles/components/members.css" layer(components);
1313
@import "styles/components/filter.css" layer(components);
1414
@import "styles/components/link.css" layer(components);
15+
@import "styles/components/blocks.css" layer(components);

0 commit comments

Comments
 (0)