vitaliy-sharandin commited on
Commit
ef1b519
·
1 Parent(s): f93392b

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +18 -21
index.html CHANGED
@@ -17,17 +17,16 @@
17
  margin: 20px auto;
18
  padding: 0 10px;
19
  }
20
- .section {
21
- margin-bottom: 30px;
22
- }
23
  .section-title {
24
  color: #ffffff;
25
  margin: 10px 0;
 
 
26
  }
27
  .project-row {
28
  display: flex;
29
  flex-wrap: wrap;
30
- justify-content: space-around; /* Adjust the spacing between projects */
31
  }
32
  .project {
33
  border: 2px solid #30363d;
@@ -35,46 +34,44 @@
35
  padding: 10px;
36
  margin: 10px;
37
  background-color: #161b22;
38
- transition: background-color 0.3s ease;
39
- width: calc(50% - 20px); /* Two projects per row, accounting for margin */
40
- box-sizing: border-box; /* Includes padding and border in the element's total width and height */
41
  display: flex;
42
- flex-direction: column; /* Stack elements vertically */
 
43
  }
44
  .project:hover {
45
  background-color: #21262d;
46
  }
47
  .thumbnail {
48
- width: 100%; /* Make the image fill the container */
49
  border-radius: 5px;
 
 
50
  }
51
  .project-info {
52
- padding: 10px;
53
- display: flex;
54
- flex-direction: column;
55
- align-items: flex-start; /* Align project info to the start (left) */
56
  }
57
  .project-title {
58
  font-size: 1.2em;
59
- color: #ffffff; /* White color for titles */
60
- margin: 0 0 10px 0; /* Add some margin below the title */
61
  }
62
  .project-link {
63
  text-decoration: none;
64
  color: #58a6ff;
65
- margin: 5px 0; /* Reduce the vertical margin */
66
- text-align: center;
67
- padding: 8px 20px; /* Padding for the button */
68
  background-color: #21262d;
69
  border-radius: 20px;
70
- transition: background-color 0.2s ease;
71
  }
72
  .project-link:hover {
73
- background-color: #30363d; /* Darken button on hover */
74
  text-decoration: underline;
75
  }
76
  @media screen and (max-width: 768px) {
77
- /* Responsive design: Stack projects on top of each other on smaller screens */
78
  .project {
79
  width: 100%;
80
  }
 
17
  margin: 20px auto;
18
  padding: 0 10px;
19
  }
 
 
 
20
  .section-title {
21
  color: #ffffff;
22
  margin: 10px 0;
23
+ text-align: center;
24
+ font-size: 2em; /* Bigger font for section titles */
25
  }
26
  .project-row {
27
  display: flex;
28
  flex-wrap: wrap;
29
+ justify-content: center; /* Center the projects */
30
  }
31
  .project {
32
  border: 2px solid #30363d;
 
34
  padding: 10px;
35
  margin: 10px;
36
  background-color: #161b22;
37
+ width: calc(50% - 20px); /* Adjust width for two projects per row */
38
+ box-sizing: border-box;
 
39
  display: flex;
40
+ flex-direction: column;
41
+ align-items: center; /* Center align items */
42
  }
43
  .project:hover {
44
  background-color: #21262d;
45
  }
46
  .thumbnail {
 
47
  border-radius: 5px;
48
+ width: auto; /* Adjust width as needed */
49
+ max-height: 200px; /* Adjust height as needed */
50
  }
51
  .project-info {
52
+ width: 100%;
53
+ text-align: center; /* Center the text */
 
 
54
  }
55
  .project-title {
56
  font-size: 1.2em;
57
+ color: #ffffff;
58
+ margin: 0 0 10px 0;
59
  }
60
  .project-link {
61
  text-decoration: none;
62
  color: #58a6ff;
63
+ margin: 5px 0;
64
+ padding: 8px 16px; /* Adjust padding for narrower buttons */
 
65
  background-color: #21262d;
66
  border-radius: 20px;
67
+ display: inline-block; /* Make buttons inline */
68
  }
69
  .project-link:hover {
70
+ background-color: #30363d;
71
  text-decoration: underline;
72
  }
73
  @media screen and (max-width: 768px) {
74
+ /* Responsive design for smaller screens */
75
  .project {
76
  width: 100%;
77
  }