All files / src/components/Sidebar SidebarStyles.js

100% Statements 11/11
100% Branches 0/0
100% Functions 0/0
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239              4x                                                       4x                                       4x                                                               4x                           4x                 4x                                                     4x                                     4x                                                                       4x                         4x                     4x                                            
import styled from 'styled-components';
import { Link } from 'react-scroll';
 
/**
 * Fixed full-height column that holds all sidebar content.
 * Becomes a static block on mobile so it doesn't obscure the scrollable content area.
 */
export const SidebarContainer = styled.div`
  width: 350px;
  height: 100vh;
  background-color: #0a192f;
  color: #ccd6f6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  padding: 1rem 1rem;
  overflow: hidden;
  box-sizing: border-box;
 
  @media (max-width: 768px) {
    width: 100%;
    height: auto;
    position: relative;
    overflow-y: visible;
  }
`;
 
/**
 * Navigation link powered by react-scroll.
 * Slides right on hover/active to signal the current section without a full page change.
 */
export const StyledLink = styled(Link)`
  display: flex;
  align-items: center;
  color: #ccd6f6;
  font-size: 1.4rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
 
  &:hover,
  &.active {
    transform: translateX(10px);
    color: #64ffda;
  }
`;
 
/**
 * Name and job title block at the top of the sidebar.
 * Uses clamp() on h1 so the name stays on one line within the fixed sidebar width.
 */
export const NameTitle = styled.div`
  text-align: center;
 
  h1 {
    /* clamp keeps the name on one line without overflowing the fixed sidebar width */
    font-size: clamp(1.4rem, 4.8vw, 1.9rem);
    margin-bottom: 0.3rem;
    color: #64ffda;
    white-space: nowrap;
  }
 
  h2 {
    font-size: 1.1rem;
    color: #8892b0;
  }
 
  @media (max-width: 768px) {
    h1 {
      font-size: 1.6rem;
      white-space: normal;
    }
 
    h2 {
      font-size: 1rem;
    }
  }
`;
 
/**
 * Navigation link column. Hidden on mobile because the sidebar
 * collapses to a top header bar where vertical links don't fit.
 */
export const Menu = styled.div`
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
 
  @media (max-width: 768px) {
    display: none;
  }
`;
 
/**
 * Centering wrapper for the social icon row.
 */
export const SocialLinksWrapper = styled.div`
  display: flex;
  flex-direction: column;
  align-items: center;
`;
 
/**
 * Social icon links with scale-and-color hover effect.
 */
export const SocialLinks = styled.div`
  display: flex;
  gap: 1.5rem;
 
  a {
    font-size: 2rem;
    color: #ccd6f6;
    transition: color 0.3s ease, transform 0.3s ease;
 
    &:hover {
      color: #64ffda;
      transform: scale(1.2);
    }
  }
 
  @media (max-width: 768px) {
    gap: 1rem;
 
    a {
      font-size: 1.5rem;
    }
  }
`;
 
/**
 * Footer area at the bottom of the sidebar containing the tagline and legal links.
 */
export const FooterMessage = styled.div`
  margin-bottom: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #ccd6f6;
 
  p {
    margin: 0;
  }
 
  @media (max-width: 768px) {
    font-size: 0.8rem;
  }
`;
 
/**
 * Language toggle button group. Subtle background separates it visually
 * from the navigation links above.
 */
export const LanguageWrapper = styled.div`
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  button {
    background: rgba(100,255,218,0.04);
    border: 1px solid rgba(100,255,218,0.16);
    color: #64ffda;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(10,25,47,0.25);
    transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease, box-shadow 0.12s ease;
  }
  button:hover {
    /* Matches tech-box hover: solid accent background with lift shadow */
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 18px rgba(100,255,218,0.14);
  }
  /* Slight border to visually separate language buttons from the rest of the footer */
  & {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  }
`;
 
/**
 * Ghost button used for Impressum and Datenschutz footer links.
 * Styled to look like a text link while keeping button semantics for accessibility.
 */
export const LegalButton = styled.button`
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  font: inherit;
`;
 
/**
 * Centering wrapper for the CV download link.
 */
export const CVDownloadWrapper = styled.div`
  margin-top: 1rem;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
`;
 
/**
 * Styled CV download link. Matches the language button appearance
 * so both actions feel like peers in the sidebar footer.
 */
export const CVDownloadLink = styled.a`
  display: inline-block;
  background: rgba(100, 255, 218, 0.04);
  border: 1px solid rgba(100, 255, 218, 0.16);
  color: #64ffda;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(10, 25, 47, 0.25);
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease,
    box-shadow 0.12s ease;
 
  &:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 18px rgba(100, 255, 218, 0.14);
  }
`;