diff --git a/artikel.php b/artikel.php new file mode 100644 index 0000000..60cf368 --- /dev/null +++ b/artikel.php @@ -0,0 +1,7 @@ + +
+

Artikel & Tips

+

Halaman ini akan berisi artikel dan panduan.

+ +
+ \ No newline at end of file diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..8a342e4 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,141 @@ +/* assets/css/custom.css */ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@400;500&display=swap'); + +:root { + --navy-blue: #0A2342; + --gold-accent: #FFB100; + --dark-text: #212529; + --light-gray-bg: #F8F9FA; + --white: #FFFFFF; +} + +body { + font-family: 'Roboto', sans-serif; + background-color: var(--white); + color: var(--dark-text); +} + +h1, h2, h3, h4, h5, h6, .navbar-brand { + font-family: 'Poppins', sans-serif; + font-weight: 600; + color: var(--navy-blue); +} + +.navbar { + border-bottom: 1px solid var(--light-gray-bg); +} + +.navbar-brand { + font-weight: 700; + color: var(--navy-blue) !important; +} + +.nav-link { + color: var(--dark-text); + transition: color 0.2s ease; +} + +.nav-link:hover, .nav-link.active { + color: var(--gold-accent); +} + +.btn-primary { + background-color: var(--navy-blue); + border-color: var(--navy-blue); +} + +.btn-primary:hover { + background-color: #081c33; /* Darken navy */ + border-color: #081c33; +} + +.btn-gradient { + background-image: linear-gradient(135deg, var(--navy-blue), var(--gold-accent)); + border: none; + color: white; + transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; +} + +.btn-gradient:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0,0,0,0.15); + color: white; +} + +.hero-section { + background: url('https://picsum.photos/seed/scholarmatch-hero/1600/900') no-repeat center center; + background-size: cover; + color: white; + padding: 10rem 0; + position: relative; +} + +.hero-section::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(10, 35, 66, 0.7); /* Navy overlay */ +} + +.hero-section .container { + position: relative; + z-index: 2; +} + +.hero-section h1, .hero-section p { + color: var(--white); +} + +.section-title { + font-weight: 700; + margin-bottom: 3rem; +} + +.card { + border: none; + border-radius: 0.5rem; + box-shadow: 0 4px 20px rgba(0,0,0,0.05); + transition: transform 0.2s ease-in-out; +} + +.card:hover { + transform: translateY(-5px); +} + +.card-title { + color: var(--navy-blue); +} + +.testimonial-card img { + width: 80px; + height: 80px; + border-radius: 50%; + object-fit: cover; + border: 3px solid var(--gold-accent); +} + +footer { + background-color: var(--navy-blue); + color: white; +} + +footer a { + color: var(--gold-accent); +} + +.form-control:focus, .btn:focus { + box-shadow: 0 0 0 0.25rem rgba(255, 177, 0, 0.4); + border-color: var(--gold-accent); +} + +#kontak .fs-3 { + color: var(--navy-blue); + transition: color 0.2s ease; +} + +#kontak .fs-3:hover { + color: var(--gold-accent); +} \ No newline at end of file diff --git a/assets/js/main.js b/assets/js/main.js new file mode 100644 index 0000000..cfa5975 --- /dev/null +++ b/assets/js/main.js @@ -0,0 +1,16 @@ +// assets/js/main.js +document.addEventListener('DOMContentLoaded', function () { + // Smooth scroll for anchor links + document.querySelectorAll('a[href^="#"]').forEach(anchor => { + anchor.addEventListener('click', function (e) { + e.preventDefault(); + const targetId = this.getAttribute('href'); + const targetElement = document.querySelector(targetId); + if(targetElement) { + targetElement.scrollIntoView({ + behavior: 'smooth' + }); + } + }); + }); +}); diff --git a/beasiswa.php b/beasiswa.php new file mode 100644 index 0000000..bad7cb2 --- /dev/null +++ b/beasiswa.php @@ -0,0 +1,81 @@ +query("SELECT * FROM beasiswa ORDER BY deadline DESC"); + $beasiswa_list = $stmt->fetchAll(); +} catch (PDOException $e) { + // For development, show error. In production, log it. + error_log("Database error: " . $e->getMessage()); + $beasiswa_list = []; +} +?> + +
+
+
+

