İç Sayfa (Teknokent TTO)

Kategori

@inherits System.Web.Mvc.WebViewPage<IEnumerable<Discus.Models.Post>>
    @using System.Web.Helpers;
    @using System.Web.Mvc;
    @using Discus.Models;
    @using Discus.Controllers;
    @{
    string lang = ViewBag.LanguageShortName;
    Category category = ViewBag.Category as Category;

    int ustID = category.RefCategoryID ?? 0;
    Category ustCategory = Partial.Category(ustID);

    int Categorysay = Partial.CategorySubID(category.CategoryID).Count();
    int Postsay = ViewData.Model.Count();

    DateTime sontarih = DateTime.Now;
    foreach (Post tarih in ViewData.Model.OrderByDescending(m => m.PostUpdateDate).Skip(0).Take(1))
    {
    sontarih = tarih.PostUpdateDate;
    }

    string duvardakiresmine = "";

    if (!String.IsNullOrEmpty(category.CategoryImage))
    {
    duvardakiresmine = category.CategoryImage;
    }
    else if (ustCategory != null && !String.IsNullOrEmpty(ustCategory.CategoryImage))

    {
    duvardakiresmine = ustCategory.CategoryImage;
    }
    else
    {
    duvardakiresmine = "/Upload/File/placeholder.jpg";
    }
    }
    <div class="container">
        <div class="row">
            <div class="col-md-12" style="text-align:right;">
                <img src="@Partial.Translate("TTOLogo", lang)" />
            </div>
        </div>
    </div>
    <div class="container-fluid" style="background-repeat:no-repeat; background-size:cover; background-position:right;background-image:url('@Partial.Translate("TTOHeaderImage",lang)');">
        <div class="container">
            <div class="row" style="color:white;padding: 130px 0px;">
                @Partial.Translate("TTOHeader",lang)
            </div>
        </div>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-md-6">

            </div>
            <div class="col-md-6">
                <div style="background-color:#f2f2f2;padding: 100px 50px;margin-top:-100px;">
                    @{
                    Post makaleilk = ViewData.Model.FirstOrDefault();
                    }
                    <h3 style="color:#001162">@makaleilk.PostTitle.HtmlEncode()</h3>
                    <p>
                        @Partial.PostShortContent(makaleilk.PostID,250)
                    </p>

                </div>
                <div class="" style="text-align:right;font-weight:bold;">
                    <a href="@Partial.PostLink(makaleilk.PostID)" style="color:#fff;background-color:#02276f;display:inline-block;padding:5px;">+</a><a href="@Partial.PostLink(makaleilk.PostID)" style="color:#fff;background-color:#fa2125;display:inline-block;padding:5px;">@Partial.Translate("DetayliIncele", lang)</a>
                </div>
            </div>
        </div>
    </div>
    <div class="container-fluid" style="background-image:url('/Upload/File/2020/1/28/ttobg.png');color:white;padding-top:10px;text-align:center;margin-top:150px;padding-top:50px;background-repeat:repeat-x;">
        <div class="row">
            <div class="col-md-12">
                <h1 style="margin-bottom:100px;font-weight:bold;">@Partial.Translate("TTO1", lang)</h1>
            </div>
        </div>
        <div class="container" style="color:black;">
            <div class="row">
                @foreach (Post postum in ViewData.Model.Skip(1).Take(2))
                {
                <div class="col-md-6" style="margin-bottom:50px;">
                    <div style="background-color:#f2f2f2;padding:20px; height:100%;">
                        <h3 style="color:#001162;">@postum.PostTitle.HtmlEncode()</h3>
                        <p>
                            @Partial.PostShortContent(postum.PostID,150)
                        </p>
                    </div>
                    <div class="" style="text-align:right;font-weight:bold;">
                        <a href="@Partial.PostLink(postum.PostID)" style="color:#fff;background-color:#02276f;display:inline-block;padding:5px;">+</a><a href="@Partial.PostLink(postum.PostID)" style="color:#fff;background-color:#fa2125;display:inline-block;padding:5px;">@Partial.Translate("DetayliIncele", lang)</a>
                    </div>
                </div>
                }
            </div>
            <div class="row">
                @foreach (Post postum in ViewData.Model.Skip(3).Take(2))
                {
                <div class="col-md-6" style="margin-bottom:50px;">
                    <div style="background-color:#f2f2f2;padding:20px; height:100%;">
                        <h3 style="color:#001162;">@postum.PostTitle.HtmlEncode()</h3>
                        <p>
                            @Partial.PostShortContent(postum.PostID, 150)
                        </p>
                    </div>
                    <div class="" style="text-align:right;font-weight:bold;">
                        <a href="@Partial.PostLink(postum.PostID)" style="color:#fff;background-color:#02276f;display:inline-block;padding:5px;">+</a><a href="@Partial.PostLink(postum.PostID)" style="color:#fff;background-color:#fa2125;display:inline-block;padding:5px;">@Partial.Translate("DetayliIncele", lang)</a>
                    </div>
                </div>
                }
            </div>
        </div>
    </div>


    <div class="container-fluid" style="background-color:#f2f2f2;padding:20px; margin-top: 20px;">
        <div class="row">
            <div class="col-md-12">
                <h1 style="color:#192b6d;text-align:center;font-weight:bold;">@Partial.Translate("TTO2", lang)</h1>
            </div>
        </div>
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="owl-carousel-brand owl-carousel-fix owl-theme">
                        @foreach (PhotoGalleryImage comPost in Partial.allPhotoGalleryImage.Where(a => a.RefPhotoGalleryImagePhotoGalleryID == 2))
                        {
                        <div class="text-center all-text-white">
                            <div class="disucs-imageframe">
                                <img src="/Upload/PhotoGallery/Thumb/@comPost.PhotoGalleryImageLink" />
                            </div>
                        </div>
                        }
                    </div>

                </div>
            </div>
        </div>
    </div>

