Skip to content

Commit 644f13e

Browse files
authored
Merge pull request #302 from tjklint/refactor(1page)
docs: commented resume.scss for better code readabliity.
2 parents ac04427 + 217732d commit 644f13e

File tree

1 file changed

+57
-59
lines changed

1 file changed

+57
-59
lines changed

src/components/resume/resume.scss

Lines changed: 57 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,126 @@
11
.resume-container {
22
display: flex;
3-
flex-direction: column;
4-
align-items: center;
5-
color: #fff;
6-
width: 80%;
7-
margin: 0 auto;
8-
padding: 0;
9-
font-family: 'RobotoMono', sans-serif;
3+
flex-direction: column; /* Stack elements vertically */
4+
align-items: center; /* Center the content horizontally */
5+
color: #fff; /* White text color */
6+
width: 80%; /* Set container width to 80% */
7+
margin: 0 auto; /* Center the container horizontally */
8+
padding: 0; /* Remove padding */
9+
font-family: 'RobotoMono', sans-serif; /* Use the RobotoMono font */
1010

1111
.resume-title {
12-
font-size: 2.5em;
13-
text-align: left;
14-
margin: 0;
15-
padding: 0;
16-
width: 100%;
12+
font-size: 2.5em; /* Large font size for the title */
13+
text-align: left; /* Align the title text to the left */
14+
margin: 0; /* Remove default margin */
15+
padding: 0; /* Remove default padding */
16+
width: 100%; /* Full width for the title */
1717
}
1818

1919
.content-wrapper {
20-
width: 100%;
20+
width: 100%; /* Full width for content wrapper */
2121
display: flex;
22-
flex-direction: column;
22+
flex-direction: column; /* Stack items vertically by default */
2323

2424
@media (min-width: 1025px) {
25-
flex-direction: row;
26-
justify-content: center;
25+
flex-direction: row; /* Switch to a row layout on larger screens */
26+
justify-content: center; /* Center content horizontally */
2727
}
2828
}
2929
}
3030

3131
.left-column {
32-
flex: 1;
33-
margin-bottom: 20px;
32+
flex: 1; /* Allow the left column to take up equal space */
33+
margin-bottom: 20px; /* Space below the left column */
3434

3535
@media (max-width: 1024px) {
36-
margin-right: 0;
37-
width: 100%;
36+
margin-right: 0; /* Remove right margin on smaller screens */
37+
width: 100%; /* Full width on smaller screens */
3838
}
3939
}
4040

4141
.right-column {
42-
flex: 1;
42+
flex: 1; /* Allow the right column to take up equal space */
4343
display: flex;
44-
justify-content: center;
45-
align-items: center;
46-
width: 100%;
44+
justify-content: center; /* Center content horizontally */
45+
align-items: center; /* Center content vertically */
46+
width: 100%; /* Full width for the right column */
4747

4848
iframe {
49-
width: 100%;
50-
height: 115vh;
51-
border: none;
49+
width: 100%; /* Full width iframe for embedding content */
50+
height: 115vh; /* Set iframe height */
51+
border: none; /* Remove the iframe border */
5252

5353
@media (max-width: 1200px) {
54-
height: 60vh;
54+
height: 60vh; /* Reduce iframe height on smaller screens */
5555
}
5656
}
5757
}
5858

5959
.section-container {
60-
position: relative;
60+
position: relative; /* Position relative for the section */
6161
}
6262

6363
.section-title {
64-
font-size: 2.5em;
65-
margin-bottom: 20px;
66-
position: relative;
67-
68-
64+
font-size: 2.5em; /* Large font size for section titles */
65+
margin-bottom: 20px; /* Space below the section title */
66+
position: relative; /* Position relative for future positioning */
6967
}
7068

7169
.line-container {
72-
position: relative;
70+
position: relative; /* Relative positioning for the line indicator */
7371

7472
&:before {
75-
content: "";
73+
content: ""; /* Create a vertical line */
7674
position: absolute;
7775
top: 0;
7876
bottom: 0;
79-
width: 2px;
80-
background: #d3d3d3;
77+
width: 2px; /* Set the line width */
78+
background: #d3d3d3; /* Light gray color for the line */
8179
}
8280
}
8381

8482
.job-container {
85-
margin-bottom: 20px;
86-
padding-left: 40px;
87-
position: relative;
83+
margin-bottom: 20px; /* Space below each job section */
84+
padding-left: 40px; /* Space on the left to align content */
85+
position: relative; /* Relative positioning for the job container */
8886

8987
&:before {
90-
content: "";
88+
content: ""; /* Create a horizontal line for job sections */
9189
position: absolute;
9290
top: 1em;
9391
left: 0;
94-
width: 20px;
95-
height: 2px;
96-
background: #d3d3d3;
92+
width: 20px; /* Set width of the horizontal line */
93+
height: 2px; /* Set height of the line */
94+
background: #d3d3d3; /* Light gray color for the line */
9795
}
9896
}
9997

10098
.job-title {
101-
font-size: 1.5em;
102-
margin: 10px 0;
103-
position: relative;
99+
font-size: 1.5em; /* Font size for job titles */
100+
margin: 10px 0; /* Space above and below the job title */
101+
position: relative; /* Relative positioning for future positioning */
104102
}
105103

106104
.company {
107-
color: #8a2be2;
105+
color: #8a2be2; /* Purple color for company names */
108106
}
109107

110108
.job-dates {
111-
font-size: 1em;
112-
color: #d3d3d3;
113-
margin: 5px 0 10px 0;
109+
font-size: 1em; /* Font size for job dates */
110+
color: #d3d3d3; /* Light gray color for job dates */
111+
margin: 5px 0 10px 0; /* Spacing around job dates */
114112
}
115113

116114
.bullet-point {
117-
list-style-type: none;
118-
position: relative;
119-
padding-left: 20px;
120-
font-size: 1em;
115+
list-style-type: none; /* Remove default list style */
116+
position: relative; /* Relative positioning for bullet points */
117+
padding-left: 20px; /* Space on the left for the bullet points */
118+
font-size: 1em; /* Font size for the bullet points */
121119

122120
&:before {
123-
content: ">";
121+
content: ">"; /* Arrow symbol for bullet points */
124122
position: absolute;
125-
left: 0;
126-
color: #8a2be2;
123+
left: 0; /* Align bullet point to the left */
124+
color: #8a2be2; /* Purple color for bullet point arrows */
127125
}
128126
}

0 commit comments

Comments
 (0)