Skip to content

Commit 021c22e

Browse files
committed
Added a button
1 parent b0628b2 commit 021c22e

File tree

2 files changed

+57
-25
lines changed

2 files changed

+57
-25
lines changed

assets/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ document.querySelectorAll('nav a').forEach(link => {
99
});
1010

1111
const footer = document.querySelector('footer p');
12-
footer.innerHTML = ${new Date().getFullYear()} Joseph Lavoie`;
12+
footer.innerHTML = ${new Date().getFullYear()} Joseph Lavoie`;

assets/styles.css

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,109 @@
1-
1+
/* General Styling */
22
body {
33
font-family: 'Arial', sans-serif;
44
margin: 0;
55
padding: 0;
66
line-height: 1.6;
7-
color: #333;
8-
background: linear-gradient(to bottom, #f0f0f0, #d9d9d9);
7+
color: #2b2b2b;
8+
background: linear-gradient(to bottom, #f7faff, #eaf6f6);
99
}
10+
11+
/* Header */
1012
header {
11-
background: linear-gradient(90deg, #333, #555);
13+
background: #a2d9ff; /* Light blue */
1214
color: #fff;
1315
padding: 15px 20px;
1416
position: sticky;
1517
top: 0;
1618
z-index: 1000;
17-
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
19+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
20+
transition: all 0.3s ease-in-out;
21+
}
22+
23+
header:hover {
24+
background: #91c8eb; /* Slightly darker blue */
1825
}
26+
1927
nav ul {
2028
list-style: none;
2129
padding: 0;
2230
margin: 0;
2331
display: flex;
2432
justify-content: center;
2533
}
34+
2635
nav ul li {
2736
margin-right: 15px;
2837
}
38+
2939
nav ul li a {
30-
color: #fff;
40+
color: #333;
3141
text-decoration: none;
3242
font-weight: bold;
33-
transition: color 0.3s ease;
43+
padding: 5px 10px;
44+
border-radius: 5px;
45+
transition: background 0.3s ease, transform 0.2s ease;
3446
}
47+
3548
nav ul li a:hover {
36-
color: #ffa500;
49+
background: #c2f0e8; /* Light mint */
50+
transform: scale(1.05);
3751
}
52+
53+
/* Section Styling */
3854
section {
3955
padding: 40px 20px;
4056
margin: 20px auto;
4157
max-width: 900px;
4258
background: #fff;
4359
border-radius: 10px;
44-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
60+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
4561
}
62+
4663
h1, h2 {
4764
color: #333;
4865
text-align: center;
4966
}
50-
footer {
51-
text-align: center;
52-
padding: 15px 0;
53-
background: #333;
54-
color: #fff;
55-
}
56-
img {
57-
max-width: 100%;
58-
height: auto;
59-
border-radius: 10px;
60-
margin: 10px 0;
61-
}
6267

68+
/* Gallery */
6369
.gallery {
6470
display: grid;
6571
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
6672
gap: 20px;
6773
}
74+
6875
.gallery img {
6976
width: 100%;
7077
border-radius: 5px;
7178
transition: transform 0.3s ease, box-shadow 0.3s ease;
7279
cursor: pointer;
7380
}
81+
7482
.gallery img:hover {
75-
transform: scale(1.1);
76-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
77-
}
83+
transform: scale(1.05);
84+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
85+
}
86+
87+
/* Footer */
88+
footer {
89+
text-align: center;
90+
padding: 15px 0;
91+
background: #a2d9ff; /* Light blue */
92+
color: #fff;
93+
}
94+
95+
/* Buttons and Links */
96+
a, button {
97+
text-decoration: none;
98+
color: white;
99+
background: #4db8ff; /* Brighter blue */
100+
padding: 10px 20px;
101+
border-radius: 5px;
102+
cursor: pointer;
103+
transition: background 0.3s ease, transform 0.2s ease;
104+
}
105+
106+
a:hover, button:hover {
107+
background: #0099cc; /* Darker blue */
108+
transform: scale(1.05);
109+
}

0 commit comments

Comments
 (0)