This file contains hidden or 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
<div class="bg-light w-100 p-5"> | |
<div class="card col-12 col-md-6 p-3 mx-auto py-5 rounded"> | |
<div class="text-center mb-5"> | |
<h4><b>Daftar</b></h4> | |
<p class="text-secondary">Daftar untuk dapat memposting artikel</p> | |
</div> | |
<form action="/"> | |
<div> | |
<div class="mb-3"> | |
<label for="name" class="form-label">Nama Lengkap</label> |
This file contains hidden or 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
<div class="bg-light w-100 p-5"> | |
<div class="card col-12 col-md-6 p-3 mx-auto py-5 rounded"> | |
<div class="text-center mb-5"> | |
<h4><b>Masuk</b></h4> | |
<p class="text-secondary">Masuk untuk dapat memposting artikel</p> | |
</div> | |
<form action="/"> | |
<div class="text-center"> | |
<div class="mb-3"> | |
<label for="username" class="form-label">Username</label> |
This file contains hidden or 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
<div class="px-5 py-3"> | |
<div class="row"> | |
<div class="col-12"> | |
<h1 class="fs-4 mb-4">Artikel Terbaru</h1> | |
<div class="d-flex align-content-start flex-wrap"> | |
<div class="card me-2" style="width: 18rem;"> | |
<img src="/static/img/uploads/user-tekakode-210720210756.png" class="card-img-top" alt="..."> | |
<a href="#" class="text-dark text-decoration-none"> | |
<div class="card-body"> | |
<h5 class="card-title">Card title</h5> |
This file contains hidden or 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
<div class="p-5"> | |
<div class="row"> | |
<div class="col-12 col-lg-9"> | |
<div class="card border-0 shadow-sm p-2"> | |
<input type="text" name="post-title" id="post-title" class="form-control my-1" placeholder="Input Post Tite Here"> | |
<textarea name="post-content" id="post-content" cols="30" rows="10" class="form-control my-1" placeholder="Input Post Content Here"></textarea> | |
<input type="file" name="post-file" id="post-file" class="form-control my-1"> | |
<div class="d-flex flex-row-reverse"> | |
<button type="submit" class="btn btn-success">Simpan</button> | |
</div> |
This file contains hidden or 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
<head> | |
... | |
<style> | |
.fs-small { | |
font-size: 0.875rem; | |
} | |
.card > img { | |
width: 286px; | |
height: 214.5; | |
object-fit: cover; |
This file contains hidden or 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
<div class="card me-2" style="width: 18rem;"> | |
<img src="/static/img/uploads/user-tekakode-210720210756.png" class="card-img-top" alt="..."> | |
<a href="#" class="text-dark text-decoration-none"> | |
<div class="card-body"> | |
<h5 class="card-title">Card title</h5> | |
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's | |
content.</p> | |
</div> | |
</a> | |
</div> |
This file contains hidden or 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
package controllers | |
import ( | |
beego "github.com/beego/beego/v2/server/web" | |
) | |
type ArticleController struct { | |
beego.Controller | |
} |
This file contains hidden or 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
package controllers | |
import ( | |
beego "github.com/beego/beego/v2/server/web" | |
) | |
type StaticpageController struct { | |
beego.Controller | |
} |
This file contains hidden or 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
package controllers | |
import ( | |
beego "github.com/beego/beego/v2/server/web" | |
) | |
type AdminController struct { | |
beego.Controller | |
} |
This file contains hidden or 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
package routers | |
import ( | |
"tekakode-go-blog/controllers" | |
beego "github.com/beego/beego/v2/server/web" | |
) | |
func init() { | |
beego.Router("/", &controllers.MainController{}) |
NewerOlder