File tree 3 files changed +23
-8
lines changed
3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change 1
1
: root {
2
2
--primary-color : # fd4d12 ;
3
+ --secondary-color : # 2a71ff ;
3
4
}
4
5
5
6
.bg-jobboard {
445
446
box-shadow : 0 0 0 var (--primary-color );
446
447
}
447
448
449
+ .box-animated-secondary {
450
+ box-shadow : 0 0 0 var (--secondary-color );
451
+ }
452
+
448
453
@-webkit-keyframes pulse-shadow {
449
454
0% {
450
455
-webkit-box-shadow : 0 0 0 0 inherit;
Original file line number Diff line number Diff line change 136
136
'900' : '#7e1b10' ,
137
137
'950' : '#440906' ,
138
138
} ,
139
+ secondary : {
140
+ '50' : '#eef5ff' ,
141
+ '100' : '#d8e8ff' ,
142
+ '200' : '#b9d6ff' ,
143
+ '300' : '#89bdff' ,
144
+ '400' : '#5299ff' ,
145
+ '500' : '#2a71ff' ,
146
+ '600' : '#124dfd' ,
147
+ '700' : '#0c38e9' ,
148
+ '800' : '#112ebc' ,
149
+ '900' : '#142d94' ,
150
+ '950' : '#111d5a' ,
151
+ } ,
139
152
} ,
140
153
fontSize : {
141
154
filterTitle : '0.8rem' ,
Original file line number Diff line number Diff line change 25
25
{% else %}
26
26
{# Cards -#}
27
27
{% for job in jobs %}
28
+ {% let open_source = job.open_source.unwrap_or_default() %}
28
29
< button id ="job-preview-{{ job.job_id }} "
29
30
data-preview-job ="true "
30
31
data-job-id ="{{ job.job_id }} "
31
32
hx-get ="/section/jobs/{{ job.job_id }} "
32
33
hx-target ="#preview-content "
33
34
hx-trigger ="click,open-modal "
34
35
hx-indicator ="#spinner-{{ job.job_id }} "
35
- class ="relative mx-5 md:mx-7 text-start enabled:cursor-pointer border rounded-lg enabled:hover:outline enabled:hover:-outline-offset-1 p-5 md:p-7 {%- if let Some(member) = job.employer.member %} border-primary -400 bg-primary -50/20 enabled:hover:outline-primary -500{%- else %} enabled:hover:outline-gray-400{%- endif -%} "
36
+ class ="relative mx-5 md:mx-7 text-start enabled:cursor-pointer border border-2 rounded-lg enabled:hover:outline enabled:hover:-outline-offset-1 p-5 md:p-7 {%- if open_source > 0 %} border-primary-400 bg-primary-50/20 enabled:hover:outline-primary-500{%- else if let Some(member) = job.employer.member %} border-secondary -400 bg-secondary -50/20 enabled:hover:outline-secondary -500{%- else %} enabled:hover:outline-gray-400{%- endif -%} "
36
37
hx-disabled-elt ="[data-preview-job] "
37
38
hx-boost ="true ">
38
39
{# Job title #}
148
149
149
150
{# Open source #}
150
151
< div class ="flex space-x-1 items-center justify-center ">
151
- {% if let Some(open_source) = job.open_source %}
152
- {% if open_source + 0 > 0 %}
153
- < div class ="svg-icon size-3 icon-check bg-green-500 "> </ div >
154
- {% else %}
155
- < div class ="svg-icon size-3.5 icon-close bg-red-500 "> </ div >
156
- {% endif %}
152
+ {% if open_source > 0 %}
153
+ < div class ="svg-icon size-3 icon-check bg-green-500 "> </ div >
157
154
{% else %}
158
155
< div class ="svg-icon size-3.5 icon-close bg-red-500 "> </ div >
159
156
{% endif %}
197
194
198
195
{# Spinner #}
199
196
< div id ="spinner-{{ job.job_id }} "
200
- class ="hx-spinner absolute rounded-lg top-0 left-0 h-full w-full rounded-lg box-animated {%- if let Some(member) = job.employer.member %} box-animated-primary {%- endif -%} ">
197
+ class ="hx-spinner absolute rounded-lg top-0 left-0 h-full w-full rounded-lg box-animated {%- if open_source > 0 %} box-animated-primary{%- else if let Some(member) = job.employer.member %} box-animated-secondary {%- endif -%} ">
201
198
</ div >
202
199
{# End spinner #}
203
200
</ button >
You can’t perform that action at this time.
0 commit comments