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

Contributors page styled #78

Open
wants to merge 3 commits into
base: main
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
Binary file added .DS_Store
Binary file not shown.
Binary file modified src/.DS_Store
Binary file not shown.
Binary file added src/_includes/.DS_Store
Binary file not shown.
56 changes: 37 additions & 19 deletions src/_includes/layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/css/reset.css" />
<link rel="stylesheet" href="/css/styles.css" />
<link rel="stylesheet" href="/css/navbar.css" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@900&family=Source+Code+Pro:ital,wght@0,400;0,600;1,500;1,600&display=swap" rel="stylesheet">
<title>{{ title }} | Lunch.dev Community Calendar</title>
</head>
<body data-typeface="system-ui">
{% include partials/header.html %}
<div data-layout="centered-single-column">
<main>
<h1>{{ title }}</h1>
{{ content }}
</main>
</div>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"
></script>
<!-- ============== -->
<link rel="stylesheet" href="/css/reset.css" />
<link rel="stylesheet" href="/css/styles.css" />
<link rel="stylesheet" href="/css/navbar.css" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@900&family=Source+Code+Pro:ital,wght@0,400;0,600;1,500;1,600&display=swap"
rel="stylesheet"
/>
<title>{{ title }} | Lunch.dev Community Calendar</title>
</head>
<body data-typeface="system-ui">
{% include partials/header.html %}
<div data-layout="centered-single-column">
<main>
<div class="container">
<h1>{{ title }}</h1>
{{ content }}
</div>
</main>
</div>
</body>
</html>
40 changes: 24 additions & 16 deletions src/contributors.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,27 @@ title: Contributors
layout: 'layouts/page.html'
---

{% for contributor in contributors %}
<article aria-labelledby="h-{{ contributor.login }}">
<img src="{{ contributor.avatar_url }}" alt="" />
<h2 id="h-{{ contributor.login }}">
<a href="{{ contributor.profile }}">{{ contributor.name }}</a>
</h2>
<ul>
{% for contribution in contributor.contributions %}
<li>
<span aria-hidden="true">{{ contributions[contribution].emoji }}</span>
<span>{{ contributions[contribution].name }}</span>
</li>
{% endfor %}
</ul>
</article>
{% endfor %}
<div class="row">
{% for contributor in contributors %}
<div class="col-md-6 d-flex justify-content-center crop">
<article class="card shadow-lg p-3 mb-5 bg-white rounded" aria-labelledby="h-{{ contributor.login }}">
<img class="card-img-top" src="{{ contributor.avatar_url }}" alt="" />
<div class="card-body">
<h2 id="h-{{ contributor.login }}">
<a class="btn btn-warning" href="{{ contributor.profile }}">{{ contributor.name }}</a>
</h2>
<ul>
{% for contribution in contributor.contributions %}
<li>
<span aria-hidden="true">{{ contributions[contribution].emoji }}</span>
<span>{{ contributions[contribution].name }}</span>
</li>
{% endfor %}
</ul>
</div>
</article>
</div>
{% endfor %}
</div>