Skip to content

Commit 3bf0040

Browse files
committed
simplificadas as novas, máis importancia aos proxectos
1 parent 7a595b5 commit 3bf0040

File tree

13 files changed

+135
-133
lines changed

13 files changed

+135
-133
lines changed

_includes/styles/components/menu.css

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,10 @@
2727
font-size: var(--size-1);
2828
font-weight: var(--font-bold);
2929
line-height: var(--line-short);
30-
31-
@media (width > 900px) {
32-
grid-template-columns: repeat(2, max-content);
33-
}
34-
}
35-
.menu-projects {
36-
font-size: var(--size-0);
37-
line-height: var(--line-short);
38-
border-left: solid 1px var(--color-line);
39-
padding-left: var(--space-m-xl);
40-
41-
> li {
42-
max-width: 200px;
43-
}
30+
flex: 1 1 auto;
31+
min-width: 0;
32+
max-width: 400px;
33+
grid-template-columns: repeat(auto-fill, 100px);
4434
}
4535
.menu-languages {
4636
font-size: var(--size-0);

_includes/styles/components/news.css

Lines changed: 1 addition & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -98,73 +98,7 @@
9898
line-height: var(--line-xshort);
9999
}
100100
}
101-
/* .news-group {
102-
&.is-first {
103-
display: grid;
104-
gap: var(--space-xl);
105-
align-content: start;
106-
border-left: solid 1px var(--color-line);
107-
padding-left: var(--space-xl);
108-
}
109-
110-
&.is-second {
111-
column-count: 3;
112-
column-gap: var(--space-3xl);
113-
column-rule: solid 1px var(--color-line);
114-
}
115-
} */
116101

117102
.news-home {
118-
grid-column: content;
119-
display: grid;
120-
align-content: start;
121-
row-gap: var(--space-xl);
122-
column-gap: var(--space-2xl);
123-
grid-template-areas: "main" "gr-1" "gr-2";
124-
125-
> :nth-child(1) {
126-
grid-area: main;
127-
}
128-
> :nth-child(2) {
129-
grid-area: gr-1;
130-
}
131-
> :nth-child(3) {
132-
grid-area: gr-2;
133-
}
134-
}
135-
136-
@media (width > 900px) {
137-
.news-home {
138-
grid-template-columns: repeat(3, minmax(0, 1fr));
139-
grid-template-areas:
140-
"main main main"
141-
"main main main"
142-
"gr-1 gr-1 gr-1"
143-
"gr-2 gr-2 gr-2";
144-
}
145-
146-
.news-group {
147-
column-count: 3;
148-
column-gap: var(--space-3xl);
149-
column-rule: solid 1px var(--color-line);
150-
padding-top: var(--space-xl);
151-
border-top: solid 1px var(--color-line);
152-
}
153-
}
154-
@media (width > 1500px) {
155-
.news-home {
156-
grid-template-columns: repeat(4, minmax(0, 1fr));
157-
grid-template-areas:
158-
"main main main gr-1"
159-
"main main main gr-1"
160-
"gr-2 gr-2 gr-2 gr-1";
161-
}
162-
.news-group.is-first {
163-
display: grid;
164-
row-gap: var(--space-xl);
165-
border-left: solid 1px var(--color-line);
166-
border-top: none;
167-
padding-left: var(--space-xl);
168-
padding-top: 0;
169-
}
103+
--width: 450px;
170104
}

_includes/styles/components/projects.css

