PerlaHM commited on
Commit
e3333a0
·
1 Parent(s): 3c213a1

Estructura de pagina

Browse files
Files changed (6) hide show
  1. DOCKERFILE +3 -5
  2. README.md +1 -0
  3. app/constantes.php +11 -0
  4. app/inc/footer.php +3 -0
  5. app/inc/header.php +34 -0
  6. app/variables.php +10 -0
DOCKERFILE CHANGED
@@ -1,7 +1,5 @@
1
  FROM php:8.2-cli
2
-
3
- COPY ./app/ ./app/
4
-
5
  EXPOSE 7860
6
- WORKDIR app
7
- CMD ["php", "-S" , "0.0.0.0:7860"]
 
 
1
  FROM php:8.2-cli
 
 
 
2
  EXPOSE 7860
3
+ COPY app app
4
+ WORKDIR /app
5
+ CMD ["php", "-S","0.0.0.0:7860"]
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: yellow
6
  sdk: docker
7
  pinned: false
8
  license: cc-by-nc-nd-4.0
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
6
  sdk: docker
7
  pinned: false
8
  license: cc-by-nc-nd-4.0
9
+ app-port: 7860
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app/constantes.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html
3
+ <body>
4
+
5
+ <?php
6
+ $txt="My second PHP SCRIPT!";
7
+
8
+ echo $txt;
9
+ ?>
10
+ </body>
11
+ </html>
app/inc/footer.php ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
2
+ </body>
3
+ </html>
app/inc/header.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Bootstrap demo</title>
7
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
8
+ </head>
9
+ <body>
10
+ <nav class="navbar navbar-expand-lg bg-body-tertiary">
11
+ <div class="container-fluid">
12
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
13
+ <span class="navbar-toggler-icon"></span>
14
+ </button>
15
+ <div class="collapse navbar-collapse" id="navbarTogglerDemo01">
16
+ <a class="navbar-brand" href="#">Hidden brand</a>
17
+ <ul class="navbar-nav me-auto mb-2 mb-lg-0">
18
+ <li class="nav-item">
19
+ <a class="nav-link active" aria-current="page" href="#">Home</a>
20
+ </li>
21
+ <li class="nav-item">
22
+ <a class="nav-link" href="#">Link</a>
23
+ </li>
24
+ <li class="nav-item">
25
+ <a class="nav-link disabled" aria-disabled="true">Disabled</a>
26
+ </li>
27
+ </ul>
28
+ <form class="d-flex" role="search">
29
+ <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
30
+ <button class="btn btn-outline-success" type="submit">Search</button>
31
+ </form>
32
+ </div>
33
+ </div>
34
+ </nav>
app/variables.php CHANGED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <body>
4
+ <?php
5
+
6
+ define("MESSAGE" "Happy Learning!");
7
+ echo MESSAGE
8
+ ?>
9
+ </body>
10
+ </html>