Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Nkuna-Hlayisani authored Oct 8, 2024
0 parents commit 0ccc000
Show file tree
Hide file tree
Showing 10 changed files with 568 additions and 0 deletions.
41 changes: 41 additions & 0 deletions contact.php
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>
11 changes: 11 additions & 0 deletions db_config.php
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);
}
58 changes: 58 additions & 0 deletions education.php
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 added image
Empty file.
92 changes: 92 additions & 0 deletions index.html
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>
32 changes: 32 additions & 0 deletions index.php
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>
62 changes: 62 additions & 0 deletions projects.php
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>
53 changes: 53 additions & 0 deletions skills.php
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>
Loading

0 comments on commit 0ccc000

Please sign in to comment.