-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportfolio.html
More file actions
95 lines (95 loc) · 2.96 KB
/
portfolio.html
File metadata and controls
95 lines (95 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE HTML>
<html>
<head>
<title>Kaelyn's First Website</title>
<style type="text/css">
body {
background: rgb(26, 53, 79);
color: rgb(45, 45, 45);
padding: 10px;
font-family: arial;
}
header {
font-size: 1.5em;
font-weight: bold;
}
h1 {
margin: 10px;
}
#all-contents{
max-width: 800px;
margin: auto;
}
/*Navigation Menu */
nav{
background: rgb(89, 27, 44);
margin: 0 auto;
display: flex;
padding: 10px;
}
nav header {
display: flex;
align-items: center;
color: rgb(255,255,255);
flex: 1;
}
nav ul{
list-style-image: none;
}
nav li{
display: inline-block;
padding: 0 10px;
}
nav a{
text-decoration: none;
color: #fff;
}
/*The main container area beneath the menu */
main{
background: rgb(242, 171, 190);
display: flex;
}
.content{
flex: 1;
padding: 15px;
}
#portfolio {
list-style-type: none;
padding-left: 0;
}
#portfolio li{
background: #fff;
padding: 10px;
border-radius: 10px;
margin-bottom: 10px;
}
#portfolio li: hover{
background: #eee;
}
#portfolio a {
text-decoration: none;
color: #454545;
}
</style>
</head>
<body>
<div id = "all-contents">
<nav>
<header> Kaelyn's First Website</header>
<ul>
<li><a href= "index.html">Home</a></li>
<li><a href="portfolio.html">Portfolio</a></li>
<li><a href="studies.html">Studies</a></li>
</ul>
</nav>
<main>
<div class="content">`
<h1>Portfolio</h1>
<ul id="portfolio" class="portfolio"></ul>
</div>
</main>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script id="portfolioScript">$(document).ready(function() {$.getJSON('projects/projects.json').then(function(data) { data.projects.forEach(function(project){ $('#portfolio').append('<li><a href="projects/' + project.name + '/">' + project.title + ' : ' + project.description + '</a></li>'); }); }); });</script>
</body>
</html>