This commit is contained in:
dzikafoczka 2025-01-07 19:30:29 +01:00
parent f09b743339
commit a7a72ca03e
2 changed files with 78 additions and 0 deletions

18
README.md Normal file
View File

@ -0,0 +1,18 @@
aws s3 sync . s3://s464863-bucket --content-type "text/html" --exclude "*" --include "*.html"
-> text/html
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::s464863-bucket/*"
}
]
}
```

View File

@ -6,6 +6,66 @@
<title>Upload PDF</title>
<link rel="stylesheet" href="styles.css">
</head>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
text-align: center;
width: 100%;
max-width: 400px;
}
h1 {
margin-bottom: 20px;
}
form {
display: flex;
flex-direction: column;
}
input[type="file"] {
margin-bottom: 10px;
padding: 8px;
}
button {
padding: 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
border-radius: 4px;
}
button:hover {
background-color: #45a049;
}
#responseMessage {
margin-top: 20px;
font-size: 16px;
}
</style>
<body>
<div class="container">
<h1>Prześlij plik PDF</h1>