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

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +21 -15
index.html CHANGED
@@ -27,52 +27,58 @@
27
  .project-row {
28
  display: flex;
29
  flex-wrap: wrap;
30
- justify-content: space-between; /* This will ensure the two projects per row are spaced out */
31
  }
32
  .project {
33
  border: 2px solid #30363d;
34
  border-radius: 10px;
35
  padding: 10px;
36
- margin: 10px 0;
37
  background-color: #161b22;
38
  transition: background-color 0.3s ease;
39
- flex-basis: calc(50% - 20px); /* Two projects per row, minus margin */
40
- box-shadow: 0 8px 24px rgba(0,0,0,0.5);
 
 
41
  }
42
  .project:hover {
43
  background-color: #21262d;
44
  }
45
  .thumbnail {
46
- width: 100%;
47
  border-radius: 5px;
48
  }
49
  .project-info {
50
  padding: 10px;
51
- position: relative;
 
 
52
  }
53
  .project-title {
54
  font-size: 1.2em;
55
  color: #ffffff; /* White color for titles */
56
- position: absolute; /* Position the title in the top left */
57
- top: 10px;
58
- left: 10px;
59
- margin: 0;
60
  }
61
  .project-link {
62
- display: block;
63
  text-decoration: none;
64
  color: #58a6ff;
65
- margin: 10px auto;
66
  text-align: center;
67
- padding: 8px 20px; /* Narrower buttons */
68
  background-color: #21262d;
69
  border-radius: 20px;
70
- width: auto;
71
- box-sizing: border-box;
72
  }
73
  .project-link:hover {
 
74
  text-decoration: underline;
75
  }
 
 
 
 
 
 
76
  </style>
77
  </head>
78
  <body>
 
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;
34
  border-radius: 10px;
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
+ }
81
+ }
82
  </style>
83
  </head>
84
  <body>