-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0ccc000
Showing
10 changed files
with
568 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Contact Me</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Contact Me</h1> | ||
<nav> | ||
<a href="index.php">Home</a> | | ||
<a href="education.php">Education</a> | | ||
<a href="work_experience.php">Work Experience</a> | | ||
<a href="skills.php">Skills</a> | | ||
<a href="projects.php">Projects</a> | | ||
<a href="contact.php">Contact</a> | ||
</nav> | ||
</header> | ||
|
||
<section> | ||
<h2>Get In Touch</h2> | ||
<form method="POST"> | ||
<label for="name">Name</label> | ||
<input type="text" id="name" name="name" required><br> | ||
|
||
<label for="email">Email</label> | ||
<input type="email" id="email" name="email" required><br> | ||
|
||
<label for="message">Message</label> | ||
<textarea id="message" name="message" required></textarea><br> | ||
|
||
<button type="submit">Send</button> | ||
</form> | ||
|
||
<?php if ($_SERVER["REQUEST_METHOD"] == "POST"): ?> | ||
<p>Your message was sent!</p> | ||
<?php endif; ?> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$servername = "sql100.infinityfree.com"; | ||
$username = "if0_37473814"; | ||
$password = "NKUNADAM"; | ||
$dbname = "if0_37473814_cv_website"; | ||
|
||
$conn = new mysqli($servername, $username, $password, $dbname); | ||
|
||
if ($conn->connect_error){ | ||
die("connection failed: " .$conn->connect_error); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
include 'db_config.php'; | ||
|
||
// Handle form submission to add a new education entry | ||
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['add'])) { | ||
$degree = $_POST['degree']; | ||
$institution = $_POST['institution']; | ||
$start_date = $_POST['start_date']; | ||
$end_date = $_POST['end_date']; | ||
|
||
$sql = "INSERT INTO education (degree, institution, start_date, end_date) | ||
VALUES ('$degree', '$institution', '$start_date', '$end_date')"; | ||
|
||
if ($conn->query($sql) === TRUE) { | ||
echo "New education added successfully"; | ||
} else { | ||
echo "Error: " . $sql . "<br>" . $conn->error; | ||
} | ||
} | ||
|
||
// Retrieve all education entries | ||
$sql = "SELECT * FROM education"; | ||
$result = $conn->query($sql); | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Education</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>My Education</h1> | ||
<nav> | ||
<a href="index.php">Home</a> | | ||
<a href="education.php">Education</a> | | ||
<a href="work_experience.php">Work Experience</a> | | ||
<a href="skills.php">Skills</a> | | ||
<a href="projects.php">Projects</a> | | ||
<a href="contact.php">Contact</a> | ||
</nav> | ||
</header> | ||
|
||
<section> | ||
<h2>Current Education</h2> | ||
<ul> | ||
<li><strong>Degree:</strong>BSc.Mathemetical Science</li> | ||
<li><strong>Institution:</strong>University of Limpopo</li> | ||
<li><strong>Year:</strong>first year</li> | ||
<h2>My Education History</h2> | ||
<ul> | ||
<li><strong>Education history:</strong> Matric </li> | ||
</ul> | ||
</section> | ||
</body> | ||
</html> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>My portfolio</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<!--Navigation Bar--> | ||
<nav> | ||
<ul> | ||
<li><a href="#HOME">HOME</a></li> | ||
<li><a href="#PERSONAL-INFO">PERSONAL-INFO</a></li> | ||
<li><a href="#EDUCATION">EDUCATION</a></li> | ||
<li><a href="#WORK-EXPERIENCE">WORK-EXPERIENCE</a></li> | ||
<li><a href="#SKILLS">SKILLS</a></li> | ||
<li><a href="#PROJECTS">PROJECTS</a></li> | ||
<li><a href="#CONTACT">CONTACT</a></li> | ||
</ul> | ||
</nav> | ||
|
||
<!-- Home Section --> | ||
<section id="HOME"> | ||
<h1> <span>W</span>ELCOME TO MY PORTFOLIO</h1> | ||
<p>Hello, i am <span>NKUNA DAN</span> and this is my professinal portfolio.</p> | ||
</section> | ||
|
||
<!-- PERSONAL INFO SECTION --> | ||
<section id="PERSONAL-INFO"> | ||
<h2>PERSONAL INFO</h2> | ||
<p><strong>Name:</strong> Nkuna dan</p> | ||
<p><strong>Email:</strong> hlayisanidan01@gmail.com</p> | ||
<p><strong>Phone:</strong> 078 602 6763</p> | ||
<p><strong>Bio:</strong> I am first student doing computer science at university of Limpopo</p> | ||
</section> | ||
|
||
<!-- Educatin sSEction--> | ||
<section id="EDUCATION"> | ||
<h2>EDUCATION</h2> | ||
<ul> | ||
<li><strong>Degree:</strong> BSc. Mathematical Sciences</li> | ||
<li><strong>institution:</strong> University of Limpopo</li> | ||
<li><strong>Year:</strong> First year</li> | ||
</ul> | ||
</section> | ||
|
||
<!--Work Experience Section--> | ||
<section id="WORK-EXPERIENCE"> | ||
<h2>WORK-EXPERIENCE</h2> | ||
<ul> | ||
<li><strong>Experience:</strong> I do not have work experience because i am still a student</li> | ||
</ul> | ||
</section> | ||
|
||
<!-- Skills Sections--> | ||
<section id="SKILLS"> | ||
<h2>SKILLS</h2> | ||
<ul> | ||
<li>HTML, CSS</li> | ||
<li>C++</li> | ||
</ul> | ||
</section> | ||
|
||
<!--Projects Section --> | ||
<section id="PROJECTS"> | ||
<h2>PROJECTS</h2> | ||
<ul> | ||
<li><strong>Project Name:</strong>Website project</li> | ||
<li><strong>Description:</strong>Create a dynamic website for your curriculum vitae(CV)</li> | ||
</ul> | ||
</section> | ||
|
||
<!-- Contact Section --> | ||
<section id="Contact"> | ||
<h2> Contact me</h2> | ||
<form action="/submit-form" method="POST"> | ||
<label for="name">Name:</label> | ||
<input type="text" id="name" name="name" required> | ||
|
||
<label for="email">Email:</label> | ||
<input type="email" id="email" name="email" required> | ||
|
||
<label for="message">Message:</label> | ||
<textarea id="message" name="message" required></textarea> | ||
|
||
<button type="submit">Submit</button> | ||
</form> | ||
|
||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>My CV Website</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Welcome to My CV Website</h1> | ||
<nav> | ||
<a href="index.php">Home</a> | | ||
<a href="education.php">Education</a> | | ||
<a href="work_experience.php">Work Experience</a> | | ||
<a href="skills.php">Skills</a> | | ||
<a href="projects.php">Projects</a> | | ||
<a href="contact.php">Contact</a> | ||
</nav> | ||
</header> | ||
<section> | ||
<h2>About Me</h2> | ||
<p>This is the homepage of my online CV website. Explore my education, skills, work_experience, projects and contact me through the navigation above.</p> | ||
<section id="PERSONAL-INFO"> | ||
<h2>PERSONAL INFO</h2> | ||
<p><strong>Name:</strong> Nkuna dan</p> | ||
<p><strong>Email:</strong> hlayisanidan01@gmail.com</p> | ||
<p><strong>Phone:</strong> 078 602 6763</p> | ||
<p><strong>Bio:</strong> I am first student doing computer science at university of Limpopo</p> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
include 'db_config.php'; | ||
|
||
// Handle form submission to add a new project | ||
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['add'])) { | ||
$project_title = $_POST['project_title']; | ||
$description = $_POST['description']; | ||
|
||
$sql = "INSERT INTO projects (project_title, description) | ||
VALUES ('$project_title', '$description')"; | ||
|
||
if ($conn->query($sql) === TRUE) { | ||
echo "New project added successfully"; | ||
} else { | ||
echo "Error: " . $sql . "<br>" . $conn->error; | ||
} | ||
} | ||
|
||
// Retrieve all projects | ||
$sql = "SELECT * FROM projects"; | ||
$result = $conn->query($sql); | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Projects</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>My Projects</h1> | ||
<nav> | ||
<a href="index.php">Home</a> | | ||
<a href="education.php">Education</a> | | ||
<a href="work_experience.php">Work Experience</a> | | ||
<a href="skills.php">Skills</a> | | ||
<a href="projects.php">Projects</a> | | ||
<a href="contact.php">Contact</a> | ||
</nav> | ||
</header> | ||
|
||
<section> | ||
<h2>Project</h2> | ||
<ul> | ||
<li><strong>Project Name:</strong>Website project</li> | ||
<li><strong>Description:</strong>Create a dynamic website for your curriculum vitae(CV)</li> | ||
</ul> | ||
|
||
<h2>My Projects</h2> | ||
<ul> | ||
<?php while($row = $result->fetch_assoc()): ?> | ||
<li> | ||
<strong><?php echo $row['project_title']; ?></strong><br> | ||
<?php echo $row['description']; ?> | ||
</li> | ||
<?php endwhile; ?> | ||
</ul> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
include 'db_config.php'; | ||
|
||
// Handle form submission to add a new skill | ||
if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['add'])) { | ||
$skill_name = $_POST['skill_name']; | ||
$proficiency = $_POST['proficiency']; | ||
|
||
$sql = "INSERT INTO skills (skill_name, proficiency) | ||
VALUES ('$skill_name', '$proficiency')"; | ||
|
||
if ($conn->query($sql) === TRUE) { | ||
echo "New skill added successfully"; | ||
} else { | ||
echo "Error: " . $sql . "<br>" . $conn->error; | ||
} | ||
} | ||
|
||
// Retrieve all skills | ||
$sql = "SELECT * FROM skills"; | ||
$result = $conn->query($sql); | ||
?> | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Skills</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>My Skills</h1> | ||
<nav> | ||
<a href="index.php">Home</a> | | ||
<a href="education.php">Education</a> | | ||
<a href="work_experience.php">Work Experience</a> | | ||
<a href="skills.php">Skills</a> | | ||
<a href="projects.php">Projects</a> | | ||
<a href="contact.php">Contact</a> | ||
</nav> | ||
</header> | ||
|
||
<section> | ||
<h2>Add New Skill</h2> | ||
<ul> | ||
<li>HTML, CSS</li> | ||
<li>C++</li> | ||
</ul> | ||
|
||
</section> | ||
</body> | ||
</html> |
Oops, something went wrong.