11import * as React from "react"
22import { StaticImage } from "gatsby-plugin-image"
33import styled from "styled-components"
4- import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
5- import { useMediaQuery } from "react-responsive"
64import { device } from "./util/styles/breakpoints"
75
86const FooterBar = styled . footer `
9- background-color: var(--navbar-background-color);
10- color: var(--main-background-color);
11- display: flex;
12- flex-direction: row;
13- justify-content: space-between;
14- align-items: center;
15- font-size: var(--font-size-16);
16- padding: calc(0.9 * var(--a-vsmall-space)) var(--site-margins);
17- font-weight: var(--font-weight-normal);
18- gap: calc(1.5 * var(--a-modest-space));
7+ background-color: var(--navbar-background-color);
8+ color: var(--footer-text-color);
9+ display: flex;
10+ flex-direction: row;
11+ justify-content: space-between;
12+ align-items: center;
13+ line-height: 1.5rem;
14+ font-size: var(--font-size-16);
15+ padding: 1rem var(--site-margins);
16+ font-weight: var(--font-weight-bold);
17+ gap: 2rem;
1918
20- // noinspection CssUnknownProperty
21- @media ${ device . sm } {
22- flex-direction: column-reverse;
23- }
24- `
25-
26- const Spacer = styled . div `
27- width: 6rem;
19+ // noinspection CssUnknownProperty
20+ @media ${ device . sm } {
21+ flex-direction: column-reverse;
22+ }
2823`
2924
3025const Logo = styled ( props => < a { ...props } /> ) `
31- background-color: var(--navbar-background-color);
32- display: flex;
33- flex-direction: row;
34- align-items: center;
35- justify-content: space-between;
36- font-weight: var(--font-weight-bold);
26+ background-color: var(--navbar-background-color);
27+ display: flex;
28+ flex-direction: row;
29+ align-items: center;
30+ justify-content: space-between;
3731`
32+
3833const SponsorInfo = styled . div `
39- background-color: var(--navbar-background-color);
40- color: var(--navbar-text-color);
41- display: flex;
42- flex-direction: row;
43- align-items: center;
44- justify-content: space-between;
45- font-size: var(--font-size-12);
46- font-weight: var(--font-weight-bold);
47- gap: calc(.8 * var(--a-small-space));
34+ display: flex;
35+ flex-direction: row;
36+ align-items: center;
37+ justify-content: space-between;
38+ text-wrap: nowrap;
39+ font-size: var(--font-size-12);
40+ gap: calc(.8 * var(--a-small-space));
4841
49- // noinspection CssUnknownProperty
50- @media ${ device . sm } {
51- flex-direction: column;
52- margin-top: 10px;
42+ // noinspection CssUnknownProperty
43+ @media ${ device . sm } {
44+ flex-direction: column;
45+ margin-top: 10px;
5346
54- }
47+ }
5548`
5649
5750const LegalText = styled ( props => < a { ...props } /> ) `
58- margin: 8px;
59- color: var(--navbar-text-color);
60- text-decoration: underline;
61-
51+ color: var(--footer-text-color);
52+ text-decoration: underline;
6253`
6354
6455const LicenseInfo = styled . div `
65- display: flex ;
66- flex-direction: row;
67- align-items: center;
68- font-size : var(--font-size-12 );
69- `
56+ font-size: 0.75rem ;
57+
58+ a {
59+ color : var(--footer-text-color );
60+ }
7061
71- const PaddedIcon = styled ( props => < FontAwesomeIcon { ... props } /> ) `
72- margin-left: 1px ;
73- margin-right: 1px ;
74- color: var(--navbar-text-color);
62+ @media screen and (max-width: 1024px) {
63+ justify-self: left ;
64+ padding: 1rem 0 ;
65+ }
7566`
7667
7768const Footer = ( ) => {
78- const isMobile = useMediaQuery ( { query : device . sm } )
7969
8070 return (
8171 < FooterBar className = "navigation" >
82- { isMobile || < Spacer /> }
72+ < Logo href = "https://www.commonhaus.org/" style = { { maxWidth : "350px" } } >
73+ < StaticImage
74+ className = "logo"
75+ placeholder = "none"
76+ backgroundColor = "black"
77+ layout = "constrained"
78+ formats = { [ "auto" , "webp" , "avif" ] }
79+ src = "../images/CF_logo_horizontal_single_reverse.svg"
80+ alt = "CommonHaus logo"
81+ minWidth = "350px"
82+ maxWidth = "100%"
83+ />
84+ </ Logo >
85+
8386 < LicenseInfo >
84- < PaddedIcon icon = { [ "fab" , "creative-commons" ] } />
85- < PaddedIcon icon = { [ "fab" , "creative-commons-by" ] } />
86- < LegalText href = "https://creativecommons.org/licenses/by/3.0/" >
87- CC by 3.0
88- </ LegalText >
89- < span > |</ span >
90- < LegalText href = "https://www.redhat.com/en/about/privacy-policy" > Privacy Policy</ LegalText >
87+ Copyright © Quarkus. All rights reserved. For details on our trademarks, please visit our < LegalText
88+ href = "https://www.commonhaus.org/policies/trademark-policy/" > Trademark Policy</ LegalText > and < LegalText
89+ href = "https://www.commonhaus.org/trademarks/" > Trademark List</ LegalText > . Trademarks of third parties are owned
90+ by their respective holders and their mention here does not suggest any endorsement or association.
9191 </ LicenseInfo >
92+
9293 < SponsorInfo >
9394 Sponsored by
94- < Logo href = "https://www.redhat.com/" >
95+ < Logo href = "https://www.redhat.com/" style = { { width : "6rem" } } >
9596 < StaticImage
9697 className = "logo"
9798 placeholder = "none"
@@ -100,7 +101,6 @@ const Footer = () => {
100101 formats = { [ "auto" , "webp" , "avif" ] }
101102 src = "../images/redhat_reversed.svg"
102103 alt = "Red Hat logo"
103- height = { 26 }
104104 />
105105 </ Logo >
106106 </ SponsorInfo >
0 commit comments