File tree Expand file tree Collapse file tree 7 files changed +132
-7
lines changed Expand file tree Collapse file tree 7 files changed +132
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " kroljs" ,
3
- "version" : " 2.1.0 " ,
3
+ "version" : " 2.1.1 " ,
4
4
"private" : true ,
5
5
"homepage" : " https://kroljs.com/" ,
6
6
"dependencies" : {
Original file line number Diff line number Diff line change @@ -5,13 +5,14 @@ import CornerImg from '../utilities/CornerImg';
5
5
import ContentBlock from '../utilities/ContentBlock' ;
6
6
7
7
import UICImg from '../../graphics/chicago-uic-small-3.jpg' ;
8
- import PortraitImg from '../../graphics/jacob-2.jpeg' ;
8
+ import PortraitImg from '../../graphics/jacob-3.jpg' ;
9
+ import NameTag from '../utilities/NameTag' ;
9
10
10
11
function HomePage ( ) {
11
12
return (
12
13
< div >
13
14
< Backdrop imgName = { UICImg } />
14
- < TitleCard title = "Jacob Krol" subtitle = { [ "Full-Stack Web Developer" , "Short-Stack Pancake Lover" ] } />
15
+ < TitleCard Icon = { NameTag } subtitle = { [ "Full-Stack Web Developer" , "Short-Stack Pancake Lover" ] } />
15
16
< CornerImg />
16
17
< ContentBlock key = { 0 } bg = { 0 } title = "bio." >
17
18
< div className = "content-row" >
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
3
+ export default function NameTag ( ) {
4
+ return (
5
+ < svg width = "340" height = "60" viewBox = "0 0 340 60" fill = "none" xmlns = "http://www.w3.org/2000/svg" >
6
+ < g id = "nametag" clipPath = "url(#clip0)" >
7
+ < text id = "krol" fill = "white" xmlSpace = "preserve" style = { { whiteSpace : "pre" } } fontFamily = "Source Sans" font-size = "64" letterSpacing = "0em" > < tspan x = "226" y = "52.752" > Krol</ tspan > </ text >
8
+ < text id = "s" fill = "white" xmlSpace = "preserve" style = { { whiteSpace : "pre" } } fontFamily = "Source Sans" font-size = "64" letterSpacing = "0em" > < tspan x = "179" y = "52.752" > S</ tspan > </ text >
9
+ < text id = "acob" fill = "white" xmlSpace = "preserve" style = { { whiteSpace : "pre" } } fontFamily = "Source Sans" font-size = "64" letterSpacing = "0em" > < tspan x = "36" y = "52.752" > acob</ tspan > </ text >
10
+ < text id = "j" fill = "white" xmlSpace = "preserve" style = { { whiteSpace : "pre" } } fontFamily = "Source Sans" font-size = "64" letterSpacing = "0em" > < tspan x = "5" y = "52.752" > J</ tspan > </ text >
11
+ </ g >
12
+ < defs >
13
+ < clipPath id = "clip0" >
14
+ < rect width = "340" height = "60" fill = "white" />
15
+ </ clipPath >
16
+ </ defs >
17
+ </ svg >
18
+ )
19
+ }
Original file line number Diff line number Diff line change @@ -8,10 +8,16 @@ import '../../styles/TitleCard.css';
8
8
// props.subtitle (opt.) = string or array of strings for subtitles
9
9
10
10
function TitleCard ( props ) {
11
+ const { Icon } = props ;
11
12
return (
12
13
< div className = "title-container" style = { { minHeight : ( props . size || 100 ) + "vh" } } >
13
14
< div className = "title-cell" >
14
- < h1 className = "title" > { props . title } </ h1 >
15
+ { props . title
16
+ ? < h1 className = "title" > { props . title } </ h1 >
17
+ : Icon
18
+ ? < h1 className = "title" > < Icon /> </ h1 >
19
+ : null
20
+ }
15
21
< HLine />
16
22
{ typeof props . subtitle === "object"
17
23
? props . subtitle . map ( ( s , i ) => < h2 className = "subtitle" key = { i } > { s } </ h2 > )
Original file line number Diff line number Diff line change 58
58
}
59
59
.content-box {
60
60
text-align : left !important ;
61
- font-size : 0.9rem !important ;
61
+ padding : 10px !important ;
62
+ /* font-size: 0.9rem !important; */
63
+ }
64
+ .media-box {
65
+ padding : 0 !important ;
66
+ }
67
+ .content-block-container {
68
+ margin : 0 !important ;
69
+ }
70
+ .content-column {
71
+ margin : 0 !important ;
62
72
}
63
73
.content-box ul {
64
74
padding-left : 20px ;
65
75
}
76
+ .content-block {
77
+ margin : 10px !important ;
78
+ }
66
79
.content-block .medium {
67
80
min-width : 225px ;
68
81
}
71
84
}
72
85
}
73
86
87
+ @media only screen and (max-width : 350px ) {
88
+ .content-box * {
89
+ padding : 0.2em ;
90
+ }
91
+ }
92
+
74
93
.content-block a {
75
94
color : # 333 ;
76
95
font-weight : bold;
Original file line number Diff line number Diff line change 1
- /* START NAME TAG */
1
+ /* START GENERIC NAME TAG */
2
2
3
3
.title-container {
4
4
position : relative;
38
38
font-size : 22px ;
39
39
}
40
40
41
- /* END NAME TAG */
41
+ /* END GENERIC NAME TAG */
42
+
43
+ /* START SVG NAME TAG */
44
+
45
+ .title > svg {
46
+ height : 60px ;
47
+ width : 340px ;
48
+ }
49
+
50
+ # j , # acob , # s , # krol {
51
+ animation-duration : 10s ;
52
+ animation-delay : 0s ;
53
+ animation-timing-function : ease-in-out;
54
+ animation-iteration-count : infinite;
55
+ }
56
+
57
+ # acob {
58
+ animation-name : animate-acob;
59
+ }
60
+
61
+ # j {
62
+ animation-name : animate-j;
63
+ }
64
+
65
+ # s {
66
+ animation-name : animate-s;
67
+ }
68
+
69
+ # krol {
70
+ animation-name : animate-krol;
71
+ }
72
+
73
+ @keyframes animate-acob {
74
+ 0% , 30% {
75
+ opacity : 1 ;
76
+ }
77
+ 50% , 80% {
78
+ opacity : 0 ;
79
+ }
80
+ 100% {
81
+ opacity : 1 ;
82
+ }
83
+ }
84
+
85
+ @keyframes animate-j {
86
+ 0% , 30% {
87
+ transform : translateX (0 );
88
+ }
89
+ 50% , 80% {
90
+ transform : translateX (189px );
91
+ }
92
+ 100% {
93
+ transform : translateX (0 );
94
+ }
95
+ }
96
+
97
+ @keyframes animate-s {
98
+ 0% , 30% {
99
+ transform : translateX (0 );
100
+ }
101
+ 50% , 80% {
102
+ transform : translateX (46px );
103
+ }
104
+ 100% {
105
+ transform : translateX (0 );
106
+ }
107
+ }
108
+
109
+ @keyframes animate-krol {
110
+ 0% , 30% {
111
+ transform : translateX (0 );
112
+ }
113
+ 50% , 80% {
114
+ transform : translateX (-146px );
115
+ }
116
+ 100% {
117
+ transform : translateX (0 );
118
+ }
119
+ }
120
+
121
+ /* END SVG NAME TAG */
You can’t perform that action at this time.
0 commit comments