Daftar Beasiswa

+

Temukan peluang beasiswa yang sesuai dengan minat dan kualifikasimu.

+
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + +
+ +
+

Belum ada data beasiswa yang tersedia.

+
+ + +
+
+
+
+
+

+
+ +
+
+ + +
+
+ + diff --git a/db/setup.php b/db/setup.php new file mode 100644 index 0000000..e1876ea --- /dev/null +++ b/db/setup.php @@ -0,0 +1,107 @@ +exec("CREATE TABLE IF NOT EXISTS beasiswa ( + id INT AUTO_INCREMENT PRIMARY KEY, + title VARCHAR(255) NOT NULL, + organizer VARCHAR(255) NOT NULL, + description TEXT, + deadline DATE, + status ENUM('Open', 'Closed') DEFAULT 'Open', + link VARCHAR(255), + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ) ENGINE=INNODB;"); + + // Create lomba table + $pdo->exec("CREATE TABLE IF NOT EXISTS lomba ( + id INT AUTO_INCREMENT PRIMARY KEY, + title VARCHAR(255) NOT NULL, + organizer VARCHAR(255) NOT NULL, + category VARCHAR(100), + description TEXT, + deadline DATE, + link VARCHAR(255), + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ) ENGINE=INNODB;"); + + // Create artikel table + $pdo->exec("CREATE TABLE IF NOT EXISTS artikel ( + id INT AUTO_INCREMENT PRIMARY KEY, + title VARCHAR(255) NOT NULL, + category VARCHAR(100), + content TEXT, + author VARCHAR(100), + published_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP + ) ENGINE=INNODB;"); + + // Seed Beasiswa + $stmt = $pdo->prepare("INSERT INTO beasiswa (title, organizer, description, deadline, status, link) VALUES (?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE title=title;"); + $stmt->execute([ + 'Beasiswa Bank Indonesia (GenBI)', + 'Bank Indonesia', + 'Program beasiswa untuk mahasiswa S1 terpilih dari berbagai perguruan tinggi di Indonesia. Penerima akan menjadi anggota Generasi Baru Indonesia (GenBI).', + '2025-10-15', + 'Open', + 'https://www.bi.go.id/id/bi-dan-publik/program-edukasi/default.aspx' + ]); + $stmt->execute([ + 'Beasiswa LPDP 2025 Tahap 2', + 'Lembaga Pengelola Dana Pendidikan', + 'Beasiswa penuh untuk jenjang S2 dan S3 di dalam dan luar negeri. Mencakup biaya pendidikan, biaya hidup, dan tunjangan lainnya.', + '2025-09-30', + 'Open', + 'https://lpdp.kemenkeu.go.id/' + ]); + $stmt->execute([ + 'Beasiswa Kemitraan Negara Berkembang (KNB)', + 'Kemendikbudristek', + 'Beasiswa bagi mahasiswa internasional dari negara berkembang untuk belajar di universitas-universitas di Indonesia.', + '2025-08-20', + 'Closed', + 'http://knb.kemdikbud.go.id/' + ]); + + // Seed Lomba + $stmt = $pdo->prepare("INSERT INTO lomba (title, organizer, category, description, deadline, link) VALUES (?, ?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE title=title;"); + $stmt->execute([ + 'Lomba Desain UI/UX Nasional 2025', + 'Tech Innovators Community', + 'Desain', + 'Kompetisi desain antarmuka pengguna untuk aplikasi mobile dengan tema "Pendidikan Inklusif".', + '2025-11-01', + '#' + ]); + $stmt->execute([ + 'National Business Plan Competition', + 'Universitas Gadjah Mada', + 'Bisnis', + 'Ajang bagi mahasiswa untuk menyusun dan mempresentasikan rencana bisnis inovatif dan berkelanjutan.', + '2025-10-25', + '#' + ]); + + // Seed Artikel + $stmt = $pdo->prepare("INSERT INTO artikel (title, category, content, author) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE title=title;"); + $stmt->execute([ + '5 Tips Jitu Menulis Motivation Letter Beasiswa', + 'Beasiswa', + 'Motivation letter adalah kunci... (isi konten lengkap di sini)', + 'Tim ScholarMatch' + ]); + $stmt->execute([ + 'Strategi Memenangkan Lomba Business Plan', + 'Kompetisi', + 'Untuk menang, ide Anda harus... (isi konten lengkap di sini)', + 'Mentor Ahli' + ]); + + echo "Database setup and seeding completed successfully!"; + +} catch (PDOException $e) { + die("Database error: " . $e->getMessage()); +} +?> \ No newline at end of file diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..7c5ba78 --- /dev/null +++ b/footer.php @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/header.php b/header.php new file mode 100644 index 0000000..a0602f4 --- /dev/null +++ b/header.php @@ -0,0 +1,49 @@ + + + + + + + + ScholarMatch - Info Beasiswa & Kompetisi Terbaru + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/index.php b/index.php index 7205f3d..aad10b9 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,89 @@ - -$phpVersion = PHP_VERSION; -$now = date('Y-m-d H:i:s'); -?> - - - - - - New Style - - - - - - - - - - - - - - - - - - - - - -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- - - + +
+
+

