-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·94 lines (82 loc) · 3 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
error_reporting(0);
session_start();
$userName = $_SESSION["firstName"];
$userId = $_SESSION["userId"];
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/component/header.php';
require_once __DIR__ . '/component/head.php';
require_once __DIR__ . '/component/footer.php';
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?= render_head("FT - Home");?>
</head>
<body>
<div class="a-index-wrapper main-page">
<?= render_header($userName); ?>
<div class="hero-bg">
<section class="main-hero">
<h1>Health Goals,<br> Tracked & Thrived</h1>
</section>
</div>
<main class="main-page">
<section class="main-cards">
<div class="main-card">
<img src="./public/img/recipe-hero.jpg" alt="">
<div class="main-card-content">
<h2>
Recipes
</h2>
<p>
Fuel your body with goodness while savoring the flavors — because eating healthy
doesn't mean
sacrificing
taste!
</p>
<a href=<?= $_ENV["PUBLIC_URL"].'/recipes.php'?> class="button">
Find out more
</a>
</div>
</div>
<div class="main-card">
<img src="./public/img/todo-hero.jpg" alt="">
<div class="main-card-content">
<h2>
Todo
</h2>
<p>
Enhance your lifestyle with our interactive todo page! Add exercise tasks, embrace physical
activity, and
elevate your well-being for a healthier, happier you!
</p>
<a href="#" class="button">
Find out more
</a>
</div>
</div>
<div class="main-card">
<img src="./public/img/fitness-hero.jpg" alt="">
<div class="main-card-content">
<h2>
Fitness Tracker
</h2>
<p>
Unlock the path to success and witness your progress as you strive towards a healthier and
more fulfilling
life.
</p>
<a href="#" class="button">
Coming soon...
</a>
</div>
</div>
</section>
</main>
<?= render_footer(); ?>
</div>
</body>
</html>