Skip to content

Mengedit index dan css #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions asset/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ body {
}

a {
text-decoration: none;
color: #e6e6e6;
text-decoration: none;
color: #e6e6e6;
}

.container {
Expand Down Expand Up @@ -70,7 +70,7 @@ input {
font-size: 15px;
color: #e6e6e6;
border-radius: 5px;
background-color: #532e1c;
background-color: green;
}

.btn-reset {
Expand All @@ -90,6 +90,10 @@ table {
width: 100%;
}

th:nth-child(2) {
text-align: center;
}

th {
height: 30px;
border-bottom: 2px solid #532e1c;
Expand Down
44 changes: 36 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="shortcut icon" href="asset/img/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="asset/img/logo.png" type="image/x-icon" />

<!-- Google Font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet"/>
<link
href="https://fonts.googleapis.com/css2?family=Rubik&display=swap"
rel="stylesheet"
/>

<!-- Kustom CSS -->
<link rel="stylesheet" href="asset/css/index.css" />
Expand All @@ -27,15 +30,40 @@ <h1 class="title">DATA MAHASISWA</h1>
<form id="dataMahasiswa" action="">
<div class="div-input">
<p>Form Tambah Data Mahasiswa</p>
<input type="text" name="nim" id="nim" placeholder="Masukan NIM..." autofocus />
<input type="text" name="nama" id="nama" placeholder="Masukan Nama..." />
<input type="text" name="kelas" id="kelas" placeholder="Masukan Kelas..." />
<input type="text" name="alamat" id="alamat" placeholder="Masukan Alamat..." />
<input
type="text"
name="nim"
id="nim"
placeholder="Masukan NIM..."
autofocus
/>
<input
type="text"
name="nama"
id="nama"
placeholder="Masukan Nama..."
/>
<input
type="text"
name="kelas"
id="kelas"
placeholder="Masukan Kelas..."
/>
<input
type="text"
name="alamat"
id="alamat"
placeholder="Masukan Alamat..."
/>
</div>
<!-- Bagian Tombol Tambah -->
<div class="div-tambah">
<button type="button" class="btn-tambah" onclick="tambahData()">Tambah Data</button>
<button type="reset" class="btn-reset"><a href="">Reset Data</a></button>
<button type="button" class="btn-tambah" onclick="tambahData()">
Tambah Data
</button>
<button type="reset" class="btn-reset">
<a href="">Reset Data</a>
</button>
</div>
<!-- Bagian Tabel -->
<table id="tabelMahasiswa">
Expand Down