Skip to content

Commit 9193408

Browse files
committed
Grid layout repo list
1 parent 09d6a7c commit 9193408

File tree

5 files changed

+107
-2
lines changed

5 files changed

+107
-2
lines changed

class/Github/Repo.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
namespace Gt\Website\Github;
3+
4+
class Repo {
5+
6+
}

class/Github/RepoList.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
namespace Gt\Website\Github;
3+
4+
class RepoList {
5+
6+
}

log.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ Add hero section and iframe for presentation
1313
Smooth scroll clicking logo
1414
Begin styling concertina (complex due to different display on mobile/desktop)
1515
Add pips to centre of concertina circles
16-
Style empty repo list
16+
Style empty repo list
17+
Grid layout repo list

page/index.html

+24
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,30 @@ <h1>Repo Name</h1>
139139
<p>Repo description.</p>
140140
</a>
141141
</li>
142+
<li>
143+
<a href="/docs/{repo}">
144+
<h1>Repo Name</h1>
145+
<p>Repo description.</p>
146+
</a>
147+
</li>
148+
<li>
149+
<a href="/docs/{repo}">
150+
<h1>Repo Name</h1>
151+
<p>Repo description.</p>
152+
</a>
153+
</li>
154+
<li>
155+
<a href="/docs/{repo}">
156+
<h1>Repo Name</h1>
157+
<p>Repo description.</p>
158+
</a>
159+
</li>
160+
<li>
161+
<a href="/docs/{repo}">
162+
<h1>Repo Name</h1>
163+
<p>Repo description.</p>
164+
</a>
165+
</li>
142166
</ul>
143167

144168
</section>

style/component/repo-list.scss

+69-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,79 @@
44

55
>h1 {
66
@extend %gutter, %padding-m;
7+
padding-top: $size-xl;
78
color: $palette-6;
8-
font-size: $font-size-l;
9+
font-size: $font-size-xl;
910
}
1011

1112
>p {
1213
@extend %gutter, %padding-m, %padding-horizontal, %reading-column-s;
1314
}
15+
16+
>ul {
17+
@extend %gutter,%padding-m, %reading-column;
18+
19+
@media(min-width: $break-m) {
20+
display: grid;
21+
grid-gap: $size-m;
22+
grid-template-columns: 50% 50%;
23+
}
24+
@media(min-width: $break-l) {
25+
grid-template-columns: 33.33% 33.33% 33.33%;
26+
}
27+
28+
>li {
29+
30+
position: relative;
31+
border-bottom: 1px solid rgba($palette-text-alt, 0.5);
32+
33+
&:last-of-type {
34+
border: none;
35+
}
36+
37+
>a {
38+
display: block;
39+
overflow: hidden;
40+
text-decoration: none;
41+
color: $palette-text-alt;
42+
43+
&::after {
44+
@extend %margin-m;
45+
margin-right: 0;
46+
47+
position: absolute;
48+
content: "";
49+
background-image: url("/asset/image/chevron.svg");
50+
background-repeat: no-repeat;
51+
background-position: 50%;
52+
background-size: 20%;
53+
top: 0;
54+
right: 0;
55+
width: $size-l;
56+
height: $size-l;
57+
padding: $size-s;
58+
border: 1px solid rgba($palette-text-alt, 0.5);
59+
}
60+
61+
@media(min-width: $break-m) {
62+
&::after {
63+
display: none;
64+
}
65+
}
66+
67+
&:hover {
68+
background: rgba(white, 0.1);
69+
}
70+
71+
>h1 {
72+
@extend %margin-m, %margin-vertical;
73+
font-size: $font-size-l;
74+
}
75+
76+
>p {
77+
78+
}
79+
}
80+
}
81+
}
1482
}

0 commit comments

Comments
 (0)