11
2+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css " />
3+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js ">
4+ new WOW ( ) . init ( ) ;
5+ </ script >
26< section id ="contact ">
37
48
@@ -52,4 +56,105 @@ <h6>{{post.bio}}</h6>
5256 </ div > <!--end row-->
5357 </ div >
5458
59+ < style >
60+ # art {
61+ /* Prevent vertical gaps */
62+ line-height : 0 ;
63+
64+ -webkit-column-count : 6 ;
65+ -webkit-column-gap : 2px ;
66+ -moz-column-count : 6 ;
67+ -moz-column-gap : 2px ;
68+ column-count : 6 ;
69+ column-gap : 2px ;
70+ }
71+
72+ # art img {
73+ /* Just in case there are inline attributes */
74+ width : 100% !important ;
75+ height : auto !important ;
76+ }
77+
78+ @media (max-width : 1200px ) {
79+ # art {
80+ -moz-column-count : 6 ;
81+ -webkit-column-count : 6 ;
82+ column-count : 6 ;
83+ }
84+ }
85+ @media (max-width : 1000px ) {
86+ # art {
87+ -moz-column-count : 5 ;
88+ -webkit-column-count : 5 ;
89+ column-count : 5 ;
90+ }
91+ }
92+ @media (max-width : 800px ) {
93+ # art {
94+ -moz-column-count : 4 ;
95+ -webkit-column-count : 4 ;
96+ column-count : 4 ;
97+ }
98+ }
99+ @media (max-width : 400px ) {
100+ # art {
101+ -moz-column-count : 3 ;
102+ -webkit-column-count : 3 ;
103+ column-count : 3 ;
104+ }
105+ }
106+ .art-container {
107+ overflow : hidden;
108+ margin-bottom : 2px ;
109+
110+ }
111+ .art-effect {
112+ opacity : 1 ;
113+ transition : opacity 250ms ease-in-out, transform 250ms ease-in-out;
114+ transform-origin : center;
115+ }
116+
117+ .art-effect : hover {
118+ transform : scale (1.05 );
119+ opacity : 0.5 ;
120+ }
121+ </ style >
122+ < script >
123+
124+ document . addEventListener ( 'DOMContentLoaded' , ( event ) => {
125+ console . log ( "DOMContentLoaded" )
126+ var myList = document . querySelector ( '#art' ) ;
127+ for ( var i = myList . children . length ; i >= 0 ; i -- ) {
128+ myList . appendChild ( myList . children [ Math . random ( ) * i | 0 ] ) ;
129+ }
130+ } )
131+ </ script >
132+
133+
134+ < section id ="art ">
135+ {% for image in site.static_files %}
136+ {% if image.path contains 'img/art' %}
137+ < div class ="art-container ">
138+ < img src ="{{ site.baseurl }}{{ image.path }} " class ="art-effect " alt ="">
139+ </ div >
140+ {% endif %}
141+ {% endfor %}
142+ </ section >
143+
144+ <!--
145+ <div class="row">
146+
147+ {% for image in site.static_files %}
148+ {% if image.path contains 'img/media' %}
149+ <div class="col-lg-2 col-md-2 mb-4 wow slideInLeft" data-wow-duration="2s" data-wow-delay="5s"">
150+
151+ <img src="{{ site.baseurl }}{{ image.path }}" class="img-fluid mb-4" width="320px" alt="">
152+
153+ </div>
154+ {% endif %}
155+ {% endfor %}
156+
157+ </div>
158+ -->
159+
55160</ section >
0 commit comments