Skip to content

Commit dd19734

Browse files
committed
add finished photo ninja and screenshot
1 parent 47da7c6 commit dd19734

File tree

6 files changed

+60
-13
lines changed

6 files changed

+60
-13
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ Based on [Bulma CSS Tutorial](https://www.youtube.com/playlist?list=PL4cUxeGkcC9
6464

6565
A photography portfolio website to learn Materialize basics.
6666

67-
<!-- [See Demo on CodePen](https://codepen.io/solygambas/full/KKWzKxw) -->
67+
[See Demo on CodePen](https://codepen.io/solygambas/full/poebvRy)
6868

6969
[See photo-ninja folder](https://github.com/solygambas/html-css-frameworks/tree/master/photo-ninja)
7070

71-
<!-- <p align="center">
71+
<p align="center">
7272
<a href="https://github.com/solygambas/html-css-frameworks/tree/master/photo-ninja">
73-
<img src="photo-ninja/screenshot.png">
73+
<img src="photo-ninja/screenshot.jpg">
7474
</a>
75-
</p> -->
75+
</p>
7676

7777
### Features
7878

photo-ninja/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
A photography portfolio website to learn Materialize basics.
44

5-
<!-- [See Demo on CodePen](https://codepen.io/solygambas/full/KKWzKxw) -->
5+
[See Demo on CodePen](https://codepen.io/solygambas/full/poebvRy)
66

77
<p align="center">
8-
<!-- <img src="screenshot.png"> -->
8+
<img src="screenshot.jpg">
99
</p>
1010

1111
## Features

photo-ninja/index.html

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,52 @@
3131
><i class="material-icons">menu</i></a
3232
>
3333
<ul class="right hide-on-med-and-down">
34-
<li><a href="#photos">Portfolio</a></li>
34+
<li><a href="#photos">Photos</a></li>
3535
<li><a href="#services">Services</a></li>
3636
<li><a href="#contact">Contact</a></li>
3737
</ul>
3838
<ul class="sidenav grey lighten-2" id="mobile-menu">
39-
<li><a href="#photos">Portfolio</a></li>
39+
<li><a href="#photos">Photos</a></li>
4040
<li><a href="#services">Services</a></li>
4141
<li><a href="#contact">Contact</a></li>
4242
</ul>
4343
</div>
4444
</nav>
4545
</header>
46+
<!-- tooltips -->
47+
<aside class="hide-on-med-and-down">
48+
<ul>
49+
<li>
50+
<a
51+
href="#"
52+
class="tooltipped btn-floating btn-small deep-orange lighten-2"
53+
data-tooltip="Instagram"
54+
data-position="left"
55+
><i class="fab fa-instagram"></i
56+
></a>
57+
</li>
58+
<li>
59+
<a
60+
href="#"
61+
class="tooltipped btn-floating btn-small deep-orange lighten-2"
62+
data-tooltip="Facebook"
63+
data-position="left"
64+
><i class="fab fa-facebook"></i
65+
></a>
66+
</li>
67+
<li>
68+
<a
69+
href="#"
70+
class="tooltipped btn-floating btn-small deep-orange lighten-2"
71+
data-tooltip="Twitter"
72+
data-position="left"
73+
><i class="fab fa-twitter"></i
74+
></a>
75+
</li>
76+
</ul>
77+
</aside>
4678
<!-- photo / grid -->
47-
<section class="container section" id="photos">
79+
<section class="container section scrollspy" id="photos">
4880
<div class="row">
4981
<div class="col s12 l4">
5082
<img
@@ -108,7 +140,7 @@ <h2 class="grey-text text-darken-4">Nature</h2>
108140
</div>
109141
</section>
110142
<!-- services / tabs -->
111-
<section class="container section" id="services">
143+
<section class="container section scrollspy" id="services">
112144
<div class="row">
113145
<div class="col s12 l4">
114146
<h2 class="grey-text text-darken-4">What I do...</h2>
@@ -162,7 +194,7 @@ <h2 class="grey-text text-darken-4">What I do...</h2>
162194
</div>
163195
</section>
164196
<!-- contact form -->
165-
<section class="container section" id="contact">
197+
<section class="container section scrollspy" id="contact">
166198
<div class="row">
167199
<div class="col s12 l5">
168200
<h2 class="grey-text text-darken-4">Get In Touch</h2>

photo-ninja/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ const lightboxes = document.querySelectorAll(".materialboxed");
33
const parallaxes = document.querySelectorAll(".parallax");
44
const tabs = document.querySelector(".tabs");
55
const datepicker = document.querySelector(".datepicker");
6+
const tooltips = document.querySelectorAll(".tooltipped");
7+
const scrollspies = document.querySelectorAll(".scrollspy");
68

79
M.Sidenav.init(sidenav);
810
M.Materialbox.init(lightboxes);
911
M.Parallax.init(parallaxes);
1012
M.Tabs.init(tabs);
1113
M.Datepicker.init(datepicker, { disableWeekends: true });
14+
M.Tooltip.init(tooltips);
15+
M.ScrollSpy.init(scrollspies);

photo-ninja/screenshot.jpg

160 KB
Loading

photo-ninja/style.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
header {
2-
background: url(https://images.unsplash.com/photo-1542940171-c8e6ffb7fc99?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80)
2+
background: url(https://images.unsplash.com/photo-1542940171-c8e6ffb7fc99?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=2400&q=80)
33
top / cover;
4-
/* background: url(https://i.ibb.co/TbFxMgn/man-min.jpg) top / cover; */
54
min-height: 100vh;
65
}
76

7+
aside {
8+
position: absolute;
9+
bottom: 2rem;
10+
right: 2rem;
11+
}
12+
13+
aside ul {
14+
display: flex;
15+
flex-direction: column;
16+
gap: 1rem;
17+
}
18+
819
.section {
920
padding: 4vw 0;
1021
}

0 commit comments

Comments
 (0)