Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
4 changes: 2 additions & 2 deletions flask_qa/static/css/stylesh34.css
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@
width: max-content;
margin: auto;
color: black;
text-decoration: inherit;
/* text-decoration: none; */
}

.post-subtitle{
font-size: 1.2rem;
color: rgb(102, 102, 102);
text-decoration: inherit;
text-decoration: none;
margin-bottom: .5rem;
}

Expand Down
40 changes: 29 additions & 11 deletions flask_qa/templates/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
{% block head %}

<title>Blogs</title>
<style>
.blog-link{
text-decoration: none;
height: 100%;
width: 100%;
}
.post-link{
padding: 0;
}
</style>

</head>

Expand Down Expand Up @@ -37,27 +47,35 @@ <h1 class="h-primary-head">Blogs</h1>
{% for post in posts %}


<button onclick="disp_post({{ post.slug }})" id="post-link">
<a href="/post/{{ post.slug }}">
<div class="post-preview">
<!-- <a href="/post/{{ post.slug }}" class="blog-link"> -->
<button onclick="disp_post({{ post.slug }})" id="post-link" class="post-link">
<div class="post-preview" style="height: 100%;width: 100%;">

<h2 class="post-title">
<h2 class="post-title" style="width: 100%;">
{{post.title}}
</h2>

<h3 class="post-subtitle">
{{post.tagline}}
</h3>
</a>
<p class="post-meta">Posted by
<a id="fullname" href="#">{{post.fullname}}</a>
on {{post.date}}</p>
<div class="post-start">
{{post.content[0:50]}}...
</div>
<a id="fullname" href="#" style="text-decoration: none;">{{post.fullname}}
</a>
on {{post.date}}
</p>
<div class="post-start">
{{post.content[0:50]}}...
</div>
</div>

</button>
<script>
document.getElementById("post-link").onclick=myfuntion;
function myfuntion(){
window.open("/post/{{ post.slug }}");
}
</script>
<!-- </a> -->


<hr style="margin: 1rem;">
Expand Down
4 changes: 2 additions & 2 deletions flask_qa/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{url_for('static',filename='css/stylesh34.css')}}">
<link rel="stylesheet" media="screen and (min-width: 481px) and (max-width:1100px)"
href="{{url_for('static',filename='css/phone26.css')}}">
href="{{url_for('static',filename='css/phone29.css')}}">
<link rel="stylesheet" media="screen and (max-width:480px)"
href="{{url_for('static',filename='css/smallphone26.css')}}">
href="{{url_for('static',filename='css/smallphone29.css')}}">



Expand Down