Skip to content

Commit b35cbe4

Browse files
gmartin7Gordon Martin
andauthored
Merge pull request #5972 from gmartin7/BL-12396Guatemala1
[5.4] BL-12396 Guatemala branding #1 (#5972) Co-Authored-By: Gordon Martin <gordon_martin@sil.org>
2 parents c28a654 + 902cc77 commit b35cbe4

10 files changed

Lines changed: 1451 additions & 0 deletions

src/content/branding/Guatemala-RTI-GBEQT/LOGO_MINEDUC_2023.svg

Lines changed: 66 additions & 0 deletions
Loading

src/content/branding/Guatemala-RTI-GBEQT/Logos-Consorcio-BEQT-Without-USAID.svg

Lines changed: 522 additions & 0 deletions
Loading

src/content/branding/Guatemala-RTI-GBEQT/Logos_Consorcio_BEQT_USAID.svg

Lines changed: 545 additions & 0 deletions
Loading

src/content/branding/Guatemala-RTI-GBEQT/USAID_Horiz_Spanish.svg

Lines changed: 159 additions & 0 deletions
Loading
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
@import "../branding-base.less";
2+
3+
// I made a branding-common.less file, because there are 2 similar Guatemala brandings being created at the same time.
4+
@TopLogoMarginOffset: 2rem;
5+
@BottomLogoMarginOffset: 3rem;
6+
7+
p {
8+
margin-bottom: 1em;
9+
}
10+
11+
.credits-page-branding-top-block {
12+
display: flex;
13+
flex-direction: column;
14+
15+
.credits-page-branding-top-logo-block {
16+
display: flex;
17+
flex-direction: row;
18+
max-height: 75px;
19+
justify-content: space-between;
20+
21+
// This is the top of the credits page, where we put the logos. There is a top left and a top right nested
22+
// inside of the top logo section.
23+
.credits-page-branding-top-logo-right,
24+
.credits-page-branding-top-logo-left {
25+
width: calc(50% + @TopLogoMarginOffset);
26+
display: flex;
27+
max-width: 300px; // in case of large page sizes, we don't want the logos to get carried away
28+
}
29+
30+
// Move the logos toward the left and right edges of the page.
31+
.credits-page-branding-top-logo-left {
32+
margin-left: -@TopLogoMarginOffset;
33+
align-content: flex-start;
34+
img.branding {
35+
margin-left: unset;
36+
}
37+
}
38+
39+
.credits-page-branding-top-logo-right {
40+
margin-right: -@TopLogoMarginOffset;
41+
align-content: flex-end;
42+
img.branding {
43+
margin-right: unset;
44+
}
45+
}
46+
}
47+
}
48+
49+
.marginBox [data-book="credits-page-branding-bottom-html"] {
50+
margin: 0 -@BottomLogoMarginOffset; // enlarge bottom logo to fill the space better
51+
margin-top: auto;
52+
}
53+
54+
// NOTE. The existence of this selector tells XMatterHelper that we can handle device layout, so don't revert to a specialized one.
55+
.Device16x9Portrait,
56+
.Device16x9Landscape {
57+
&.credits {
58+
.marginBox {
59+
left: 10px !important;
60+
height: calc(100% - 8mm) !important;
61+
.credits-page-branding-top-block {
62+
padding-top: unset;
63+
font-size: 8pt; // otherwise we'll never fit in all the text.
64+
img {
65+
max-width: 100%;
66+
}
67+
.credits-page-branding-top-logo-left {
68+
margin-left: unset;
69+
}
70+
.credits-page-branding-top-logo-right {
71+
margin-right: unset;
72+
}
73+
}
74+
.licenseDescription,
75+
.licenseNotes {
76+
font-size: 8pt; // otherwise we'll never fit in all the text.
77+
}
78+
[data-book="credits-page-branding-bottom-html"] {
79+
margin: unset;
80+
}
81+
}
82+
}
83+
}
84+
85+
.Device16x9Landscape {
86+
&.credits {
87+
.marginBox {
88+
.copyright,
89+
.licenseBlock {
90+
margin-bottom: 0; // Device landscape is especially limited in vertical space.
91+
}
92+
}
93+
}
94+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"presets": [
3+
{
4+
"data-book": "copyright",
5+
"lang": "*",
6+
"content": "Ministerio de Educación de Guatemala y USAID",
7+
"condition": "ifEmpty"
8+
},
9+
{
10+
"data-book": "credits-page-branding-top-html",
11+
"lang": "*",
12+
"content": "<div class='credits-page-branding-top-block'><div class='credits-page-branding-top-logo-block'><div class='credits-page-branding-top-logo-left'><img class='branding' src='LOGO_MINEDUC_2023.svg'/></div><div class='credits-page-branding-top-logo-right'><img class='branding' src='USAID_Horiz_Spanish.svg'/></div></div><div class='credits-page-branding-top-text-block' lang='en'><p>Este libro fue posible gracias al generoso apoyo del pueblo de los Estados Unidos, a través de la Agencia de los Estados Unidos para el Desarrollo Internacional (USAID). El contenido de este documento es responsabilidad de los autores y no necesariamente refleja el punto de vista de USAID o del gobierno de los Estados Unidos.</p><p>La producción de este libro fue realizada bajo el programa Educación Básica de Calidad para la Transición, de RTI International y USAID.</p></div></div>",
13+
"condition": "always"
14+
},
15+
{
16+
"data-book": "credits-page-branding-bottom-html",
17+
"lang": "*",
18+
"content": "<img class='branding' src='Logos-Consorcio-BEQT-Without-USAID.svg'/>",
19+
"condition": "always"
20+
},
21+
{
22+
"data-book": "licenseUrl",
23+
"lang": "*",
24+
"content": "http://creativecommons.org/licenses/by-nc-sa/4.0/",
25+
"condition": "always"
26+
},
27+
{
28+
"data-book": "outside-back-cover-branding-bottom-html",
29+
"lang": "*",
30+
"content": "<img class='branding' src='made-with-bloom-badge.svg'/>",
31+
"condition": "always"
32+
}
33+
]
34+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import "../branding-base.less";
2+
@import "./branding-common.less";
3+
4+
.credits-page-branding-top-logo-right img.branding {
5+
height: 70%; // otherwise USAID logo is bigger than the Government of Guatemala logo
6+
}

0 commit comments

Comments
 (0)