Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
ecb9c095
Commit
ecb9c095
authored
2 years ago
by
Štěpán Farka
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] tweet section to person page
parent
9c5712bf
No related branches found
No related tags found
2 merge requests
!607
Pirati.cz
,
!575
Feature/pirati cz
Pipeline
#9568
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/templates/main/main_person_page.html
+23
-16
23 additions, 16 deletions
main/templates/main/main_person_page.html
with
23 additions
and
16 deletions
main/templates/main/main_person_page.html
+
23
−
16
View file @
ecb9c095
...
...
@@ -50,26 +50,33 @@
</section>
</div>
{% if tweet_list %}
<section
class=
"grid-container no-max"
>
<section
class=
"grid-container no-max
mr-0 person-twitter-section mb-4 xl:mb-20
"
>
<div
class=
"grid-content-with-right-side"
>
<h2
class=
"head-4xl
text-center xl:
text-left"
>
<h2
class=
"head-4xl text-left"
>
Aktuálně na Twitteru
</h2>
<div
class=
"mb-8 flex flex-wrap"
>
<div
class=
"__js-root twitter-carousel-root"
>
<ui-twitter-carousel>
{% for tweet in page.tweet_list %}
<div
class=
"md:w-1/3 lg:w-1/4"
>
<div
class=
"p-4 flex flex-col items-center text-center border border-grey-100"
>
<img
class=
"rounded-full shadow-sm w-12 mb-2"
src=
"{{ tweet.author_img_url }}"
<div
class=
"w-full flex max-w-xs"
>
<div
class=
"mb-5 p-4 flex flex-col items-center text-center border border-grey-100 sm:mb-0"
>
<div
class=
"flex flex-row sm:flex-col items-center"
>
<img
class=
"rounded-full shadow-sm w-12 h-12 mb-4 sm:mb-2"
src=
"{{ tweet.author_img_url }}"
alt=
"user image"
/>
<h5
class=
"font-alt mb-2"
>
{{ tweet.author_name }}
</h5>
<div
class=
"flex flex-col sm:flex-col"
>
<h5
class=
"font-alt text-xl mb-2 sm:text-base"
>
{{ tweet.author_name }}
</h5>
<small
class=
"mb-4 text-turquoise-400"
>
@{{ tweet.author_username }}
</small>
<p
class=
"text-base leading-6 mb-2"
>
{{ tweet.text }}
</p>
<a
href=
"twitter.com/{{ tweet.author_username }}"
class=
"hover:no-underline"
>
</div>
</div>
<p
class=
"text-small sm:text-base leading-6 mb-2"
>
{{ tweet.text }}
</p>
<a
href=
"twitter.com/{{ tweet.author_username }}"
class=
"hover:no-underline"
target=
"_blank"
>
<i
class=
"ico--twitter text-turquoise-400 text-xl"
></i>
</a>
</div>
</div>
{% endfor %}
</ui-twitter-carousel>
</div>
</div>
</section>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment