aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/landing/sections/Hero.module.css
blob: d8aa99aff0793ecf41b14b4740c76da7ea1e4a45 (plain) (blame)
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
/*
 * SPDX-FileCopyrightText: 2023-2024 Kristóf Marussy
 *
 * SPDX-License-Identifier: MIT
 */

.hero {
  /* Reserve space for the bottom padding of the avatar in single-column mode. */
  padding-bottom: 2rem;
  --ifm-link-color: #6ea1f7;
  --ifm-link-hover-color: var(--ifm-link-color);
}

@media (max-width: 576px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 0;
  }
}

.hero__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 2rem;
}

.avatar {
  align-items: center;
}

@media (max-width: 996px) {
  .avatar {
    padding-bottom: 1rem;
  }
}

.avatar__holder {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
  max-width: 298px;
  border-radius: 100em;
}

.avatar__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.introduction {
  font-family: var(--ifm-font-family-base);
  font-weight: 500;
  --casl: 0;
  font-size: 1.5rem;
  letter-spacing: normal;
}

.introduction__name {
  font-family: var(--ifm-heading-font-family);
  font-weight: var(--marussy-very-bold);
  --casl: 1;
  font-size: 3rem;
  letter-spacing: var(--marussy-heading-tracking);
  white-space: pre;
}

@media (max-width: 576px) {
  .introduction__name {
    font-size: 2.5rem;
  }
}

.cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta__button {
  flex: 1;
}

.contacts {
  display: flex;
  flex-direction: row;
  flex-grow: 999999;
  margin: 0 0 0 -0.5rem;
  padding: 0;
}

.contacts__item {
  display: flex;
  align-items: center;
}

.contacts__icon {
  padding: 0.375rem 0.5rem;
  display: flex;
  --ifm-link-color: var(--ifm-color-secondary);
  --ifm-link-hover-color: var(--ifm-color-secondary-dark);
  --ifm-link-text-decoration: none;
}

.contacts__icon svg {
  width: 2rem;
  height: 2rem;
}

@media (forced-colors: active) {
  .avatar__holder {
    border: 2px solid CanvasText;
  }

  .contacts__icon:hover,
  .contacts__icon:focus {
    color: HighlightText;
    background: Highlight;
    transition: none;
  }
}