@@ -17,65 +17,97 @@ const messages = useI18n("layouts/groups/Footer.astro", {
17
17
});
18
18
---
19
19
20
+ <footer >
21
+ <Sprite class =" arrow" name =" arrow" />
22
+ <div class =" contact" >
23
+ <Address />
24
+ <Contact withoutLanguageSwitcher />
25
+ </div >
26
+ <span class =" copyright" >{ messages .copyright } <br />{ messages .version ({ version })} </span >
27
+ <div class =" links" >
28
+ <nav >
29
+ <Navigation items ={ navigation } />
30
+ </nav >
31
+ <a href ={ C .SETTINGS .META .LINKEDIN } target =" _blank" rel =" noopener" aria-label =" LinkedIn" >
32
+ <Sprite name =" linkedin" />
33
+ </a >
34
+ <a href ={ C .SETTINGS .META .GITHUB } target =" _blank" rel =" noopener" aria-label =" GitHub" >
35
+ <Sprite name =" github" />
36
+ </a >
37
+ </div >
38
+ </footer >
39
+
20
40
<style >
21
41
footer {
22
- display: flex;
23
- justify-content: space-between;
42
+ display: grid;
43
+ grid-template-columns: min-content 1fr 1fr;
44
+ grid-template-areas:
45
+ "arrow contact links"
46
+ "copyright copyright copyright";
47
+ gap: var(--size-gutter-big);
24
48
background-color: var(--color-primary);
25
49
padding-block: var(--size-gutter-big);
26
- }
27
-
28
- .contact {
29
- display: flex;
30
- gap: var(--size-gutter-big);
31
50
32
- svg {
51
+ .arrow {
52
+ grid-area: arrow;
33
53
fill: var(--color-secondary);
34
54
height: auto;
35
55
width: 4rem;
36
- transform: rotate(300deg);
56
+ transform: rotate(300deg) translateX(-0.7rem) ;
37
57
}
38
58
39
- ul {
40
- list-style: none;
41
- margin: 0;
42
- padding: 0;
59
+ .contact {
60
+ grid-area: contact;
61
+ align-self: flex-end;
62
+ display: flex;
63
+ gap: var(--size-gutter-big);
64
+
65
+ ul {
66
+ list-style: none;
67
+ margin: 0;
68
+ padding: 0;
69
+ }
43
70
}
44
- }
45
71
46
- .copyright {
47
- font-size: 0.8rem;
48
- color: var(--color-background);
72
+ .links {
73
+ grid-area: links;
74
+ justify-content: flex-end;
75
+ align-self: flex-end;
76
+ display: flex;
77
+ gap: var(--size-gutter-big);
78
+ width: 100%;
79
+
80
+ svg {
81
+ fill: var(--color-background);
82
+ width: 2.4rem;
83
+ }
84
+ }
85
+
86
+ .copyright {
87
+ grid-area: copyright;
88
+ text-align: center;
89
+ font-size: 0.8rem;
90
+ color: var(--color-background);
91
+ }
49
92
}
50
93
51
- .links {
52
- display: flex;
53
- align-items: center;
54
- gap: var(--size-gutter-big);
94
+ @media screen and (max-width: 800px) {
95
+ footer {
96
+ grid-template-areas:
97
+ "contact"
98
+ "links"
99
+ "copyright";
100
+ grid-template-columns: repeat(1, 1fr);
101
+
102
+ .arrow {
103
+ display: none;
104
+ }
55
105
56
- svg {
57
- fill: var(--color-background);
58
- width: 2.4rem;
106
+ .contact,
107
+ .links {
108
+ margin: 0 auto;
109
+ justify-content: center;
110
+ }
59
111
}
60
112
}
61
113
</style >
62
-
63
- <footer >
64
- <div class =" contact" >
65
- <Sprite name =" arrow" />
66
- <Address />
67
- <Contact withoutLanguageSwitcher />
68
- </div >
69
- <span class =" copyright" >{ messages .copyright } / { messages .version ({ version })} </span >
70
- <div class =" links" >
71
- <nav >
72
- <Navigation items ={ navigation } />
73
- </nav >
74
- <a href ={ C .SETTINGS .META .LINKEDIN } target =" _blank" rel =" noopener" aria-label =" LinkedIn" >
75
- <Sprite name =" linkedin" />
76
- </a >
77
- <a href ={ C .SETTINGS .META .GITHUB } target =" _blank" rel =" noopener" aria-label =" GitHub" >
78
- <Sprite name =" github" />
79
- </a >
80
- </div >
81
- </footer >
0 commit comments