Skip to content

Commit 3d526c3

Browse files
committed
prettier code
1 parent ccd5b97 commit 3d526c3

File tree

3 files changed

+71
-57
lines changed

3 files changed

+71
-57
lines changed

index.html

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Deep Compare</title>
8-
</head>
9-
<body>
8+
</head>
9+
<body>
1010
<div class="head">
11-
<h1 class="header">DEEP COMPARE</h1>
12-
<p class="sub-head">Compare the Deep Field photos of the Universe</p>
11+
<h1 class="header">DEEP COMPARE</h1>
12+
<p class="sub-head">Compare the Deep Field photos of the Universe</p>
1313
</div>
1414

1515
<div class="juxtapose" id="juxtapose-wrapper" data-startingposition="75%">
16-
<img data-hubble src="img/hubble/deep_field.png" alt="Hubble Deep Field" data-label="Hubble, 2004" data-credit="NASA, ESA, CSA, and STScI">
17-
<img data-webb src="img/webb/deep_field(1).png" alt="Webb Deep Field" data-label="Webb, 2022">
16+
<img
17+
data-hubble
18+
src="img/hubble/deep_field.png"
19+
alt="Hubble Deep Field"
20+
data-label="Hubble, 2004"
21+
data-credit="NASA, ESA, CSA, and STScI"
22+
/>
23+
<img
24+
data-webb
25+
src="img/webb/deep_field(1).png"
26+
alt="Webb Deep Field"
27+
data-label="Webb, 2022"
28+
/>
1829
</div>
1930
<script src="https://cdn.knightlab.com/libs/juxtapose/latest/js/juxtapose.min.js"></script>
20-
<link rel="stylesheet" href="https://cdn.knightlab.com/libs/juxtapose/latest/css/juxtapose.css">
21-
<link rel="stylesheet" href="styles.css">
22-
</body>
23-
</html>
31+
<link
32+
rel="stylesheet"
33+
href="https://cdn.knightlab.com/libs/juxtapose/latest/css/juxtapose.css"
34+
/>
35+
<link rel="stylesheet" href="styles.css" />
36+
</body>
37+
</html>

main.js

Whitespace-only changes.

styles.css

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
11
body {
2-
box-sizing: border-box;
3-
padding: 0;
4-
margin: 0;
5-
background-color: rgb(30, 30, 38);
6-
color:rgb(183, 183, 205);
7-
font-size: 1rem;
8-
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
9-
display: flex;
10-
flex-direction: column;
11-
place-items: center;
12-
text-align: center;
13-
position: relative;
14-
overflow-x: hidden;
2+
box-sizing: border-box;
3+
padding: 0;
4+
margin: 0;
5+
background-color: rgb(30, 30, 38);
6+
color: rgb(183, 183, 205);
7+
font-size: 1rem;
8+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
9+
display: flex;
10+
flex-direction: column;
11+
place-items: center;
12+
text-align: center;
13+
position: relative;
14+
overflow-x: hidden;
1515
}
1616

1717
.head {
18-
position: absolute;
19-
top: 1rem;
20-
right: -50%;
21-
left: -50%;
22-
z-index: 10;
23-
opacity: .25;
18+
position: absolute;
19+
top: 1rem;
20+
right: -50%;
21+
left: -50%;
22+
z-index: 10;
23+
opacity: 0.25;
2424
}
2525

2626
.head:hover {
27-
opacity: .05;
27+
opacity: 0.05;
2828
}
2929

3030
h1 {
31-
font-size: 2rem;
31+
font-size: 2rem;
3232
}
3333

3434
p {
35-
font-size: .5rem;
35+
font-size: 0.5rem;
3636
}
3737

38-
@media screen and (min-width:960px) {
39-
[data-hubble] {
40-
content: url('img/hubble/deep_field_2800.jpg');
41-
}
42-
43-
[data-webb] {
44-
content: url('img/webb/deep_field_2800\(2\).jpg');
45-
}
46-
47-
.head {
48-
opacity: .75;
49-
}
50-
51-
h1 {
52-
font-size: 3rem;
53-
}
54-
55-
p {
56-
font-size: .9rem;
57-
}
58-
}
38+
@media screen and (min-width: 960px) {
39+
[data-hubble] {
40+
content: url('img/hubble/deep_field_2800.jpg');
41+
}
42+
43+
[data-webb] {
44+
content: url('img/webb/deep_field_2800\(2\).jpg');
45+
}
46+
47+
.head {
48+
opacity: 0.75;
49+
}
50+
51+
h1 {
52+
font-size: 3rem;
53+
}
54+
55+
p {
56+
font-size: 0.9rem;
57+
}
58+
}

0 commit comments

Comments
 (0)