anycoder-be686757 / index.html
samymoneer's picture
Upload folder using huggingface_hub
898518b verified
Raw History Blame Contribute Delete
22.8 kB
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>موقع البروفايل الشخصي</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
:root {
--primary-color: #4a6fa5;
--secondary-color: #166088;
--accent-color: #4fc3f7;
--text-color: #333;
--light-color: #f8f9fa;
--dark-color: #343a40;
--success-color: #28a745;
--danger-color: #dc3545;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f5f5f5;
color: var(--text-color);
line-height: 1.6;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header Styles */
header {
background-color: var(--primary-color);
color: white;
padding: 15px 0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.header-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 24px;
font-weight: bold;
}
.logo a {
color: white;
text-decoration: none;
}
.auth-buttons {
display: flex;
gap: 10px;
}
.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
transition: all 0.3s ease;
}
.btn-primary {
background-color: white;
color: var(--primary-color);
}
.btn-outline {
background-color: transparent;
color: white;
border: 1px solid white;
}
.btn:hover {
opacity: 0.9;
transform: translateY(-2px);
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 60px 0;
text-align: center;
}
.hero h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
.hero p {
font-size: 1.2rem;
max-width: 800px;
margin: 0 auto 30px;
}
/* Auth Forms */
.auth-forms {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 1000;
justify-content: center;
align-items: center;
}
.auth-form {
background-color: white;
padding: 30px;
border-radius: 8px;
width: 100%;
max-width: 400px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
position: relative;
}
.close-btn {
position: absolute;
top: 10px;
left: 10px;
font-size: 24px;
cursor: pointer;
color: var(--text-color);
}
.auth-form h2 {
text-align: center;
margin-bottom: 20px;
color: var(--primary-color);
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.form-control {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
.form-control:focus {
outline: none;
border-color: var(--primary-color);
}
.submit-btn {
width: 100%;
padding: 12px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.submit-btn:hover {
background-color: var(--secondary-color);
}
.form-footer {
text-align: center;
margin-top: 20px;
}
.form-footer a {
color: var(--primary-color);
text-decoration: none;
}
.form-footer a:hover {
text-decoration: underline;
}
/* Profile Section */
.profile-section {
display: none;
padding: 40px 0;
}
.profile-header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 30px;
}
.profile-avatar {
width: 150px;
height: 150px;
border-radius: 50%;
object-fit: cover;
border: 5px solid white;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
margin-bottom: 20px;
}
.profile-name {
font-size: 28px;
font-weight: bold;
margin-bottom: 5px;
}
.profile-title {
color: var(--secondary-color);
font-size: 18px;
margin-bottom: 15px;
}
.profile-bio {
max-width: 600px;
text-align: center;
margin-bottom: 20px;
}
.profile-stats {
display: flex;
gap: 20px;
margin-bottom: 30px;
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 24px;
font-weight: bold;
color: var(--primary-color);
}
.stat-label {
font-size: 14px;
color: #666;
}
.profile-content {
display: grid;
grid-template-columns: 1fr;
gap: 30px;
}
.profile-card {
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.profile-card h3 {
margin-bottom: 15px;
color: var(--primary-color);
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.edit-btn {
background-color: var(--accent-color);
color: white;
border: none;
padding: 8px 15px;
border-radius: 4px;
cursor: pointer;
float: left;
margin-top: 10px;
}
/* Footer */
footer {
background-color: var(--dark-color);
color: white;
padding: 30px 0;
text-align: center;
}
.footer-links {
display: flex;
justify-content: center;
gap: 20px;
margin-bottom: 20px;
}
.footer-links a {
color: white;
text-decoration: none;
}
.footer-links a:hover {
text-decoration: underline;
}
.social-icons {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 20px;
}
.social-icons a {
color: white;
font-size: 20px;
}
.copyright {
font-size: 14px;
color: #aaa;
}
/* Responsive Styles */
@media (max-width: 768px) {
.header-container {
flex-direction: column;
gap: 15px;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1rem;
}
.profile-stats {
flex-wrap: wrap;
justify-content: center;
}
.profile-content {
grid-template-columns: 1fr;
}
}
/* Animation */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.5s ease forwards;
}
/* Built with link */
.built-with {
position: fixed;
bottom: 10px;
right: 10px;
background-color: var(--primary-color);
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 12px;
text-decoration: none;
z-index: 1000;
}
.built-with:hover {
background-color: var(--secondary-color);
}
</style>
</head>
<body>
<header>
<div class="container header-container">
<div class="logo">
<a href="#">بروفايلك</a>
</div>
<div class="auth-buttons">
<button id="loginBtn" class="btn btn-outline">تسجيل الدخول</button>
<button id="registerBtn" class="btn btn-primary">إنشاء حساب</button>
</div>
</div>
</header>
<section class="hero">
<div class="container">
<h1>أنشئ بروفايلك الشخصي الآن</h1>
<p>موقعك الشخصي لعرض مهاراتك، خبراتك وإنجازاتك بطريقة احترافية وجذابة</p>
<button id="heroRegisterBtn" class="btn btn-primary">ابدأ الآن مجانًا</button>
</div>
</section>
<!-- Login Form -->
<div id="loginForm" class="auth-forms">
<div class="auth-form fade-in">
<span class="close-btn" id="closeLogin">&times;</span>
<h2>تسجيل الدخول</h2>
<form id="loginFormElement">
<div class="form-group">
<label for="loginEmail">البريد الإلكتروني</label>
<input type="email" id="loginEmail" class="form-control" required>
</div>
<div class="form-group">
<label for="loginPassword">كلمة المرور</label>
<input type="password" id="loginPassword" class="form-control" required>
</div>
<button type="submit" class="submit-btn">تسجيل الدخول</button>
</form>
<div class="form-footer">
<p>ليس لديك حساب؟ <a href="#" id="switchToRegister">إنشاء حساب جديد</a></p>
</div>
</div>
</div>
<!-- Registration Form -->
<div id="registerForm" class="auth-forms">
<div class="auth-form fade-in">
<span class="close-btn" id="closeRegister">&times;</span>
<h2>إنشاء حساب جديد</h2>
<form id="registerFormElement">
<div class="form-group">
<label for="registerName">الاسم الكامل</label>
<input type="text" id="registerName" class="form-control" required>
</div>
<div class="form-group">
<label for="registerEmail">البريد الإلكتروني</label>
<input type="email" id="registerEmail" class="form-control" required>
</div>
<div class="form-group">
<label for="registerPassword">كلمة المرور</label>
<input type="password" id="registerPassword" class="form-control" required>
</div>
<div class="form-group">
<label for="registerConfirmPassword">تأكيد كلمة المرور</label>
<input type="password" id="registerConfirmPassword" class="form-control" required>
</div>
<button type="submit" class="submit-btn">إنشاء حساب</button>
</form>
<div class="form-footer">
<p>لديك حساب بالفعل؟ <a href="#" id="switchToLogin">تسجيل الدخول</a></p>
</div>
</div>
</div>
<!-- Profile Section -->
<section class="profile-section container" id="profileSection">
<div class="profile-header">
<img src="https://via.placeholder.com/150" alt="صورة البروفايل" class="profile-avatar" id="profileAvatar">
<h2 class="profile-name" id="profileName">محمد أحمد</h2>
<p class="profile-title" id="profileTitle">مطور ويب ومصمم</p>
<p class="profile-bio" id="profileBio">أنا مطور ويب بخبرة تزيد عن 5 سنوات في إنشاء تطبيقات ويب حديثة وسريعة الاستجابة. متخصص في JavaScript وReact وNode.js.</p>
<div class="profile-stats">
<div class="stat-item">
<div class="stat-number">125</div>
<div class="stat-label">المشاريع</div>
</div>
<div class="stat-item">
<div class="stat-number">3.5K</div>
<div class="stat-label">المتابعون</div>
</div>
<div class="stat-item">
<div class="stat-number">48</div>
<div class="stat-label">العملاء</div>
</div>
</div>
</div>
<div class="profile-content">
<div class="profile-card">
<h3>المهارات</h3>
<ul id="skillsList">
<li>HTML5, CSS3, JavaScript</li>
<li>React, Vue.js, Angular</li>
<li>Node.js, Express</li>
<li>MongoDB, MySQL</li>
<li>UI/UX Design</li>
</ul>
<button class="edit-btn">تعديل</button>
</div>
<div class="profile-card">
<h3>الخبرة العملية</h3>
<div class="experience-item">
<h4>مطور ويب أول</h4>
<p>شركة التقنية المتقدمة | 2020 - حتى الآن</p>
<p>قيادة فريق تطوير لإنشاء تطبيقات ويب معقدة باستخدام أحدث التقنيات.</p>
</div>
<div class="experience-item">
<h4>مطور ويب</h4>
<p>شركة الحلول الرقمية | 2018 - 2020</p>
<p>تطوير واجهات مستخدم تفاعلية وتطبيقات ويب متكاملة.</p>
</div>
<button class="edit-btn">تعديل</button>
</div>
<div class="profile-card">
<h3>المشاريع</h3>
<div class="project-item">
<h4>نظام إدارة المحتوى</h4>
<p>نظام متكامل لإدارة المحتوى مع لوحة تحكم مخصصة.</p>
</div>
<div class="project-item">
<h4>متجر إلكتروني</h4>
<p>منصة بيع بالتجزئة مع نظام دفع إلكتروني.</p>
</div>
<button class="edit-btn">تعديل</button>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="footer-links">
<a href="#">الصفحة الرئيسية</a>
<a href="#">عن الموقع</a>
<a href="#">اتصل بنا</a>
<a href="#">الشروط والأحكام</a>
<a href="#">سياسة الخصوصية</a>
</div>
<div class="social-icons">
<a href="#"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-linkedin"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-github"></i></a>
</div>
<p class="copyright">جميع الحقوق محفوظة &copy; 2023 بروفايلك</p>
</div>
</footer>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" class="built-with">Built with anycoder</a>
<script>
// DOM Elements
const loginBtn = document.getElementById('loginBtn');
const registerBtn = document.getElementById('registerBtn');
const heroRegisterBtn = document.getElementById('heroRegisterBtn');
const loginForm = document.getElementById('loginForm');
const registerForm = document.getElementById('registerForm');
const closeLogin = document.getElementById('closeLogin');
const closeRegister = document.getElementById('closeRegister');
const switchToRegister = document.getElementById('switchToRegister');
const switchToLogin = document.getElementById('switchToLogin');
const loginFormElement = document.getElementById('loginFormElement');
const registerFormElement = document.getElementById('registerFormElement');
const profileSection = document.getElementById('profileSection');
// Show login form
loginBtn.addEventListener('click', () => {
loginForm.style.display = 'flex';
});
// Show register form
registerBtn.addEventListener('click', () => {
registerForm.style.display = 'flex';
});
heroRegisterBtn.addEventListener('click', () => {
registerForm.style.display = 'flex';
});
// Close forms
closeLogin.addEventListener('click', () => {
loginForm.style.display = 'none';
});
closeRegister.addEventListener('click', () => {
registerForm.style.display = 'none';
});
// Switch between forms
switchToRegister.addEventListener('click', (e) => {
e.preventDefault();
loginForm.style.display = 'none';
registerForm.style.display = 'flex';
});
switchToLogin.addEventListener('click', (e) => {
e.preventDefault();
registerForm.style.display = 'none';
loginForm.style.display = 'flex';
});
// Close when clicking outside form
window.addEventListener('click', (e) => {
if (e.target === loginForm) {
loginForm.style.display = 'none';
}
if (e.target === registerForm) {
registerForm.style.display = 'none';
}
});
// Login form submission
loginFormElement.addEventListener('submit', (e) => {
e.preventDefault();
const email = document.getElementById('loginEmail').value;
const password = document.getElementById('loginPassword').value;
// Simple validation
if (email && password) {
// In a real app, you would send this to your backend
alert('تم تسجيل الدخول بنجاح!');
loginForm.style.display = 'none';
profileSection.style.display = 'block';
// Update profile with user data
document.getElementById('profileName').textContent = 'محمد أحمد';
document.getElementById('profileTitle').textContent = 'مطور ويب ومصمم';
document.getElementById('profileBio').textContent = 'أنا مطور ويب بخبرة تزيد عن 5 سنوات في إنشاء تطبيقات ويب حديثة وسريعة الاستجابة. متخصص في JavaScript وReact وNode.js.';
} else {
alert('الرجاء إدخال البريد الإلكتروني وكلمة المرور');
}
});
// Register form submission
registerFormElement.addEventListener('submit', (e) => {
e.preventDefault();
const name = document.getElementById('registerName').value;
const email = document.getElementById('registerEmail').value;
const password = document.getElementById('registerPassword').value;
const confirmPassword = document.getElementById('registerConfirmPassword').value;
// Simple validation
if (password !== confirmPassword) {
alert('كلمة المرور غير متطابقة!');
return;
}
if (name && email && password) {
// In a real app, you would send this to your backend
alert('تم إنشاء الحساب بنجاح! يمكنك الآن تسجيل الدخول.');
registerForm.style.display = 'none';
// Auto-fill login form
document.getElementById('loginEmail').value = email;
document.getElementById('loginPassword').value = password;
loginForm.style.display = 'flex';
} else {
alert('الرجاء إكمال جميع الحقول المطلوبة');
}
});
// Check if user is logged in (for demo purposes)
// In a real app, you would check with your backend
const isLoggedIn = localStorage.getItem('isLoggedIn');
if (isLoggedIn) {
profileSection.style.display = 'block';
}
</script>
</body>
</html>