File tree 5 files changed +89
-1
lines changed
themes/vocabulary_theme/templates/blocks
5 files changed +89
-1
lines changed Original file line number Diff line number Diff line change @@ -70,3 +70,5 @@ links_plugins:
70
70
<h5 class =" link-heading " ><a href =" https://opensource.creativecommons.org/ccsearch-browser-extension/ " class =" has-text-forest-green " >CC Search Browser Extension</a ></h5 >
71
71
<p class =" link-caption " >Search the Catalog using our Extension.</p >
72
72
</div >
73
+ #### featured-projects ####
74
+ title: Featured Projects
Original file line number Diff line number Diff line change
1
+ [block]
2
+ name = Featured Projects
3
+
4
+ [fields.title]
5
+ label = Title
6
+ type = string
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ type = string
9
9
[fields.block_content]
10
10
label = Block Content
11
11
type = flow
12
- flow_blocks = hero, get-involved
12
+ flow_blocks = hero, get-involved, featured-projects
Original file line number Diff line number Diff line change
1
+ < section class ="featured-projects ">
2
+ < div class ="container ">
3
+ < div class ="level ">
4
+ < h4 class ="is-paddingless level-left ">
5
+ {{ this.title }}
6
+ </ h4 >
7
+ < span class ="level-right ">
8
+ < a class ="project-page-link " href ="/contributing-code/projects/ "> See all available projects < i class ="icon angle-right "> </ i > </ a >
9
+ </ span >
10
+ </ div >
11
+ < div class ="project-list columns ">
12
+ {% for repo in bag('repos.repos') %}
13
+ {% if repo.featured %}
14
+ < article class ="card entry-post vertical project-index column is-one-third ">
15
+ < div class ="card-content ">
16
+ < h4 class ="card-title b-header "> < a href ="{{ repo.url }} "> {{ repo.english_name }}</ a > </ h4 >
17
+ < a class ="button is-text tiny site-link " href ="{{ repo.website }} ">
18
+ < span > Visit site</ span >
19
+ < i class ="icon external-link "> </ i >
20
+ </ a >
21
+ < div class ="content ">
22
+ {{ repo.description }}
23
+ </ div >
24
+ < div class ="labels ">
25
+ {% for technology in repo.technologies %}
26
+ < button class ="button tag "> {{ technology }}</ button >
27
+ {% endfor %}
28
+ </ div >
29
+ < div class ="external-links ">
30
+ < a class ="button is-text tiny " href ="{{ repo.url }} ">
31
+ < i class ="icon github "> </ i >
32
+ < span class ="link-content "> Github Repository</ span >
33
+ </ a >
34
+ < br >
35
+ < a class ="button is-text tiny ">
36
+ < i class ="icon slack "> </ i >
37
+ < span class ="link-content "> Slack channel (#{{ repo.slack }})</ span >
38
+ </ a >
39
+ </ div >
40
+ </ div >
41
+ </ article >
42
+ {% endif %}
43
+ {% endfor %}
44
+ </ div >
45
+ </ div >
46
+ </ section >
Original file line number Diff line number Diff line change 90
90
}
91
91
}
92
92
93
+ .featured-projects {
94
+ @extend .padding-vertical-xxl ;
95
+
96
+ .container {
97
+ @extend .padding-horizontal-big ;
98
+ }
99
+
100
+ .project-page-link {
101
+ @extend .has-color-forest-green ;
102
+ @extend .body-normal ;
103
+
104
+ line-height : 1.5rem ;
105
+ font-weight : bold ;
106
+ text-decoration : none ;
107
+
108
+ .icon {
109
+ @extend .padding-left-small ;
110
+ @extend .padding-top-smaller ;
111
+ }
112
+ }
113
+
114
+ .project-list {
115
+ @extend .padding-top-bigger ;
116
+ @extend .padding-bottom-larger ;
117
+
118
+ .column {
119
+ @extend .margin-horizontal-big ;
120
+ @extend .margin-bottom-larger ;
121
+
122
+ height : 100% ;
123
+ }
124
+ }
125
+ }
126
+
93
127
.breadcrumb-container {
94
128
border-top : 4px solid $color-forest-green ;
95
129
background-color : $color-lighter-gray ;
You can’t perform that action at this time.
0 commit comments