Skip to content

Commit cde699c

Browse files
Updated My_Apps to display a link to my Chem Visualizer
1 parent 2224a1c commit cde699c

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

My_Apps.html

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
text-align: center;
1818
color: #333;
1919
font-size: 36px;
20+
margin-top: 20px; /* Added margin to separate title from navbar */
21+
margin-bottom: 20px; /* Reduced bottom margin for better balance */
2022
}
2123

2224
.content {
@@ -32,6 +34,10 @@
3234
text-decoration: none;
3335
font-size: 18px;
3436
border-radius: 5px;
37+
text-align: center; /* Center the text and image */
38+
transition: background-color 0.3s ease; /* Smooth hover transition */
39+
max-width: 400px; /* Limit the width of the button */
40+
margin: 0px auto; /* Center the button and provide margin */
3541
}
3642

3743
a:hover {
@@ -45,12 +51,25 @@
4551
margin-top: 20px;
4652
}
4753

48-
/* Make the image bigger */
54+
/* Make the image and text fit together */
55+
.image-link {
56+
display: flex;
57+
flex-direction: column; /* Stack the text and image vertically */
58+
align-items: center; /* Center align both image and text */
59+
justify-content: center;
60+
}
61+
4962
.image-link img {
50-
width: 600px;
63+
width: 100%; /* Adjust image width */
64+
max-width: 420px; /* Increase image size by 40% (previously 300px) */
5165
height: auto;
5266
cursor: pointer;
53-
max-width: 100%; /* Ensure image doesn't overflow */
67+
}
68+
69+
.image-link span {
70+
font-size: 18px;
71+
color: white;
72+
margin-top: 10px; /* Add space between image and text */
5473
}
5574

5675
/* Mobile Responsiveness */
@@ -105,10 +124,16 @@
105124

106125
<h1>Welcome to My Apps</h1>
107126
<div class="content">
108-
<p><a href="minerals.html" target="_blank">Mineral locator for the state of Michigan</a></p>
109-
<!-- Image link to Mineral Finder -->
127+
<!-- Single button for Mineral Locator -->
110128
<a href="minerals.html" class="image-link" target="_blank">
111129
<img src="Mineral Finder.png" alt="Mineral Finder">
130+
<span>Mineral Locator for Michigan</span>
131+
</a>
132+
133+
<!-- Single button for Chemical Visualizer -->
134+
<a href="ChemicalVisualization.HTML" class="image-link" target="_blank">
135+
<img src="Chemical Visualizer.png" alt="Chemical Visualizer">
136+
<span>Chemical Visualizer</span>
112137
</a>
113138
</div>
114139
</body>

0 commit comments

Comments
 (0)