File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ const GlobalStyle = createGlobalStyle`
155155
156156 .wrapper {
157157 display: grid;
158- grid-template-columns: 1fr 3fr;
158+ grid-template-columns: 1.2fr 3fr;
159159 gap: 50px;
160160
161161 @media (max-width: 991px) {
Original file line number Diff line number Diff line change @@ -4,33 +4,35 @@ import { AnchorLink } from 'gatsby-plugin-anchor-links'
44import { StyledSidebar } from './Sidebar.styles'
55
66const Sidebar = ( { data, page } ) => (
7- < StyledSidebar >
8- { data . map (
9- ( {
10- label : { id : labelId , name : labelName , categories : labelCategories } ,
11- } ) => {
12- return (
13- < div key = { labelId } >
14- < h2 key = { labelId } > { labelName } </ h2 >
15- < ul >
16- { labelCategories . map (
17- ( { category : { id : categoryId , name : categoryName } } ) => (
18- < li key = { categoryId } >
19- < AnchorLink
20- title = { categoryName }
21- to = { `/${ page } #${ categoryId } ` }
22- >
23- { categoryName }
24- </ AnchorLink >
25- </ li >
26- )
27- ) }
28- </ ul >
29- </ div >
30- )
31- }
32- ) }
33- </ StyledSidebar >
7+ < div >
8+ < StyledSidebar >
9+ { data . map (
10+ ( {
11+ label : { id : labelId , name : labelName , categories : labelCategories } ,
12+ } ) => {
13+ return (
14+ < div key = { labelId } >
15+ < h2 key = { labelId } > { labelName } </ h2 >
16+ < ul >
17+ { labelCategories . map (
18+ ( { category : { id : categoryId , name : categoryName } } ) => (
19+ < li key = { categoryId } >
20+ < AnchorLink
21+ title = { categoryName }
22+ to = { `/${ page } #${ categoryId } ` }
23+ >
24+ { categoryName }
25+ </ AnchorLink >
26+ </ li >
27+ )
28+ ) }
29+ </ ul >
30+ </ div >
31+ )
32+ }
33+ ) }
34+ </ StyledSidebar >
35+ </ div >
3436)
3537
3638Sidebar . propTypes = {
Original file line number Diff line number Diff line change 11import styled from 'styled-components'
22
33export const StyledSidebar = styled . aside `
4+ border: 2px solid rgba(255, 255, 255, 0.15);
5+ padding: 3rem 30px;
6+ border-radius: 10px;
7+
48 h2 {
59 font-weight: 600;
610 margin: 0;
@@ -19,7 +23,10 @@ export const StyledSidebar = styled.aside`
1923
2024 a {
2125 color: var(--color__green);
22- text-decoration: none;
26+
27+ &:hover {
28+ text-decoration: underline;
29+ }
2330 }
2431
2532 > div:last-of-type ul {
You can’t perform that action at this time.
0 commit comments