Temukan Peluang Emasmu

+

Platform terpusat untuk semua informasi beasiswa, lomba, dan kompetisi.
Mulai perjalanan prestasimu bersama ScholarMatch.

+
+
+ + +
+
+
+
+ +
+ +
+
+

Beasiswa & Lomba Terbaru

+
+ +
+
+
+
Beasiswa LPDP 2026
+
Kemenkeu RI
+

Beasiswa penuh untuk jenjang S2/S3 di dalam dan luar negeri.

+ Open +
+ +
+
+ +
+
+
+
Lomba Desain Nasional
+
Universitas ABC
+

Kompetisi desain UI/UX untuk aplikasi mobile dengan tema pendidikan.

+ Open +
+ +
+
+ +
+
+
+
Beasiswa Bank Indonesia
+
Bank Indonesia
+

Bantuan biaya pendidikan dan tunjangan hidup untuk mahasiswa S1.

+ Closed +
+ +
+
+
+ +
+
+ + +
+
+

Apa Kata Mereka?

+
+
+ Profile picture of a satisfied ScholarMatch user. +

"Berkat ScholarMatch, saya berhasil mendapatkan beasiswa S2 ke luar negeri. Informasinya sangat lengkap dan up-to-date. Terima kasih banyak!"

+
Andi Pratama
+

Penerima Beasiswa LPDP 2025

+
+
+
+
+ +
+ + \ No newline at end of file diff --git a/kontak.php b/kontak.php new file mode 100644 index 0000000..a6cf47e --- /dev/null +++ b/kontak.php @@ -0,0 +1,36 @@ + +
+
+
+

Hubungi Kami

+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+

Ikuti Kami

+ + + +
+
+
+
+ \ No newline at end of file diff --git a/lomba.php b/lomba.php new file mode 100644 index 0000000..725dd69 --- /dev/null +++ b/lomba.php @@ -0,0 +1,7 @@ + +
+

Daftar Lomba & Kompetisi

+

Halaman ini akan berisi daftar lomba dan kompetisi dengan fitur filter dan sort.

+ +
+ \ No newline at end of file diff --git a/tentang.php b/tentang.php new file mode 100644 index 0000000..15a809e --- /dev/null +++ b/tentang.php @@ -0,0 +1,18 @@ + +
+
+
+
+
+

Tentang ScholarMatch

+

ScholarMatch lahir dari sebuah mimpi sederhana: agar setiap pelajar dan mahasiswa di Indonesia memiliki akses yang sama terhadap informasi peluang. Kami percaya bahwa talenta terbaik bangsa tidak boleh terhambat hanya karena kurangnya informasi.

+

Misi kami adalah menjadi jembatan antara penyedia beasiswa dan kompetisi dengan para pencari peluang yang ambisius dan berbakat.

+
+
+ A student studying diligently in a modern library. +
+
+
+
+
+ \ No newline at end of file