Translate (TTOHeader)

 <div class="col-md-12">
 <h1>ANTALYA TEKNOKENT TTO</h1>
 </div>
 <div class="col-md-6" style="text-align: justify;">
 <strong>Antalya Teknokent TTO;</strong>
 üniversitemizdeki akademik bilginin,
 bilimin, know-how’ın sanayinin ihtiyaçları
 doğrultusunda kullanılması, ülke ekonimisine
 olumlu katkılar sağlaması açısından gerekli
 platformları oluşturmak
 konusunda bir arayüz görevini
 üstlenmektedir.
 </div>

Translate (TTOHeaderImage)

/Upload/File/2020/2/6/tto-1.png

Translate (DetayliIncele)

Detaylı İncele

Translate (TTO1)

YÜRÜTÜLEN PROJELER

Translate (TTO2)

PROJE ORTAKLARI

Javascript

<script>hljs.initHighlightingOnLoad();</script>
<script type="text/javascript">
    $(document).ready(function () {
        $('.counter').each(function () {
            $(this).prop('Counter', 0).animate({
                Counter: $(this).text()
            }, {
                    duration: 4000,
                    easing: 'swing',
                    step: function (now) {
                        $(this).text(Math.ceil(now));
                    }
                });
        });

        $('#myTab a').on('click', function (e) {
            $('#myTab a.active').removeClass('active');
            $(this).addClass('active');
            var id = $(this).data("id");
            $('#myTabContent div').removeClass('show');
            $('#myTabContent div').removeClass('active');

            $('#myTabContent #' + id).addClass('show');
            $('#myTabContent #' + id).addClass('active');

        });
        $('.owl-carousel-brand').owlCarousel({
            margin: 10,
            loop: true,
            autoplay: true,
            autoplayTimeout: 1000,
            autoplayHoverPause: true,
            nav: false,
            navText: [
                '<i class="fas fa-chevron-left"></i>',
                '<i class="fas fa-chevron-right"></i>'
            ],
            dots: true,
            responsive: {
                0: {
                    items: 1
                },
                600: {
                    items: 1
                },
                1000: {
                    items: 4
                }
            }
        });
        
    });
</script>

CSS

    <style type="text/css">
        .header-transparent-on .navik-menu > ul > li > a, .header-opacity-on .navik-menu > ul > li > a {
            color: #000000;
        }

        .disucs-imageframe img {
            max-width: 80% !important;
        }

        h3 {
            font-weight: bold;
        }

    </style>

http://www.antalyateknokent.com.tr/tr/antalya-teknokent-tto