-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_MiniProject.html
More file actions
128 lines (106 loc) · 3.38 KB
/
index_MiniProject.html
File metadata and controls
128 lines (106 loc) · 3.38 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Flex Box Demo</title>
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
<link rel="stylesheet" href="fontawesome/css/all.css">
<style>
body{
font-family: 'Lato', sans-serif;
}
.container {
display: flex;
}
.container .item {
display: flex;
flex: 1;
justify-content: space-between;
border: 1px solid grey;
border-radius: 5px;
margin: 10px;
}
.container .item .content {
display: flex;
justify-content: space-between;
}
.container .item .content .metadata {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 20px;
}
.container .item .content .metadata .title{
margin: 0px;
}
.container .item .btn-group {
display:flex;
align-items: center;
}
.container .item .btn-group .button {
height: 100%;
width: 42px;
display: flex;
align-items: center;
justify-content: center;
font-size: 2em;
}
.container .item .btn-group .button a {
color: lightseagreen;
text-decoration: none;
}
.container .item .btn-group .button:hover {
background-color: lightslategray;
cursor: pointer;
}
.container .item .btn-group .button:hover a{
color: white;
}
.item.featured {
flex: auto;
}
.item.associated {
flex: initial;
}
</style>
</head>
<body>
<div class="container">
<div class="item featured">
<div class="content">
<img src="https://d32xj74kbqkoqn.cloudfront.net/uploads/campsite/campsite_image/129/dissecting-rails-icon.jpg" alt="First Image" width="200px" height="120px">
<div class="metadata">
<h1 class="title">My amazing title</h1>
<h3>And a subtitle</h3>
</div>
</div>
<div class="btn-group">
<div class="button">
<a href="#"><i class="fas fa-plus-circle"></i></a>
</div>
<div class="button">
<a href="#"><i class="fas fa-times-circle"></i></a>
</div>
</div>
</div>
<div class="item associated">
<div class="content">
<img src="https://d32xj74kbqkoqn.cloudfront.net/uploads/guide/video_image/43/foundations-video-thumb.jpg" alt="Item Associated" width="200px" height="120px">
<div class="metadata">
<h1 class="title">Another amazing post</h1>
</div>
</div>
<div class="btn-group">
<div class="button">
<a href="#"><i class="fas fa-plus-circle"></i></a>
</div>
<div class="button">
<a href="#"><i class="fas fa-times-circle"></i></a>
</div>
</div>
</div>
</div>
</body>
</html>