This file contains 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="wrapper"> | |
<!-- Sidebar --> | |
<nav id="sidebar"> | |
<div class="sidebar-header"> | |
<h3>Bootstrap Sidebar</h3> | |
</div> | |
<ul class="list-unstyled components"> | |
<p>Dummy Heading</p> |
This file contains 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="layout has-sidebar fixed-sidebar fixed-header"> | |
<aside id="sidebar" class="sidebar break-point-lg has-bg-image"> | |
<div class="image-wrapper"> | |
<img src="https://user-images.githubusercontent.com/25878302/144499035-2911184c-76d3-4611-86e7-bc4e8ff84ff5.jpg" alt="sidebar background" /> | |
</div> | |
<div class="sidebar-layout"> | |
<div class="sidebar-header"> | |
<span style=" | |
text-transform: uppercase; | |
font-size: 15px; |
This file contains 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
<script src="https://kit.fontawesome.com/628c8d2499.js" crossorigin="anonymous"></script> | |
<link rel="preconnect" href="https://fonts.gstatic.com"> | |
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"> | |
<link rel="stylesheet" href="style.css" type="text/css" /> | |
<nav id="menu"> | |
<div class="menu-item"> | |
<div class="menu-text"> | |
<a href="#">Products</a> | |
</div> |
This file contains 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
@model EuVotoAf.Models.ViewModels.PublicaoViewModel | |
@{ | |
ViewBag.Title = "Create"; | |
Layout = "~/Views/Shared/_Layout.cshtml"; | |
} | |
<script src="~/Scripts/tinymce/tinymce.js"></script> | |
<h2>Create</h2> |
This file contains 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
@foreach (var item in Model) | |
{ | |
<section class="container"> | |
<article class="row"> | |
<div class="col-md-4"> | |
<div class="thumbnail"> | |
<h3 style="padding-left:17px;padding:0; background-color:orangered; margin:0; text-align:center;color:white;">@Html.DisplayFor(model => item.Titulo)</h3> | |
<img src="~/Uploads/Imagens/teste.jpg" class="col-md-12 " style="padding:0;" /> | |
<div> | |
@Html.DisplayFor(model => item.Resumo); |
This file contains 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
public string Upload(HttpPostedFileBase file) | |
{ | |
string path; | |
string saveloc = "~/Uploads/Imagens"; | |
string relativeloc = "/Uploads/Imagens/"; | |
string filename = file.FileName; | |
if (file != null && file.ContentLength > 0 && IsImage(file)) | |
{ | |
try |