Skip to content

Commit

Permalink
Structuring HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
gkunwar committed Nov 17, 2023
1 parent 706db94 commit d49dbb9
Show file tree
Hide file tree
Showing 11 changed files with 83 additions and 74 deletions.
7 changes: 4 additions & 3 deletions _includes/body.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<body>
<body class="{{page.group}}">
{% include header.html %}
<a href="https://lnkd.in/ge-akEbF" class="btn btn-primary btn__submit--project" target="_blank">Submit Your Project</a>
<main>
{% include showcase.html %}
<!--Footer begins here-->
{{content}}
</main>
<!--Footer begins here-->
{% include footer.html %}
</body>
4 changes: 2 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<head>
{% include meta.html %}
<title>{{site.title}} | Built In Ruby</title>
<title>{{site.title}} | Built With Ruby</title>
<link rel="stylesheet" href="{% if site.baseurl %}{{site.baseurl}}{% else %}{% endif %}/assets/css/style.css">
<script src="https://kit.fontawesome.com/6a97161b76.js" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
Expand All @@ -15,4 +15,4 @@

gtag('config', 'G-2KL4P15L2X');
</script>
</head>
</head>
9 changes: 4 additions & 5 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
href="{% if page.layout == 'default' %}{{site.url}}{{site.baseurl}}/#{% else %}{{site.url}}{{site.baseurl}}/{% endif %}">
<img
src="{{site.baseurl}}/assets/images/builtwithRuby-logo.svg"
alt="Built In Ruby"
alt="Built With Ruby"
/>
</a>
</div>
<p class="text-center text-light header__text ">#BuiltWithRuby is an inspiration resource showcasing totally rocking ruby app made by people from all over the world.</p>
{% if page.layout == 'default' %}
<p class="text-center text-light header__text">#BuiltWithRuby is an inspiration resource showcasing totally rocking ruby app made by people from all overv the world.</p>
{% endif %}
</div>
</div>
</nav>
</div>
<div class="container">

</div>
4 changes: 4 additions & 0 deletions _includes/showcase.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
layout: default
---

<div class="container">
<div class="masonry ">
{% for project in site.posts %}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
{% include head.html %}
{% include body.html %}
{% include head.html %}
{% include body.html %}
</html>
4 changes: 2 additions & 2 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
layout: post
layout: default
---
<h1>hello</h1>
{{ content }}
87 changes: 31 additions & 56 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,62 +1,37 @@
<!DOCTYPE html>
<html>
{% include head.html %}
<body class="project">
<div class="header">
<nav class="navbar is-black is-fixed-top" role="navigation" aria-label="main navigation" id="navbar">
<div class="container">
<div class="col-6 m-auto text-center">
<div class="navbar-brand ">
<a class="navbar-item has-text-centered "
href="{% if page.layout == 'default' %}{{site.url}}{{site.baseurl}}/#{% else %}{{site.url}}{{site.baseurl}}/{% endif %}">
<img
src="{{site.baseurl}}/assets/images/builtwithRuby-logo.svg"
alt="Built In Ruby"
/>
</a>
</div>
</div>
---
layout: default
---
<div class="container">
<div class="col-lg-7 col-md-10 col-sm-12 p-4 m-auto bg-white project__showcase">
<div class="row">
<div class="col-md-5">
<img src="{{ page.image }}" alt="" class="img-fluid project__image">
</div>
</nav>
</div>
<main>
<div class="container">
<div class="col-lg-7 col-md-10 col-sm-12 p-4 m-auto bg-white project__showcase">
<div class="row">
<div class="col-md-5">
<img src="{{ page.image }}" alt="" class="img-fluid project__image">
</div>
<div class="col-md-7">
<div class="project__body">
<div class="d-flex justify-content-between">
<div class="project__type ">
<div class="project__industry">{{ page.type }}</div>
<h3 class="project__name">{{ page.title }}</h3>
</div>
<div class="">
<a href="{{ page.website_link }}" target="_blank" class="btn btn-danger btn-sm btn-round">Visit Website</a>
</div>
</div>
<p class="project__description mt-2">
{{ page.description }}
</p>
<div class="project__technology mb-3">
<label class="project__label"> Technoloy</label><br>
<div class="project__data">{{ page.technology }}</div>
</div>
<div class="project__avaiable">
<label class="project__label"> Available on:</label><br>
<div class="project__data">{{ page.available_on }}</div>
</div>
<div class="col-md-7">
<div class="project__body">
<div class="d-flex justify-content-between">
<div class="project__type ">
<div class="project__industry">{{ page.type }}</div>
<h3 class="project__name">{{ page.title }}</h3>
</div>
<div class="">
<a href="{{ page.website_link }}" target="_blank" class="btn btn-danger btn-sm btn-round">Visit Website</a>
</div>
</div>
<p class="project__description mt-2">
{{ page.description }}
</p>
<div class="project__technology mb-3">
<label class="project__label"> Technoloy</label><br>
<div class="project__data">{{ page.technology }}</div>
</div>
<div class="project__avaiable">
<label class="project__label"> Available on:</label><br>
<div class="project__data">{{ page.available_on }}</div>
</div>
</div>
</div>
</div>
</main>
<!-- <div class="container mt-5">
<div class="h5 text-center">Related Project</div>
</div> -->
{% include footer.html %}
</body>
</html>
</div>
</div>

1 change: 1 addition & 0 deletions _posts/2023-11-08-bluvagas.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ available_on: Web
type: Job Board
permalink: /bluvagas/
website_link: https://www.bluvagas.com.br/
group: project
---
13 changes: 12 additions & 1 deletion _sass/_showcase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,15 @@
margin-top: 1rem;
}
}
}
}

.btn{
&__submit{
&--project{
position: fixed;
top: 1.5rem;
right: 1.5rem;
z-index: 9;
}
}
}
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
layout: default
group: home
---

<div class="container">
<div class="masonry ">
{% for project in site.posts %}
<div class="masonry-item">
<a href="{{project.url}}" class="d-block">
<img src="{{base.url}}
{{project.image}}
" alt="{{ project.title }}" class="masonry-content">
<div class="masonry-item-name p-3 bg-white font-weight-bold">
{{ project.title }}
</div>
</a>
</div>
{% endfor %}
</div>
</div>
3 changes: 0 additions & 3 deletions index.md

This file was deleted.

0 comments on commit d49dbb9

Please sign in to comment.