Skip to content

Commit a0a77f0

Browse files
committed
initial commit
0 parents  commit a0a77f0

File tree

5 files changed

+155
-0
lines changed

5 files changed

+155
-0
lines changed

Diff for: README.markdown

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# MAC x Collab | HTML & CSS Basics
2+
3+
A Pen created on CodePen.io. Original URL: [https://codepen.io/anna-giang/pen/ExVbdja](https://codepen.io/anna-giang/pen/ExVbdja).
4+
5+

Diff for: license.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Copyright (c) 2020 by anna-giang (https://codepen.io/anna-giang/pen/ExVbdja)
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8+

Diff for: src/index.html

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<!DOCTYPE html>
2+
<!-- Trying to replicate: www.filtelescu.com/index.html -->
3+
<html>
4+
<head>
5+
</head>
6+
<script>
7+
</script>
8+
<body>
9+
10+
<h1 class="main_heading"><strong>About Anna</strong></h1>
11+
<p class="main_subheading">Created only in HTML and CSS</p>
12+
13+
<div class="social_media_icons">
14+
<div class="social_icon_img_div">
15+
<img class= "social_icon_img" id="facebook" src="https://image.flaticon.com/icons/svg/1051/1051360.svg" style="width:40px" onclick="link_to_social(this)">
16+
</div>
17+
<div class="social_icon_img_div">
18+
<img class= "social_icon_img" id="instagram" src="https://image.flaticon.com/icons/svg/1051/1051364.svg" style="width:40px" onclick="link_to_social(this)">
19+
</div>
20+
<div class="social_icon_img_div">
21+
<img class= "social_icon_img" id="twitter" src="https://image.flaticon.com/icons/svg/1051/1051382.svg" style="width:40px" onclick="link_to_social(this)">
22+
</div>
23+
</div>
24+
25+
<div class="img_txt">
26+
<h2 class="subheading">Spring Cherry Blossoms</h2>
27+
<p class="body_para">All sourced from: <a href=https://unsplash.com/>unsplash.com</a></p>
28+
</div>
29+
<div class="image">
30+
<img src="https://images.unsplash.com/photo-1522383225653-ed111181a951?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1955&q=80">
31+
</div>
32+
33+
<div class="img_txt">
34+
<h2 class="subheading">Forest at Sunset</h2>
35+
<p class="body_para">All sourced from: <a href=https://unsplash.com/>unsplash.com</a></p>
36+
</div>
37+
<div class="image">
38+
<img src="https://images.unsplash.com/photo-1523712999610-f77fbcfc3843?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80">
39+
</div>
40+
41+
42+
<div class="img_txt">
43+
<h2 class="subheading">Sunrise at Sea</h2>
44+
<p class="body_para">All sourced from: <a href=https://unsplash.com/>unsplash.com</a></p>
45+
</div>
46+
<div class="image">
47+
<img src="https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1053&q=80">
48+
</div>
49+
50+
</body>
51+
</html>
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+

Diff for: src/script.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
function link_to_social(element) {
2+
if (element.id === "facebook") {
3+
window.location.href = "https://facebook.com";
4+
}
5+
else if (element.id === "instagram") {
6+
window.location.href = "https://instagram.com";
7+
}
8+
else if (element.id === "twitter") {
9+
window.location.href = "https://twitter.com";
10+
}
11+
12+
}

Diff for: src/style.css

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600;700&display=swap');
2+
3+
4+
.main_heading {
5+
font-family: 'Open Sans', sans-serif;;
6+
font-weight: 700;
7+
font-size: 45px;
8+
margin-left: 160px;
9+
}
10+
11+
.subheading {
12+
font-family: 'Open Sans', sans-serif;
13+
font-weight: 600;
14+
font-size: 35px;
15+
}
16+
17+
.img_txt {
18+
width: 20%;
19+
float: left;
20+
padding-left: 160px;
21+
padding-right: 100px;
22+
}
23+
24+
.body_para {
25+
font-family: "Open Sans";
26+
font-weight: 600;
27+
}
28+
29+
.main_subheading {
30+
font-family: "Open Sans";
31+
font-weight: 600;
32+
margin-left: 160px;
33+
margin-bottom: 40px;
34+
35+
}
36+
37+
img {
38+
width: 45%;
39+
transition: opacity 0.3s;
40+
}
41+
42+
img:hover {
43+
opacity: 60%;
44+
}
45+
46+
47+
.image {
48+
padding-top: 30px;
49+
}
50+
51+
.social_media_icons {
52+
display: flex;
53+
flex-direction: row;
54+
margin-left: 160px;
55+
}
56+
57+
.social_icon_img_div {
58+
margin-right: 20px;
59+
}
60+
61+
.social_icon_img {
62+
transition: scale 0.2s;
63+
}
64+
65+
.social_icon_img:hover{
66+
transform: scale(1.5, 1.5);
67+
}

0 commit comments

Comments
 (0)