Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to change the landing page orientation #101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
27 changes: 25 additions & 2 deletions _includes/landing.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{% if site.landing_vertical == false %}

<div class="row justify-content-center align-items-center p-4">
<div class="col-lg-4 col-md-6 text-center mt-4">

Expand All @@ -8,8 +10,29 @@
<img src="{{ site.author.image }}" alt="{{ site.title }}" class="circle-image wow animated zoomIn" data-wow-delay=".1s">
</div>
</div>
</div>
<div class="col-lg-8 col-md-6 text-center mt-4">
{% for desc in site.description %}
<p class="text-muted wow animated slideInUp" data-wow-delay=".15s">{{ desc }}</p>
{% endfor %}
</div>
</div>

<p class="text-muted wow animated slideInUp" data-wow-delay=".15s">{{ site.description }}</p>

{% else %}
<div class="row justify-content-center align-items-center p-4">
<div class="col-lg-4 col-md-6 text-center mt-4">
<!-- Fine Circle Responsive Image -->
<div id="container" class="my-2">
<div id="dummy"></div>
<div id="element">
<img src="{{ site.author.image }}" alt="{{ site.title }}" class="circle-image wow animated zoomIn" data-wow-delay=".1s">
</div>
</div>
{% for desc in site.description %}
<p class="text-muted wow animated slideInUp" data-wow-delay=".15s">{{ desc }}</p>
{% endfor %}
</div>
</div>
</div>

{% endif %}
6 changes: 2 additions & 4 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
### Site Settings ###
title : portfolYOU
description : >-
I turn coffee :coffee: into code,
use tabs over spaces
and never broke production.
description : ["I turn coffee :coffee: into code, use tabs over spaces and never broke production."]
baseurl : "/portfolYOU" # Change to empty quotes if you are hosting your site at <your-username>.github.io directly
repository : YoussefRaafatNasry/portfolYOU # Change to <your-username>/<your-username>.github.io (or remove it if you don't need remote projects)
remote_theme : YoussefRaafatNasry/portfolYOU
open_new_tab : false # Opens external URLs in new tab (works for posts, projects and navbar only)
landing_vertical : false # Set the front page to be vertical (true) or horizontal (false)


### Plugins ###
Expand Down