changed php links for me

master
ada 3 months ago
parent 6708dfc2c5
commit b82f4a8001

@ -1,7 +1,11 @@
body {
background-color: rgb(53, 67, 196);
min-height: 100vH;
min-height: 100vh;
font-family: 'Redaction-Regular', serif;
padding: 0.2rem;
display: flex;
justify-content: center;
align-items: center;
}
.container {
@ -39,33 +43,52 @@ body {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 20px;
align-items: center;
}
.photos, img {
height: 250px;
.img-container {
flex: 0 0 250px;
display: flex;
flex-direction: column;
align-items: center;
margin: 10px;
margin-top: 10px;
flex: auto;
text-decoration: none;
}
.img-container {
position: relative;
margin: 10px;
.img-container:nth-child(2) {
order: 3;
}
.img-container img {
display: block;
.img {
height: 250px;
width: auto;
}
.img-container .caption {
position: absolute;
left: 0;
width: 100%;
text-align: center;
.caption {
display: flex;
align-items: center;
justify-content: center;
padding-top: 1rem;
font-size: 2rem;
font-family: 'Redaction-Regular';
color: #FCF6F1ff;
font-size: 1.5rem;
opacity: 0;
transition: opacity 0.3s ease;
}
.img-container:hover .caption {
opacity: 1;
}
.caption {
display: flex;
align-items: center;
justify-content: center;
padding-top: 1rem;
font-size: 2rem;
font-family: 'Redaction-Regular';
color: #FCF6F1ff;
opacity: 0;
transition: opacity 0.3s ease;
}
@ -74,8 +97,25 @@ body {
opacity: 1;
}
/* Ensures the second image is vertically aligned */
.img2 {
margin-top: 250px;
margin-top: 10px;
}
.caption {
display: flex;
align-items: center;
justify-content: center;
padding-top: 1rem;
font-size: 2rem;
font-family: 'Redaction-Regular';
color: #FCF6F1ff;
opacity: 0;
transition: opacity 0.3s ease;
}
.img-container:hover .caption {
opacity: 1;
}
.letterBox {

@ -25,20 +25,20 @@
<div class="subtitle">a play by ada</div>
<div class="photos">
<div class="img-container">
<a href="sunrise/sunrise.html"><img src="./photos/sunrise.webp" class="img1"></a>
<a href="sunrise/sunrise.html" class="img-container">
<img src="./photos/sunrise.webp" class="img" alt="Sunrise">
<div class="caption">act one</div>
</div>
<div class="img-container">
<a href="hermit/hermit.html"><img src="./photos/hand.webp" class="img2"></a>
</a>
<a href="hermit/hermit.html" class="img-container">
<img src="./photos/hand.webp" class="img" alt="Hand">
<div class="caption">act two</div>
</div>
<div class="img-container">
<a href="pie/pie.html"><img src="./photos/pie.webp" class="img3"></a>
</a>
<a href="pie/pie.html" class="img-container">
<img src="./photos/pie.webp" class="img" alt="Pie">
<div class="caption">act three</div>
</div>
</a>
</div>
<div id="about">
<div onclick="openLetter()"><img id="about" src="./photos/chicken.PNG" alt="about"></div>

@ -34,7 +34,7 @@ getdata();
//write
async function writeData(post_number){
var url = 'write.php?post='+ post_number;
var url = './write.php?post='+ post_number;
let response = await fetch(url);
console.log(response);
console.log(response.text());
@ -62,7 +62,7 @@ async function writePost(){
var post = document.getElementById('username2').value;
var name = document.getElementById('user-message2').value;
console.log(post,name);
var url = 'writepost.php?post='+ post + '&name=' + name;
var url = './writepost.php?post='+ post + '&name=' + name;
let response = await fetch(url);
console.log(response);
console.log(response.text());

Loading…
Cancel
Save