Merge pull request #1286 from openclassify/blog

patron blog update
This commit is contained in:
metehancelik 2022-02-09 10:26:54 +03:00 committed by GitHub
commit 4ee8fb893c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 11 deletions

View File

@ -108,6 +108,12 @@
.w-225{ .w-225{
width: 225px; width: 225px;
} }
.w-230{
width: 230px;
}
.w-600{
max-width: 600px;
}
.bottom-zero { .bottom-zero {
bottom: 0; bottom: 0;

View File

@ -73,5 +73,5 @@ return [
'news_title' => 'Sektörel Gelişmeler :name\'da', 'news_title' => 'Sektörel Gelişmeler :name\'da',
'all_news' => 'Tüm İçerikler',
]; ];

View File

@ -1,3 +1,6 @@
{% block styles %}
{{ asset_style("visiosoft.theme.base::css/post.scss") }}
{% endblock %}
<div class="container mt-2 mb-4 px-0"> <div class="container mt-2 mb-4 px-0">
<div class="d-flex justify-content-between align-items-center mb-2"> <div class="d-flex justify-content-between align-items-center mb-2">
<h5 class="text-left ml-2">{{ trans('visiosoft.theme.base::field.news_title', {name: setting_value('streams::name')}) }}</h5> <h5 class="text-left ml-2">{{ trans('visiosoft.theme.base::field.news_title', {name: setting_value('streams::name')}) }}</h5>
@ -12,12 +15,12 @@
<div class="px-2"> <div class="px-2">
<div <div
class="fs-14 product rounded position-relative bg-white link-dark text-decoration-none border"> class="fs-14 product rounded position-relative bg-white link-dark text-decoration-none border">
<div class="product-img"> <div class="product-img d-flex justify-content-center">
<a href="{{ post.route('view') }}"> <a href="{{ post.route('view') }}" class="">
{{ img( post.cover_image.make.url ?? 'visiosoft.theme.base::images/no-image.png').class('w-100')|raw }} {{ img( post.cover_image.make.url ?? 'visiosoft.theme.base::images/no-image.png').class("w-600")|raw }}
</a> </a>
</div> </div>
<div class="product-text-area p-3"> <div class="text-center product-text-area p-3">
<div class="fw-500 text-dark single-line"> <div class="fw-500 text-dark single-line">
<a href="{{ post.route('view') }}" class="text-dark"> <a href="{{ post.route('view') }}" class="text-dark">
{{ post.title }} {{ post.title }}

View File

@ -1,11 +1,11 @@
{% extends layout('posts') %} {% extends layout('articles') %}
{% block styles %} {% block styles %}
{{ asset_style("visiosoft.theme.base::css/post.scss") }} {{ asset_style("visiosoft.theme.base::css/post.scss") }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="continer p-0 m-0 maxWidth bg-white mx-auto"> <div class="container p-0 m-0 maxWidth bg-white mx-auto">
{% set posts = entries('posts').recent().paginate() %} {% set posts = entries('posts').recent().paginate() %}
<div class="row p-4 m-0"> <div class="row p-4 m-0">

View File

@ -19,13 +19,13 @@
class="d-flex align-items-center bgSpecial_2 text-white paddingSpecial mr-2 text-decoration-none"> class="d-flex align-items-center bgSpecial_2 text-white paddingSpecial mr-2 text-decoration-none">
<i class="fab fa-facebook-f fs-14"></i> <i class="fab fa-facebook-f fs-14"></i>
<div class="lineGap mx-3"></div> <div class="lineGap mx-3"></div>
<div class="fs-11 ">{{ trans('theme::field.share_on_facebook') }}</div> <div class="fs-11 ">{{ trans('visiosoft.theme.base::field.share_on_facebook') }}</div>
</a> </a>
<a href="https://twitter.com/share?url={{ app.request.uri|url_encode }}" <a href="https://twitter.com/share?url={{ app.request.uri|url_encode }}"
class="d-flex align-items-center bgSpecial_3 text-white paddingSpecial mr-2 text-decoration-none"> class="d-flex align-items-center bgSpecial_3 text-white paddingSpecial mr-2 text-decoration-none">
<i class="fab fa-twitter"></i> <i class="fab fa-twitter"></i>
<div class="lineGap mx-3"></div> <div class="lineGap mx-3"></div>
<div class="fs-11 ">{{ trans('theme::field.share_on_twitter') }}</div> <div class="fs-11 ">{{ trans('visiosoft.theme.base::field.share_on_twitter') }}</div>
</a> </a>
</div> </div>
<div class="fs-14 mt-3">{{ post.content|raw }}</div> <div class="fs-14 mt-3">{{ post.content|raw }}</div>
@ -46,7 +46,7 @@
<div class="bg-white rounded h-278 overflow-hidden mx-2"> <div class="bg-white rounded h-278 w-230 overflow-hidden mt-2 mx-2 w-225">
<a href="{{ post.route('view') }}" <a href="{{ post.route('view') }}"
class="fs-14 product p-0 mr-3 rounded position-relative bg-white link-dark text-decoration-none"> class="fs-14 product p-0 mr-3 rounded position-relative bg-white link-dark text-decoration-none">
<div class="related-image-wrapper w-225"> <div class="related-image-wrapper w-225">