Lines changed: 60 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,32 @@
2121
padding: 0;
2222
display: grid;
2323
row-gap: var(--space-m);
24+
25+
.project {
26+
display: grid;
27+
grid-template-columns: 300px 1fr;
28+
grid-template-areas:
29+
"img header"
30+
"img links";
31+
column-gap: var(--space-l);
32+
text-decoration: none;
33+
}
34+
35+
.project-title {
36+
font-size: var(--size-3);
37+
letter-spacing: var(--size-3-spacing);
38+
margin: 0;
39+
}
40+
.project-description {
41+
font-size: var(--size-2);
42+
letter-spacing: var(--size-2-spacing);
43+
44+
p {
45+
margin: 0;
46+
}
47+
}
2448
}
25-
.project {
26-
display: grid;
27-
grid-template-columns: 300px 1fr;
28-
grid-template-areas:
29-
"img header"
30-
"img links";
31-
column-gap: var(--space-l);
32-
text-decoration: none;
33-
}
49+
3450
.project-header {
3551
grid-area: header;
3652
}
@@ -42,6 +58,13 @@
4258
margin: 0;
4359
padding: 0;
4460
}
61+
a {
62+
display: inline-block;
63+
padding: 0.15em 0;
64+
&:hover {
65+
text-decoration: none;
66+
}
67+
}
4568
}
4669
.project-image {
4770
grid-area: img;
@@ -55,16 +78,35 @@
5578
border-radius: var(--border-radius);
5679
}
5780
}
58-
.project-title {
59-
font-size: var(--size-3);
60-
letter-spacing: var(--size-3-spacing);
61-
margin: 0;
62-
}
63-
.project-description {
64-
font-size: var(--size-2);
65-
letter-spacing: var(--size-1-spacing);
6681

67-
p {
82+
.projects-home {
83+
.project {
84+
display: grid;
85+
grid-template-columns: minmax(0, 1fr);
86+
grid-template-areas:
87+
"img"
88+
"header"
89+
"links";
90+
row-gap: var(--space-s);
91+
text-decoration: none;
92+
}
93+
94+
.project-title {
95+
font-size: var(--size-2);
96+
letter-spacing: var(--size-2-spacing);
97+
line-height: var(--line-short);
6898
margin: 0;
6999
}
100+
101+
.project-description {
102+
font-size: var(--size-1);
103+
letter-spacing: var(--size-1-spacing);
104+
105+
p {
106+
margin-block: 0.5em 0;
107+
}
108+
}
109+
.project-links {
110+
font-size: var(--size-0);
111+
}
70112
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.ly-carousel {
2+
--width: 400px;
3+
--column-gap: var(--space-m-l);
4+
--max-width: calc(1300px + var(--lateral) * 2 + var(--space-m-xl) * 2);
5+
--margin-inline: max(50% - var(--max-width) / 2, var(--space-m-xl));
6+
7+
grid-column: full;
8+
display: grid;
9+
display: grid;
10+
row-gap: var(--space-m-l);
11+
grid-template-columns: subgrid;
12+
13+
> * {
14+
grid-column: content;
15+
}
16+
}
17+
.ly-carousel-items {
18+
list-style-type: "";
19+
margin: 0;
20+
padding: 0 0 var(--space-m-l);
21+
display: flex;
22+
column-gap: var(--column-gap);
23+
overflow-x: auto;
24+
grid-column: full;
25+
26+
> * {
27+
width: min(100%, var(--width));
28+
flex: 0 0 auto;
29+
&:first-child {
30+
margin-left: var(--margin-inline);
31+
}
32+
&:last-child {
33+
margin-right: var(--margin-inline);
34+
}
35+
}
36+
}

_includes/templates/navbar.vto

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
menu:
33
sections:
44
- about
5+
- asociate
56
- members
67
- portfolio-1
7-
- asociate
88
- news-1
9-
- articles
109
- projects
10+
- articles
1111
languages:
1212
gl:
1313
name: Galego
@@ -36,17 +36,6 @@ menu:
3636
</li>
3737
</ul>
3838

39-
<!-- Menú iniciativas -->
40-
<ul class="menu-projects">
41-
{{
42-
for page of search.pages(`type=project in_menu=true lang=${lang}`, "year=desc")
43-
}}
44-
<li>
45-
<a href="{{ page.external_url }}">{{ page.title }}</a>
46-
</li>
47-
{{ /for }}
48-
</ul>
49-
5039
<!-- Menú idiomas -->
5140
<ul class="menu-languages">
5241
{{ for code, {name, home} of menu.languages }}

_includes/templates/news-grid.vto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{{ set img = main && news.body.find((block) => block.type === "image") }}
1+
{{ set img = news.body.find((block) => block.type === "image") }}
22

3-
<article class="news {{ main ? 'is-main' : 'is-secondary' }}">
3+
<article class="news">
44
{{ if img }}
55
<img class="news-image" src="{{ img.image }}">
66
{{ /if }}

index.vto

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
---
22
id: home
33
lang: [gl, es]
4+
es:
5+
projects:
6+
title: Proyectos destacados
7+
gl:
8+
projects:
9+
title: Proxectos destacados
410
---
511

6-
<section class="news-home">
7-
{{ for index, news of search.pages(`type=news lang=${lang}`, "date=desc", 7) }}
12+
<section class="projects-home ly-carousel">
13+
<header class="subheader">
14+
<h2 class="subheader-title">{{ projects.title }}</h2>
15+
</header>
816

9-
{{ if index === 0 }}
10-
{{ include "templates/news-grid.vto" { news, main: true } }}
11-
{{ continue }}
12-
{{ /if }}
13-
14-
{{ if index === 1 }}<div class="news-group is-first">{{ /if }}
15-
{{ if index === 4 }}</div><div class="news-group is-second">{{ /if }}
17+
<ul class="ly-carousel-items">
18+
{{
19+
for project of search.pages(`type=project in_home=true lang=${lang}`, "year=desc title=asc")
20+
}}
21+
<li>
22+
{{ include "templates/project-list.vto" { project } }}
23+
</li>
24+
{{ /for }}
25+
</ul>
26+
</section>
1627

28+
<section class="news-home ly-grid">
29+
{{
30+
for index, news of search.pages(`type=news lang=${lang}`, "date=desc", 6)
31+
}}
1732
{{ include "templates/news-grid.vto" { news } }}
18-
19-
{{ if index === 6 }}</div>{{ /if }}
2033
{{ /for }}
2134

2235
<nav>
@@ -25,11 +38,3 @@ lang: [gl, es]
2538
<a class="button-normal" href="{{ page.url }}">{{ t.home.more_news }}</a>
2639
</nav>
2740
</section>
28-
29-
{{# <section>
30-
{{
31-
for portfolio of search.pages(`type=portfolio lang=${lang}`, "date=desc", 10)
32-
}}
33-
{{ include "templates/portfolio-list.vto" { portfolio } }}
34-
{{ /for }}
35-
</section> #}}

projects/arquivododesenoarde.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ cover: /img/projects/arde-para-web.jpeg
66
external_url: "https://arde.gal/"
77
draft: false
88
in_menu: true
9+
in_home: true

projects/codigodeontoloxicodesenoread.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ cover: /img/projects/baner-codigo-deontologico-2022.jpg
66
external_url: "https://designread.es/wp-content/uploads/2022/12/codigo-deontologico_read_IDIOMAS.pdf"
77
draft: false
88
in_menu: true
9+
in_home: true

projects/encontro-deseno-cangas.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ links:
1212
url: https://www.flickr.com/photos/asociaciondag/albums/72177720323320332
1313

1414
draft: false
15+
in_home: true

0 commit comments

Comments
 (0)