Refine DTF typography and add system-based light/dark styling #2

Merged
daniel.subiabre merged 4 commits from fix/frontend-theme-typography into feat/dtf-web 2026-10-28 13:41:27 +00:00
39 changed files with 891 additions and 180 deletions
+8 -10
View File
@@ -131,7 +131,7 @@ export default defineConfig({
*/
"img-src 'self' data: blob: https:",
"media-src 'self' data: blob: https:",
// Karla is self-hosted through the fonts API — nothing else is needed.
// Fonts are self-hosted through the fonts API — nothing else is needed.
"font-src 'self'",
/**
* The tight one, and the reason for the whole exercise: this is what data
@@ -177,21 +177,19 @@ export default defineConfig({
},
/**
* Karla is downloaded from Google at build time and served from our own origin, so no
* Fonts are downloaded from Google at build time and served from our own origin, so no
* request reaches a third party while a visitor reads a page.
*
* Karla is a variable font: the whole `200 800` range travels in a single file, which is
* why asking for every weight the interface uses costs no extra request. The previous
* `@fontsource/karla` import only shipped weight 400, so the ~360 `font-bold`,
* `font-medium` and `font-semibold` usages were being faked by the browser.
* Atkinson Hyperlegible Next is variable, so interface emphasis can use a true 600 weight.
* Load the full range in upright and italic styles.
*
* `latin-ext` is not optional here: Catalan needs U+0140 (`ŀ`) for the geminate `l·l`.
*/
fonts: [
{
provider: fontProviders.google(),
name: "Karla",
cssVariable: "--font-karla",
name: "Atkinson Hyperlegible Next",
cssVariable: "--font-atkinson-hyperlegible",
weights: ["200 800"],
styles: ["normal", "italic"],
subsets: ["latin", "latin-ext"],
@@ -200,8 +198,8 @@ export default defineConfig({
provider: fontProviders.google(),
name: "Boldonse",
cssVariable: "--font-boldonse",
weights: ["200 800"],
styles: ["normal", "italic"],
weights: [400],
styles: ["normal"],
subsets: ["latin", "latin-ext"],
},
],
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 73 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 163 KiB

+60
View File
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.1"
id="svg1"
width="170"
height="58"
viewBox="0 0 170 58"
sodipodi:docname="eCommons.svg"
xml:space="preserve"
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:serif="http://www.serif.com/"><defs
id="defs1" /><sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="2.0205882"
inkscape:cx="74.483263"
inkscape:cy="86.360992"
inkscape:window-width="1374"
inkscape:window-height="831"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g1" /><g
inkscape:groupmode="layer"
inkscape:label="Image"
id="g1"><text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:21.0258px;font-family:Sans;-inkscape-font-specification:Sans;text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#ffffff;stroke-width:1.75215"
x="53.296333"
y="35.925053"
id="text2"><tspan
sodipodi:role="line"
id="tspan2"
x="53.296333"
y="35.925053"
style="fill:#000000;stroke-width:1.75215">eCommons</tspan></text><g
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5"
id="g2"
transform="matrix(0.08310294,0,0,0.08310294,3.2792928,2.166006)"><g
id="g1-5"><path
id="C-version-rounded-edges"
serif:id="C version rounded edges"
d="m 443.83,369.168 159.462,79.731 C 553.094,557.222 443.369,632.433 316.217,632.433 141.692,632.433 0,490.741 0,316.216 0,141.691 141.692,-0.001 316.217,-0.001 c 127.153,0 236.877,75.211 287.075,183.534 l -159.537,79.769 c -20.816,-50.023 -70.181,-85.23 -127.705,-85.23 -76.304,0 -138.253,61.949 -138.253,138.253 0,76.304 61.949,138.253 138.253,138.253 57.593,0 107.008,-35.292 127.78,-85.411 z m 17.361,58.992 c -33.519,43.43 -86.088,71.42 -145.14,71.42 -101.14,0 -183.253,-82.113 -183.253,-183.253 0,-101.14 82.113,-183.253 183.253,-183.253 58.981,0 111.494,27.922 145.019,71.262 l 79.869,-39.934 C 492.152,92.382 409.677,45.002 316.218,45.002 166.529,45.002 45.001,166.53 45.001,316.219 c 0,149.689 121.528,271.217 271.217,271.217 93.459,0 175.934,-47.38 224.721,-119.4 l -79.747,-39.874 z" /><g
id="e-motion-1"
serif:id="e-motion 1"><path
d="M 564.967,177.536 172.986,377.989"
style="fill:none;stroke:#000000;stroke-width:45px"
id="path1" /></g></g></g></g></svg>

After

Width:  |  Height:  |  Size: 3.0 KiB

+162
View File
@@ -0,0 +1,162 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="svg4866"
viewBox="0 0 228.57361 45.902503"
height="12.954706mm"
width="64.508553mm"
inkscape:version="0.91 r13725"
sodipodi:docname="FKI_Logo18_TranspBkgr.svg">
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1280"
inkscape:window-height="653"
id="namedview15"
showgrid="false"
inkscape:zoom="1.2468631"
inkscape:cx="17.644279"
inkscape:cy="22.951251"
inkscape:window-x="0"
inkscape:window-y="21"
inkscape:window-maximized="1"
inkscape:current-layer="svg4866" />
<defs
id="defs4868" />
<metadata
id="metadata4871">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(-150.70028,-465.37214)"
id="layer1">
<g
transform="translate(128.69674,346.22326)"
style="font-style:normal;font-weight:normal;font-size:39.35404587px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#009245;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="flowRoot4472-8">
<path
d="m 70.266322,143.6056 -1.51513,0 c -1.928349,0 -2.754783,1.188 -2.754783,3.06469 l 0,2.13496 -1.136348,0 0,1.61843 1.136348,0 0,6.09496 1.928348,0 0,-6.09496 1.342956,0 0,-1.61843 -1.342956,0 0,-2.25548 c 0.03443,-0.67148 0.189391,-1.13635 0.809217,-1.13635 l 1.532348,0 0,-1.80782 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666"
id="path4144" />
<path
d="m 76.02375,150.80247 0.637043,-1.63566 c -0.447652,-0.396 -1.101913,-0.53374 -1.325739,-0.53374 -1.050261,0 -1.738957,0.396 -2.186609,1.25687 l 0,-1.08469 -1.876696,0 0,7.71339 1.876696,0 0,-3.97722 c 0.03444,-1.25687 0.619826,-2.01443 1.807826,-2.01443 0.309913,0 0.757566,0.12052 1.067479,0.27548 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666"
id="path4146" />
<path
d="m 81.351818,148.63307 c -2.289913,0 -4.02887,1.79061 -4.02887,4.06331 0,2.25548 1.825044,4.01165 4.114957,4.01165 1.463478,-0.0172 2.789218,-0.61982 3.529566,-1.70452 l -1.222435,-1.01583 c -0.568174,0.63705 -1.291305,1.01583 -2.221044,1.01583 l -0.06887,0 c -1.188,0 -2.152174,-0.94696 -2.152174,-2.01444 l 5.836697,0 0,-0.70591 c 0,-2.25548 -1.515131,-3.65009 -3.70174,-3.65009 l -0.08609,0 z m 1.842261,2.87531 -3.718957,0 c 0.137739,-0.46487 1.015826,-1.11913 1.893913,-1.11913 0.878087,0 1.65287,0.29269 1.825044,1.11913 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666"
id="path4148" />
<path
d="m 90.894382,148.63307 c -2.289913,0 -4.02887,1.79061 -4.02887,4.06331 0,2.25548 1.825044,4.01165 4.114957,4.01165 1.463479,-0.0172 2.789218,-0.61982 3.529566,-1.70452 L 93.2876,153.98768 c -0.568174,0.63705 -1.291304,1.01583 -2.221044,1.01583 l -0.06887,0 c -1.188,0 -2.152174,-0.94696 -2.152174,-2.01444 l 5.836696,0 0,-0.70591 c 0,-2.25548 -1.515131,-3.65009 -3.70174,-3.65009 l -0.08609,0 z m 1.842262,2.87531 -3.718958,0 c 0.13774,-0.46487 1.015827,-1.11913 1.893914,-1.11913 0.878087,0 1.65287,0.29269 1.825044,1.11913 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666"
id="path4150" />
<path
d="m 96.872944,143.6056 0,12.91304 1.876696,0 0,-3.44348 3.40904,3.44348 2.28992,0 -4.18383,-4.20104 4.01165,-3.51235 -2.25547,0 -3.27131,2.80643 0,-8.00608 -1.876696,0 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4152" />
<path
d="m 113.25808,152.00768 c 0,-2.23826 -1.0847,-3.37461 -3.08192,-3.37461 -0.92974,0 -1.60121,0.41322 -2.13495,1.25687 l 0,-1.05026 -1.92835,0 0,7.67896 1.92835,0 0,-4.23548 c 0.0344,-1.06748 0.68869,-1.75617 1.85947,-1.75617 0.84366,0.0172 1.23966,0.53374 1.23966,1.51513 l 0,4.47652 2.11774,0 0,-4.51096 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4154" />
<path
d="m 119.47445,148.63307 c -2.28991,0 -4.14939,1.79061 -4.14939,4.06331 0,2.25548 1.85948,4.01165 4.14939,4.01165 2.2727,0 4.09774,-1.75617 4.09774,-4.02887 0,-2.27269 -1.82504,-4.04609 -4.09774,-4.04609 z m 0.0172,1.75618 c 1.10192,0 1.99722,1.08469 1.99722,2.30713 0,1.23965 -0.8953,2.25548 -1.99722,2.25548 -1.11913,0 -2.01443,-1.01583 -2.01443,-2.25548 0,-1.22244 0.8953,-2.30713 2.01443,-2.30713 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4156" />
<path
d="m 132.49655,156.69081 3.85669,-7.88556 -2.01443,0 -1.96279,4.08052 -2.06608,-4.08052 -1.99722,4.08052 -1.96278,-4.08052 -1.99722,0 3.85669,7.88556 0.20661,0 1.89392,-4.28713 1.96278,4.28713 0.22383,0 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4158" />
<path
d="m 138.06969,143.6056 0,12.91304 1.92835,0 0,-12.91304 -1.92835,0 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4160" />
<path
d="m 146.19936,148.63307 c -2.28992,0 -4.02887,1.79061 -4.02887,4.06331 0,2.25548 1.82504,4.01165 4.11495,4.01165 1.46348,-0.0172 2.78922,-0.61982 3.52957,-1.70452 l -1.22243,-1.01583 c -0.56818,0.63705 -1.29131,1.01583 -2.22105,1.01583 l -0.0689,0 c -1.188,0 -2.15217,-0.94696 -2.15217,-2.01444 l 5.83669,0 0,-0.70591 c 0,-2.25548 -1.51513,-3.65009 -3.70174,-3.65009 l -0.0861,0 z m 1.84226,2.87531 -3.71896,0 c 0.13774,-0.46487 1.01583,-1.11913 1.89392,-1.11913 0.87808,0 1.65287,0.29269 1.82504,1.11913 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4162" />
<path
d="m 157.56696,149.85551 c -0.44765,-0.91252 -1.17078,-1.22244 -2.11774,-1.22244 l -0.0344,0 c -1.91113,0 -3.58121,1.41183 -3.59843,3.82227 0.0172,2.73756 1.49791,4.25269 3.63287,4.25269 0.99861,0 1.6873,-0.43043 2.11774,-1.25687 l 0,1.06748 1.89391,0 0,-12.91304 -1.89391,0 0,6.24991 z m -3.4607,2.59983 c 0,-1.32574 0.63705,-1.92835 1.61844,-1.92835 1.15356,0 1.84226,0.67148 1.84226,2.0833 0,1.39461 -0.6887,2.25548 -1.84226,2.25548 l -0.0517,0 c -1.10192,0 -1.56679,-1.03304 -1.56679,-2.41043 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4164" />
<path
d="m 167.35891,152.74803 c 0,1.37739 -0.65426,2.11774 -1.77339,2.11774 -1.03304,0 -1.584,-0.77478 -1.584,-2.15217 0,-1.37739 0.58539,-2.18661 1.584,-2.18661 1.13635,0 1.77339,0.87808 1.77339,2.22104 z m 2.03165,3.71896 0,-7.66174 -2.03165,0 0,1.10191 c -0.44765,-0.87809 -1.10191,-1.27409 -2.04887,-1.27409 -2.16939,0 -3.59843,1.65287 -3.59843,4.08053 0,2.35878 1.48069,3.99443 3.59843,3.99443 0.94696,0 1.63565,-0.41322 2.04887,-1.11913 l 0,1.01583 c 0,1.27408 -0.74035,1.87669 -2.06609,1.87669 -0.77478,0 -1.41182,-0.36156 -1.7906,-0.8953 l -1.44627,1.20522 c 0.75757,1.17078 2.30714,1.60121 3.40905,1.60121 2.54817,-0.0344 3.92556,-1.30852 3.92556,-3.92556 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4166" />
<path
d="m 175.60048,148.63307 c -2.28991,0 -4.02887,1.79061 -4.02887,4.06331 0,2.25548 1.82504,4.01165 4.11496,4.01165 1.46348,-0.0172 2.78922,-0.61982 3.52956,-1.70452 l -1.22243,-1.01583 c -0.56818,0.63705 -1.29131,1.01583 -2.22105,1.01583 l -0.0689,0 c -1.188,0 -2.15218,-0.94696 -2.15218,-2.01444 l 5.8367,0 0,-0.70591 c 0,-2.25548 -1.51513,-3.65009 -3.70174,-3.65009 l -0.0861,0 z m 1.84226,2.87531 -3.71895,0 c 0.13773,-0.46487 1.01582,-1.11913 1.89391,-1.11913 0.87809,0 1.65287,0.29269 1.82504,1.11913 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.21739388px;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#009245;fill-opacity:1"
id="path4168" />
<path
d="m 181.57904,148.80525 0,7.71339 1.91114,0 0,-7.71339 -1.91114,0 z m 0.96418,-4.08052 c -0.6887,0 -1.22244,0.51652 -1.22244,1.188 0,0.67147 0.53374,1.188 1.22244,1.188 0.68869,0 1.22243,-0.51653 1.22243,-1.188 0,-0.67148 -0.53374,-1.188 -1.22243,-1.188 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4170" />
<path
d="m 193.2563,152.00768 c 0,-2.23826 -1.0847,-3.37461 -3.08191,-3.37461 -0.92974,0 -1.60122,0.41322 -2.13496,1.25687 l 0,-1.05026 -1.92835,0 0,7.67896 1.92835,0 0,-4.23548 c 0.0344,-1.06748 0.68869,-1.75617 1.85948,-1.75617 0.84365,0.0172 1.23965,0.53374 1.23965,1.51513 l 0,4.47652 2.11774,0 0,-4.51096 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4172" />
<path
d="m 201.40103,150.28594 c -0.60261,-0.96417 -1.56678,-1.65287 -2.72035,-1.65287 l -0.0861,0 c -1.84226,0 -2.94417,1.06748 -2.94417,2.376 0,1.34296 1.13635,1.99722 2.23826,2.23827 0.77478,0.17217 1.82504,0.48208 1.82504,1.03304 l 0,0.0172 c 0,0.43043 -0.61982,0.65426 -1.32573,0.65426 -0.5854,0 -1.06748,-0.27548 -1.53235,-0.98139 l -1.46348,1.17078 c 0.87809,1.2913 2.0833,1.60122 2.99583,1.60122 1.60121,0 3.13356,-0.89531 3.18521,-2.44487 -0.0172,-1.30853 -0.94695,-2.04887 -2.11774,-2.34157 -0.68869,-0.15496 -1.89391,-0.46487 -1.91113,-0.96417 0,-0.55096 0.396,-0.77479 1.03305,-0.792 0.65426,0 1.27408,0.70591 1.51513,1.03304 l 1.30852,-0.94696 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4174" />
<path
d="m 206.14182,145.75777 -1.85948,0 0,3.04748 -0.98139,0 0,1.60122 0.98139,0 0,6.11217 1.85948,0 0,-6.11217 0.96417,0 0,-1.60122 -0.96417,0 0,-3.04748 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4176" />
<path
d="m 209.22383,148.80525 0,7.71339 1.91113,0 0,-7.71339 -1.91113,0 z m 0.96417,-4.08052 c -0.68869,0 -1.22243,0.51652 -1.22243,1.188 0,0.67147 0.53374,1.188 1.22243,1.188 0.6887,0 1.22244,-0.51653 1.22244,-1.188 0,-0.67148 -0.53374,-1.188 -1.22244,-1.188 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4178" />
<path
d="m 216.0802,145.75777 -1.85947,0 0,3.04748 -0.9814,0 0,1.60122 0.9814,0 0,6.11217 1.85947,0 0,-6.11217 0.96418,0 0,-1.60122 -0.96418,0 0,-3.04748 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4180" />
<path
d="m 219.05891,153.35064 c 0,2.23826 1.63565,3.35739 3.61565,3.35739 l 0.0861,0 c 2.0833,0 3.46069,-1.27409 3.46069,-3.35739 l 0,-4.54539 -2.10052,0 0,4.26991 c -0.0172,1.23965 -0.43043,1.79061 -1.44626,1.79061 -0.8953,0 -1.54956,-0.58539 -1.54956,-1.56678 l 0,-4.49374 -2.06609,0 0,4.54539 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4182" />
<path
d="m 231.09638,145.75777 -1.85948,0 0,3.04748 -0.98139,0 0,1.60122 0.98139,0 0,6.11217 1.85948,0 0,-6.11217 0.96417,0 0,-1.60122 -0.96417,0 0,-3.04748 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4184" />
<path
d="m 237.54062,148.63307 c -2.28991,0 -4.02887,1.79061 -4.02887,4.06331 0,2.25548 1.82504,4.01165 4.11496,4.01165 1.46348,-0.0172 2.78922,-0.61982 3.52956,-1.70452 l -1.22243,-1.01583 c -0.56818,0.63705 -1.29131,1.01583 -2.22105,1.01583 l -0.0689,0 c -1.18801,0 -2.15218,-0.94696 -2.15218,-2.01444 l 5.8367,0 0,-0.70591 c 0,-2.25548 -1.51513,-3.65009 -3.70174,-3.65009 l -0.0861,0 z m 1.84226,2.87531 -3.71896,0 c 0.13774,-0.46487 1.01583,-1.11913 1.89392,-1.11913 0.87809,0 1.65287,0.29269 1.82504,1.11913 z"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'Universalis ADF Std';-inkscape-font-specification:'Universalis ADF Std Bold';letter-spacing:0.26131234px;fill:#666666;fill-opacity:1"
id="path4186" />
</g>
<g
transform="translate(110.9422,-16.855578)"
id="g4522">
<path
id="path4484-9"
d="m 62.920803,490.8298 a 14.922076,14.922076 0 0 0 -0.216893,0.0106 l 0,5.84398 a 9.0742365,9.0742365 0 0 1 0.216893,-0.008 9.0742365,9.0742365 0 0 1 9.074614,9.07463 9.0742365,9.0742365 0 0 1 -9.074614,9.07461 9.0742365,9.0742365 0 0 1 -9.074614,-9.07461 9.0742365,9.0742365 0 0 1 0.0015,-0.0303 l -5.847006,0 a 14.922076,14.922076 0 0 0 -0.0015,0.0303 14.922076,14.922076 0 0 0 14.921622,14.92206 14.922076,14.922076 0 0 0 14.923134,-14.92165 14.922076,14.922076 0 0 0 -14.923136,-14.9216 z"
style="opacity:1;fill:#666666;fill-opacity:1;stroke:none;stroke-width:3.29999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<circle
style="opacity:1;fill:#009245;fill-opacity:1;stroke:none;stroke-width:3.29999995;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="circle4488-60"
cx="54.405663"
cy="496.78735"
r="4.2579489" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

@@ -255,7 +255,7 @@
<span
class={`flex size-7 shrink-0 items-center justify-center rounded-full text-xs font-bold transition-colors ${
done
? "bg-primary text-white"
? "bg-primary text-on-primary"
: active
? "bg-secondary text-white"
: "bg-grey text-secondary"
@@ -32,14 +32,18 @@
{src}
{alt}
loading="lazy"
class={twMerge("w-auto transition-opacity hover:opacity-90", sizeStyles[size], customClass)}
class={twMerge(
"w-auto max-w-full object-contain transition-opacity hover:opacity-75",
sizeStyles[size],
customClass,
)}
/>
{/snippet}
{#if href}
<a
{href}
class="focus:ring-purple-soft focus:ring-offset-purple-soft rounded-lg focus:ring-2 focus:ring-offset-2 focus:outline-none"
class="focus:ring-purple-soft focus:ring-offset-purple-soft block min-w-0 rounded-lg focus:ring-2 focus:ring-offset-2 focus:outline-none"
aria-label={hrefAriaLabel}
target={external ? "_blank" : undefined}
rel={external ? "noopener noreferrer" : undefined}
+2 -1
View File
@@ -17,7 +17,8 @@
size="md"
kind="ghost"
onclick={openSearch}
class="inset-0 border-none pl-0 inset-ring-0"
aria-label={$t("common.header.search")}
class="size-10 border-none p-1 inset-ring-0"
>
<SearchIcon width="32" height="32" class="text-content" />
</Button>
+5 -7
View File
@@ -21,16 +21,14 @@
class={[
"grid-cols-1 items-center gap-12",
hasMedia ? "lg:grid-cols-2" : "lg:grid-cols-3",
]}
].join(" ")}
>
<!-- Hero Content -->
<div class={["space-y-8", !hasMedia && "lg:col-span-2"]}>
<h1
class="text-primary text-4xl leading-tight font-bold lg:text-5xl xl:text-6xl"
>
<h1 class="display-heading text-content text-3xl sm:text-4xl xl:text-5xl">
{hero.title}
</h1>
<div class="marked-content space-y-1 text-lg leading-relaxed text-neutral-500">
<div class="marked-content text-content space-y-1 text-lg leading-relaxed">
{@html content}
</div>
@@ -39,7 +37,7 @@
{#if hero.primaryCtaText && hero.primaryCtaLink}
<a
href={hero.primaryCtaLink}
class="text-primary bg-purple-soft inline-block rounded-full border-0 px-8 py-4 text-center font-semibold whitespace-nowrap transition-all duration-200 hover:opacity-90"
class="text-on-primary bg-primary hover:bg-primary-hover inline-block rounded-full border-0 px-8 py-4 text-center font-semibold whitespace-nowrap transition-all duration-200 hover:opacity-90"
>
{hero.primaryCtaText}
</a>
@@ -47,7 +45,7 @@
{#if hero.secondaryCtaText && hero.secondaryCtaLink}
<a
href={hero.secondaryCtaLink}
class="text-content inline-block rounded-full border-0 px-8 py-4 text-center font-semibold whitespace-nowrap transition-all duration-200 hover:opacity-90"
class="text-content hover:bg-content/10 inline-block rounded-full border-0 px-8 py-4 text-center font-semibold whitespace-nowrap transition-all duration-200 hover:opacity-90"
>
{hero.secondaryCtaText}
</a>
+1 -1
View File
@@ -19,7 +19,7 @@ const cover = post.headerMedia.find((media) => media.type.startsWith("image/"));
<div class="flex flex-col gap-6 p-10 lg:min-h-0 lg:flex-1">
<!-- Main Content -->
<div class="flex flex-col gap-2">
<h2 class="text-primary text-4xl leading-12 font-bold">
<h2 class="text-content text-3xl leading-snug font-bold">
{post.title}
</h2>
{post.subtitle && <p class="text-content text-base leading-6">{post.subtitle}</p>}
+5 -5
View File
@@ -109,19 +109,19 @@ Converted from CampaignCard.astro to maintain exact functionality
<div
class={twMerge(
"border-grey bg-purple-soft grow basis-0 rounded-xl border-2 shadow-[0px_1px_3px_0px_rgba(0,0,0,0.1)]",
"border-grey bg-purple-soft grow basis-0 overflow-hidden rounded-xl border-2 shadow-[0px_1px_3px_0px_rgba(0,0,0,0.1)]",
sizeClasses,
className,
)}
data-testid="campaign-card"
>
<a href="/project/{campaign.slug}">
<div class="flex flex-col gap-6">
<div class="flex flex-col">
<div class="relative">
<img
src={campaign.image}
alt={campaign.title}
class="h-80 w-full rounded-t-xl object-cover md:h-97.25"
class="h-80 w-full object-cover md:h-97.25"
/>
<div class="absolute top-4 left-4 flex flex-wrap gap-2">
@@ -134,7 +134,7 @@ Converted from CampaignCard.astro to maintain exact functionality
<span>{$t("pages.home.campaigns.finished")}</span>
</Tag>
{:else if daysRemaining !== undefined}
<Tag variant="bold">
<Tag variant="bold" class="rounded-full px-3">
<Clock width={16} height={16} />
<span>
{$t("pages.home.campaigns.daysRemaining", { days: daysRemaining })}
@@ -165,7 +165,7 @@ Converted from CampaignCard.astro to maintain exact functionality
<Title
level={3}
variant="subsection"
class="text-primary line-clamp-2 h-16 leading-8"
class="text-content line-clamp-2 h-16 leading-8"
>
{campaign.title}
</Title>
+11 -8
View File
@@ -78,14 +78,17 @@ const campaigns = await Promise.all(
</h2>
<!-- "View All" Button -->
<a href="/search" aria-label={t("pages.home.campaigns.viewAll")}>
<Button kind="ghost" size="md">
<Arrow />
<span class="text-secondary text-base font-bold">
{t("pages.home.campaigns.viewAll")}
</span>
</Button>
</a>
<Button
href="/search"
aria-label={t("pages.home.campaigns.viewAll")}
kind="ghost"
size="md"
>
<Arrow />
<span class="text-secondary text-base font-bold">
{t("pages.home.campaigns.viewAll")}
</span>
</Button>
</div>
<!-- Campaigns Grid: 3 columns max, 2 rows, large cards take 2 columns -->
+9 -7
View File
@@ -44,7 +44,7 @@ const calls: CallCard[] = [
];
---
<section class="bg-secondary w-full text-white">
<section class="bg-inverse text-on-inverse w-full">
<div class="wrapper relative !my-[-32px]">
<!-- Two top info panels -->
<div class="flex flex-col gap-6">
@@ -54,10 +54,10 @@ const calls: CallCard[] = [
class="backdrop-blur-md/0 flex flex-col gap-10 rounded-2xl bg-[rgba(143,124,146,0.4)] p-10"
>
<div class="text-purple flex flex-col gap-4 text-balance">
<h2 class="text-purple text-4xl font-bold">
<h2 class="display-heading text-4xl">
{t("pages.home.matchfunding.title")}
</h2>
<p class="text-base leading-6 text-white">
<p class="text-on-inverse text-base leading-6">
{t("pages.home.matchfunding.description")}
</p>
</div>
@@ -87,13 +87,15 @@ const calls: CallCard[] = [
style={`background-image:url(${card.background});`}
>
<div class="relative z-10 flex flex-col gap-10 p-10">
<div class="flex w-1/2 flex-col gap-4">
<h4 class="text-3xl font-bold">{card.title}</h4>
<div class="flex w-full flex-col gap-4 lg:w-2/3">
<h4 class="text-2xl font-bold">{card.title}</h4>
<p>{card.description}</p>
<div class="flex gap-6">
{card.stats.map((s) => (
<div class="flex flex-col">
<span class="text-sm text-white">{s.label}</span>
<span class="text-on-inverse text-sm">
{s.label}
</span>
<span class="text-2xl font-bold">{s.value}</span>
</div>
))}
@@ -103,7 +105,7 @@ const calls: CallCard[] = [
<div class="border-xl absolute top-6 right-6 z-20 rounded bg-white px-2 py-1 text-xs font-medium">
<img class="h-12" src={card.tag} />
</div>
<div class="pointer-events-none absolute inset-0 z-0 bg-gradient-to-r from-black/70 to-black/30" />
<div class="from-inverse/90 to-inverse/50 pointer-events-none absolute inset-0 z-0 bg-gradient-to-r" />
</div>
))
}
+2 -6
View File
@@ -14,9 +14,7 @@ const { t } = Astro.locals;
<div class="flex flex-col gap-6">
<!-- Header -->
<div class="flex flex-col gap-2">
<h2
class="text-content text-2xl leading-tight font-bold md:text-4xl md:leading-12"
>
<h2 class="display-heading text-content text-2xl md:text-4xl">
{t("pages.home.stats.theoryToAction.title")}
</h2>
<p class="text-content text-sm leading-5 md:text-base md:leading-6">
@@ -73,9 +71,7 @@ const { t } = Astro.locals;
<div class="flex flex-col gap-6">
<!-- Header -->
<div class="flex flex-col gap-2">
<h2
class="text-content text-2xl leading-tight font-bold md:text-4xl md:leading-12"
>
<h2 class="display-heading text-content text-2xl md:text-4xl">
{t("pages.home.stats.whyGoteo.title")}
</h2>
<p class="text-content text-sm leading-5 md:text-base md:leading-6">
@@ -18,40 +18,21 @@
}: Props = $props();
</script>
{#if close === false}
<!-- Menu -->
<svg
{width}
{height}
viewBox="0 0 40 40"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class={twMerge("text-secondary", classes)}
>
<rect width="40" height="40" rx="8" fill="currentColor" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M11 12C11 11.4477 11.3663 11 11.8182 11H28.1818C28.6337 11 29 11.4477 29 12C29 12.5523 28.6337 13 28.1818 13H11.8182C11.3663 13 11 12.5523 11 12ZM11 20C11 19.4477 11.3663 19 11.8182 19H28.1818C28.6337 19 29 19.4477 29 20C29 20.5523 28.6337 21 28.1818 21H11.8182C11.3663 21 11 20.5523 11 20ZM11 28C11 27.4477 11.3663 27 11.8182 27H28.1818C28.6337 27 29 27.4477 29 28C29 28.5523 28.6337 29 28.1818 29H11.8182C11.3663 29 11 28.5523 11 28Z"
class={twMerge("fill-primary", barClass)}
/>
</svg>
{:else if close === true}
<!-- Close -->
<svg
{width}
{height}
viewBox="0 0 40 40"
fill="none"
xmlns="http://www.w3.org/2000/svg"
class={twMerge("text-secondary", classes)}
>
<rect width="40" height="40" rx="8" fill="currentColor" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M12.7197 12.7197C13.0126 12.4268 13.4874 12.4268 13.7803 12.7197L20 18.9393L26.2197 12.7197C26.5126 12.4268 26.9874 12.4268 27.2803 12.7197C27.5732 13.0126 27.5732 13.4874 27.2803 13.7803L21.0607 20L27.2803 26.2197C27.5732 26.5126 27.5732 26.9874 27.2803 27.2803C26.9874 27.5732 26.5126 27.5732 26.2197 27.2803L20 21.0607L13.7803 27.2803C13.4874 27.5732 13.0126 27.5732 12.7197 27.2803C12.4268 26.9874 12.4268 26.5126 12.7197 26.2197L18.9393 20L12.7197 13.7803C12.4268 13.4874 12.4268 13.0126 12.7197 12.7197Z"
class={twMerge("fill-primary", barClass)}
/>
</svg>
{/if}
<svg
{width}
{height}
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.5"
stroke-linecap="round"
stroke-linejoin="round"
xmlns="http://www.w3.org/2000/svg"
class={twMerge("text-secondary", classes)}
>
{#if close}
<path d="m6 6 12 12M6 18 18 6" class={barClass} />
{:else}
<path d="M4 6h16M4 12h16M4 18h16" class={barClass} />
{/if}
</svg>
+7 -4
View File
@@ -10,10 +10,10 @@
};
const kindStyles = {
primary: "bg-primary",
secondary: "bg-variant1 text-content",
ghost: "inset-ring-1 inset-ring-secondary text-content",
invert: "text-content",
primary: "bg-primary text-on-primary enabled:hover:bg-primary-hover",
secondary: "bg-variant1 text-content enabled:hover:brightness-90",
ghost: "inset-ring-1 inset-ring-secondary text-content enabled:hover:bg-content/10",
invert: "text-content enabled:hover:bg-content/10",
};
interface Props extends Omit<HTMLButtonAttributes, "class"> {
@@ -44,6 +44,9 @@
sizeStyles[size],
kindStyles[kind],
href && "hover:underline",
href && kind === "primary" && "hover:bg-primary-hover",
href && kind === "secondary" && "hover:brightness-90",
href && (kind === "ghost" || kind === "invert") && "hover:bg-content/10",
classes,
),
);
@@ -254,7 +254,7 @@
<button
type="button"
onclick={apply}
class="bg-primary mt-6 h-14 w-full rounded-3xl text-lg font-bold text-white hover:cursor-pointer"
class="bg-primary text-on-primary mt-6 h-14 w-full rounded-3xl text-lg font-bold hover:cursor-pointer"
>
{$t("domain.dateInput.apply")}
</button>
+3 -1
View File
@@ -69,7 +69,9 @@
</div>
<button
class="bg-primary h-auto w-full cursor-pointer rounded-3xl px-6 py-4 font-bold text-white"
class="bg-primary h-auto w-full cursor-pointer rounded-3xl px-6 py-4 font-bold"
class:text-on-primary={!copied}
class:text-content={copied}
class:bg-primary={!copied}
class:bg-variant1={copied}
onclick={() => {
@@ -10,7 +10,7 @@
export type TitleAlign = "left" | "center" | "right";
export const SIZES: Record<TitleVariant, string> = {
display: "text-4xl leading-10 sm:text-5xl sm:leading-[3rem] md:text-[56px] md:leading-16",
display: "text-3xl sm:text-4xl md:text-5xl",
headline: "text-3xl leading-9 sm:text-4xl sm:leading-11 md:text-[40px] md:leading-12",
section: "text-2xl leading-8 sm:text-3xl sm:leading-10 md:text-double md:leading-10",
subsection: "text-xl leading-7 sm:text-2xl sm:leading-8",
@@ -18,9 +18,9 @@
};
const DEFAULT_WEIGHTS: Record<TitleVariant, TitleWeight> = {
display: "medium",
headline: "medium",
section: "medium",
display: "normal",
headline: "bold",
section: "bold",
subsection: "bold",
field: "bold",
};
@@ -71,6 +71,7 @@
align === "center" && "text-center",
align === "right" && "text-right",
classes,
variant === "display" && "display-heading",
),
);
+1 -1
View File
@@ -36,7 +36,7 @@ const defaultAvatar = "https://placehold.co/204x204/e6e5f7/462949?text=User&font
<!-- Subscribe Button -->
{
onSubscribe && (
<button class="bg-primary focus:ring-primary rounded-3xl px-6 py-4 font-bold text-white transition-opacity hover:opacity-90 focus:ring-2 focus:outline-none">
<button class="bg-primary text-on-primary focus:ring-primary rounded-3xl px-6 py-4 font-bold transition-opacity hover:opacity-90 focus:ring-2 focus:outline-none">
{t("pages.profile.subscribe")}
</button>
)
+1 -1
View File
@@ -140,7 +140,7 @@
}}
/>
</p>
<Title level={1} variant="section" class="text-content">
<Title level={1} variant="section" class="display-heading text-content">
{project.title}
</Title>
</div>
+5 -2
View File
@@ -61,7 +61,7 @@
class={twMerge(
"flex min-h-16 max-w-[80%] flex-col items-end justify-end rounded-tl-2xl rounded-tr-2xl border px-4 lg:max-w-[40%]",
isOwn
? "bg-primary border-primary rounded-br-none rounded-bl-2xl pt-4 pb-2 text-white"
? "bg-primary border-primary text-on-primary rounded-br-none rounded-bl-2xl pt-4 pb-2"
: "border-secondary text-content rounded-br-2xl rounded-bl-none bg-white py-2",
)}
>
@@ -76,7 +76,10 @@
</div>
<time
datetime={date.toISOString()}
class={twJoin("flex items-center gap-2 text-xs", isOwn ? "text-white" : "text-content")}
class={twJoin(
"flex items-center gap-2 text-xs",
isOwn ? "text-on-primary" : "text-content",
)}
>
<span>{formatTime(date, $locale)}</span>
<span>{formatDate(date, $locale)}</span>
+2 -2
View File
@@ -394,7 +394,7 @@
},
"footer": {
"funding": {
"title": "Finança:",
"title": "Entitats col·laboradores",
"partOf": "Som part de:"
},
"navigation": {
@@ -435,7 +435,7 @@
},
"a11y": {
"footerHeading": "Peu de pàgina",
"fundingPartners": "Organitzacions finançadores",
"fundingPartners": "Entitats col·laboradores",
"partnerOrganizations": "Organitzacions associades",
"footerNavigation": "Navegació del peu de pàgina",
"legalNavigation": "Navegació legal",
+2 -2
View File
@@ -394,7 +394,7 @@
},
"footer": {
"funding": {
"title": "Funded by:",
"title": "Partners",
"partOf": "We are part of:"
},
"navigation": {
@@ -435,7 +435,7 @@
},
"a11y": {
"footerHeading": "Footer",
"fundingPartners": "Funding organizations",
"fundingPartners": "Partner organizations",
"partnerOrganizations": "Partner organizations",
"footerNavigation": "Footer navigation",
"legalNavigation": "Legal navigation",
+2 -2
View File
@@ -396,7 +396,7 @@
},
"footer": {
"funding": {
"title": "Financia:",
"title": "Entidades colaboradoras",
"partOf": "Somos parte de:"
},
"navigation": {
@@ -437,7 +437,7 @@
},
"a11y": {
"footerHeading": "Pie de página",
"fundingPartners": "Organizaciones financiadoras",
"fundingPartners": "Entidades colaboradoras",
"partnerOrganizations": "Organizaciones asociadas",
"footerNavigation": "Navegación del pie de página",
"legalNavigation": "Navegación legal",
+17 -6
View File
@@ -21,7 +21,7 @@
>
{#if config.funding.length > 0}
<!-- Funding Partners -->
<div class="flex flex-col gap-4 md:flex-row md:items-center md:gap-6">
<div class="flex w-full flex-col gap-4 md:gap-6">
<Title
level={3}
variant="field"
@@ -31,13 +31,24 @@
{$t("common.footer.funding.title")}
</Title>
<div
class="flex items-center gap-4"
class="flex w-full items-center gap-4"
role="list"
aria-label={$t("common.footer.a11y.fundingPartners")}
>
<div class="flex flex-wrap items-center gap-3 sm:gap-4">
<div
class="grid w-full grid-cols-2 items-center gap-3 md:grid-cols-4"
>
{#each config.funding as partner (partner.src)}
<FooterPartnerImage src={partner.src} alt={partner.alt} />
<div
role="listitem"
class="flex h-20 min-w-0 items-center justify-center rounded-xl bg-[#ffffff] p-4"
>
<FooterPartnerImage
src={partner.src}
alt={partner.alt}
href={partner.href}
/>
</div>
{/each}
</div>
</div>
@@ -73,7 +84,7 @@
{/if}
<div
class="relative rounded-t-3xl bg-white bg-size-[116%_114%] bg-position-[-127%_42%] bg-no-repeat text-black min-[700px]:bg-size-[64%_108%] min-[700px]:bg-position-[114%]"
class="bg-inverse text-on-inverse relative rounded-t-3xl bg-size-[116%_114%] bg-position-[-127%_42%] bg-no-repeat min-[700px]:bg-size-[64%_108%] min-[700px]:bg-position-[114%]"
style="background-image: url('{config.brand.backgroundImage}');"
>
<!-- Main Footer Content -->
@@ -94,7 +105,7 @@
{#each config.navColumns as column (column.titleKey)}
<div class="space-y-2">
<Title level={4} variant="field" class="leading-6">
<Title level={4} variant="field" class="text-on-inverse leading-6">
{$t(column.titleKey)}
</Title>
<ul class="space-y-1 text-xs leading-5 sm:text-sm sm:leading-6">
+10 -10
View File
@@ -52,12 +52,11 @@
return () => observer.disconnect();
}}
>
<div
class="flex w-full items-center justify-between px-2 py-3 md:px-4 md:py-6"
id="header-main"
>
<div class="flex w-full items-center justify-between p-2 md:p-4" id="header-main">
<div class="flex items-center gap-2 md:gap-4">
<a href="/" class="shrink-0"><Logo class="w-40 sm:w-56" /></a>
<a href="/" class="shrink-0 rounded-lg transition-opacity hover:opacity-75"
><Logo class="w-40 sm:w-56" /></a
>
</div>
<nav>
<ul class="flex items-center gap-1 md:gap-4">
@@ -72,7 +71,7 @@
<button
onclick={userDropdownToggle}
use:clickOutside={userDropdownClose}
class="flex w-full cursor-pointer items-center gap-1"
class="hover:bg-grey/30 flex w-full cursor-pointer items-center gap-1 rounded-lg p-1 transition-colors"
>
{#if $session.user.avatar}
<img
@@ -121,7 +120,7 @@
type="button"
onclick={userDropdownToggle}
use:clickOutside={userDropdownClose}
class="flex w-full cursor-pointer items-center gap-1"
class="hover:bg-grey/30 flex w-full cursor-pointer items-center gap-1 rounded-lg p-1 transition-colors"
aria-haspopup="menu"
aria-expanded={userDropdownOpen}
>
@@ -163,15 +162,16 @@
</li>
<li class="flex items-center {children ? '' : 'lg:hidden'}">
<button
class="cursor-pointer"
class="text-content hover:bg-content/10 flex size-10 cursor-pointer items-center justify-center rounded-lg p-1 transition-colors"
onclick={menuToggle}
aria-label={$t("common.header.menu")}
aria-expanded={menuOpen}
>
<Hamburger
close={menuOpen}
class="text-primary"
barClass="fill-white"
width="32"
height="32"
class="text-content"
/>
</button>
</li>
+2 -2
View File
@@ -23,11 +23,11 @@ const preloadedFaces: FontPreloadFilter = [{ style: "normal", subset: "latin" }]
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml" />
<title>{title}</title>
<Font cssVariable="--font-karla" preload={preloadedFaces} />
<Font cssVariable="--font-atkinson-hyperlegible" preload={preloadedFaces} />
<Font cssVariable="--font-boldonse" preload={preloadedFaces} />
<Metatags {title} {description} {keywords} />
</head>
<body class="bg-white">
<body class="bg-page">
<slot />
<script is:inline>
/**
+32 -5
View File
@@ -5,11 +5,38 @@ import type { FooterConfig } from "../types/footer";
export const FOOTER_DATA: FooterConfig = {
funding: [
{ src: "/images/partners/PLATONIQ.png", alt: "Platoniq Foundation" },
{ src: "/images/partners/FKI.svg", alt: "Free Knowledge Institute" },
{ src: "/images/partners/COMMONSNETWORK.jpeg", alt: "Commons Network" },
{ src: "/images/partners/OPENTECH.png", alt: "OpenTech AUC" },
{ src: "/images/partners/NEWSMAST.svg", alt: "Newsmast Foundation" },
{
src: "/images/partners/fki.svg",
alt: "Free Knowledge Institute",
href: "https://freeknowledge.eu",
},
{
src: "/images/partners/commons_network.svg",
alt: "Commons Network",
href: "https://commonsnetwork.org",
},
{
src: "/images/partners/platoniq_goteo.png",
alt: "Goteo / Platoniq",
href: "https://www.goteo.org",
},
{ src: "/images/partners/waag.png", alt: "Waag Futurelab", href: "https://waag.org" },
{ src: "/images/partners/ecommons.svg", alt: "eCommons", href: "https://ecommons.space" },
{
src: "/images/partners/coopcloud.svg",
alt: "Co-op Cloud",
href: "https://coopcloud.tech",
},
{
src: "/images/partners/newsmast-foundation.svg",
alt: "Newsmast Foundation",
href: "https://newsmastfoundation.org",
},
{
src: "/images/partners/OPENTECH.png",
alt: "OpenTech (AUC)",
href: "https://opentech-auc.org",
},
],
partOf: [],
navColumns: [
+1 -1
View File
@@ -201,7 +201,7 @@ const pipeline = [
</p>
<a
href="/create/project"
class="bg-primary inline-flex items-center justify-center rounded-3xl px-8 py-4 font-bold text-white transition hover:opacity-90"
class="bg-primary text-on-primary inline-flex items-center justify-center rounded-3xl px-8 py-4 font-bold transition hover:opacity-90"
>
{t("pages.about.hero.cta")}
</a>
+1 -1
View File
@@ -48,7 +48,7 @@ const phases = [
<div class="flex justify-center">
<a
href="/create/project"
class="bg-primary inline-flex items-center justify-center rounded-3xl px-8 py-4 font-bold text-white transition hover:opacity-90"
class="bg-primary text-on-primary inline-flex items-center justify-center rounded-3xl px-8 py-4 font-bold transition hover:opacity-90"
>
{t("pages.about.hero.cta")}
</a>
@@ -46,7 +46,7 @@ const { accounting, paymentGateways, selectedGateway, postPaymentUrl } = Astro.p
<div class="flex flex-col items-end">
<a
href={postPaymentUrl}
class="bg-primary w-fit cursor-pointer rounded-3xl px-6 py-4 font-bold text-white"
class="bg-primary text-on-primary w-fit cursor-pointer rounded-3xl px-6 py-4 font-bold"
>
{t("common.continue")}
</a>
@@ -50,7 +50,7 @@ const { total, selectedGateway, donatedProjects, projectSupports, postPaymentUrl
<div class="flex flex-col items-end">
<a
href={postPaymentUrl}
class="bg-primary w-fit cursor-pointer rounded-3xl px-6 py-4 font-bold text-white"
class="bg-primary text-on-primary w-fit cursor-pointer rounded-3xl px-6 py-4 font-bold"
>
{t("common.continue")}
</a>
+1 -1
View File
@@ -42,7 +42,7 @@ const { t, lang, session } = Astro.locals;
</div>
<div class="flex flex-col items-end">
<a
class="bg-primary w-fit cursor-pointer rounded-3xl px-6 py-4 font-bold text-white"
class="bg-primary text-on-primary w-fit cursor-pointer rounded-3xl px-6 py-4 font-bold"
href="/checkout/login?callback=/checkout/payment"
>
{t("common.continue")}
+1 -1
View File
@@ -14,7 +14,7 @@ const initialFilters = parseSearchParamsFilters(new URL(Astro.request.url).searc
<section class="wrapper">
<!-- Page Header -->
<div class="mb-12 text-center">
<h1 class="text-secondary mb-4 text-4xl font-bold">
<h1 class="display-heading text-secondary mb-4 text-3xl md:text-4xl">
{t("pages.search.heading")}
</h1>
<p class="text-secondary text-lg">
+83 -46
View File
@@ -11,43 +11,53 @@
@source "../components/**/*.{astro,svelte}";
@source "../../node_modules/flowbite";
@source "../../node_modules/flowbite-svelte";
@custom-variant dark (&:where(.dark, .dark *));
@theme {
/* Light Theme (default) */
--color-primary: #fd7524;
--color-secondary: #fd7524;
--color-tertiary: #a66bff;
--color-content: #f2f2f7;
/* Democratic Tech Fund palette; legacy white/black utilities mean surface/ink. */
--color-primary: #cf2626;
--color-primary-hover: #a81f1f;
--color-secondary: #2c1212;
--color-tertiary: #cf2626;
/* Extended color tokens for components */
--color-white: #0f0f14;
--color-black: #ffffff;
--color-grey: #23262e;
--color-purple-soft: #171a22;
--color-purple-med: #211c36;
--color-content: #2c1212;
--color-page: #f3e7d0;
--color-on-primary: #ffffff;
--color-inverse: #2c1212;
--color-on-inverse: #f3e7d0;
/* Scrim tras diálogos y modales: gris cálido al 70% */
--color-overlay: #878282b2;
--color-white: #ffffff;
--color-black: #2c1212;
--color-grey: #d8cbbb;
--color-purple-soft: #ffffff;
--color-purple-med: #f3e7d0;
--color-variant1: #4a1e2b;
--color-variant2: #24d3a1;
--color-variant3: #2ee6f6;
--color-variant4: #ffc857;
--color-overlay: #2c1212b2;
--color-semantic-error: #ff6b6b;
--color-semantic-success: #24d3a1;
--color-semantic-notification: #183b46;
--color-semantic-warning: #ffc857;
--color-variant1: #ffd98a;
--color-variant2: #146f00;
--color-variant3: #f3e7d0;
--color-variant4: #ffd98a;
--color-semantic-error: #cf2626;
--color-semantic-success: #146f00;
--color-semantic-notification: #f3e7d0;
--color-semantic-warning: #ee7e2c;
/* Declared by the `<Font>` component in Layout.astro; already carries its own fallbacks. */
--font-body: var(--font-karla);
--font-title: var(--font-boldonse);
--font-weight-bold: 600;
--font-body: var(--font-atkinson-hyperlegible);
--font-title: var(--font-atkinson-hyperlegible);
--font-display: var(--font-boldonse);
--text-body-small: 0.875rem;
--text-double: 2rem;
}
@layer base {
b,
strong {
font-weight: var(--font-weight-bold);
}
/*
* flowbite-svelte's Modal scrolls its body, but its height cap is a typo (`max-h-[90hv]`),
* so the browser's default dialog scroll kicked in too and showed a second scrollbar.
@@ -56,31 +66,41 @@
max-height: 100vh;
overflow: hidden;
}
[data-theme="dark"] {
--color-primary: #3d3d3d;
--color-secondary: #94a3b8;
/* Dark theme variants for extended tokens */
--color-grey: #2a2a2a;
--color-variant1: #3a3551;
--color-white: #f8f9fa;
--color-purple-soft: #1a1730;
--color-purple-med: #22203a;
}
/* flowbite-svelte's Modal caps height with `max-h-[90hv]` (typo, no effect),
so the <dialog> scrolled on top of the modal body. */
dialog {
max-height: 100vh;
overflow: hidden;
}
}
:root {
color-scheme: light;
--sticky-top: calc(var(--header-height, 0px) + 1.5rem);
}
/* Follow the browser/system theme without JavaScript or saved overrides. */
@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;
--color-secondary: #f3e7d0;
--color-tertiary: #ee7e2c;
--color-content: #f3e7d0;
--color-page: #2c1212;
--color-white: #3b2321;
--color-black: #f3e7d0;
--color-grey: #654c44;
--color-purple-soft: #3b2321;
--color-purple-med: #482e28;
--color-variant1: #503529;
--color-variant2: #8bc777;
--color-variant3: #482e28;
--color-variant4: #ffd98a;
--color-semantic-error: #ff9595;
--color-semantic-success: #8bc777;
--color-semantic-notification: #482e28;
}
}
html {
min-height: 100%;
}
@@ -89,8 +109,8 @@ body {
font-family: var(--font-body);
font-style: normal;
font-weight: 400;
font-size: var(--body-regular);
line-height: 140%;
font-size: 1rem;
line-height: 1.6;
color: var(--color-content);
/* Safety net against horizontal scroll; `clip` keeps `position: sticky` working. */
overflow-x: clip;
@@ -110,8 +130,25 @@ body.grid {
h1,
h2,
h3 {
h3,
h4,
h5,
h6 {
font-family: var(--font-title);
font-weight: 600;
line-height: 1.3;
}
.display-heading {
font-family: var(--font-display);
font-weight: 400;
font-synthesis: none;
line-height: 1.5;
}
:focus-visible {
outline: 2px solid var(--color-tertiary);
outline-offset: 4px;
}
astro-island {