Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into dark-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RashikaKarki authored Feb 4, 2021
2 parents 3741b13 + 4e6a0b3 commit 99d1e94
Show file tree
Hide file tree
Showing 12 changed files with 133 additions and 45 deletions.
11 changes: 11 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ GEM
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
ffi (1.13.1)
ffi (1.13.1-x64-mingw32)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.5)
Expand Down Expand Up @@ -53,13 +55,22 @@ GEM
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sassc (2.4.0-x64-mingw32)
ffi (~> 1.9)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
tzinfo (1.2.9)
thread_safe (~> 0.1)
tzinfo-data (1.2021.1)
tzinfo (>= 1.0.0)
unicode-display_width (1.7.0)
wdm (0.1.1)
webrick (1.7.0)

PLATFORMS
ruby
x64-mingw32

DEPENDENCIES
jekyll (~> 4.1.1)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Achievement example.
date: Jan 2021
```
## Add project posts
## Add project/blog posts
1. Make a new `.md` file inside of `projects`.
2. Add the header to your markdown file (see below) and change the title to the name of your blog post.
Expand All @@ -66,7 +66,7 @@ layout: page
- title: Machine Learning Project
event: MLH Fellowship Explorer Sprint 3 - Batch 1
date: Fall 2020
page-name: sprint1
page-name: Sprint1
```
## Add Contact Us form

Expand Down
3 changes: 2 additions & 1 deletion _data/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
- title: Fun Game
event: MLH Fellowship Explorer Sprint 2
date: Fall 2020 - Batch 1
page-name: Sprint2

- title: Flash Card Generator
event: MLH Fellowship Explorer Sprint 1
date: Fall 2020 - Batch 1
page-name: sprint1
page-name: Sprint1
6 changes: 5 additions & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<div class="nav-content">
<a href="{{ '/' | relative_url }}">
<div class="nav-logo">
<img src="./assets/img/logo.svg" />
<img src="{{ site.url }}/assets/img/logo.svg" />
</div>
<div class="nav-links">
<a class="nav-link" href="{{ site.url }}/">Home</a>
<a class="nav-link" href="{{ site.url }}/blog">Blog</a>
<a class="nav-link" href="{{ site.url }}/cv/resume.pdf">Resume</a>
</div>
<div class="nav-toogle">
Expand Down
5 changes: 4 additions & 1 deletion _includes/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2>{{include.title}}</h2>
</div>
{% else %}
{% if item.page-name %}
<a href="{{ site.url }}/projects/{{ item.page-name }}">
<a href="{{ site.url }}/projects/{{ item.page-name }}" class="link-card">
{% else %}
<a>
{% endif %}
Expand All @@ -19,6 +19,9 @@ <h2>{{include.title}}</h2>
<p class="location">{% if include.title == "Education" %}{{ item.institute }}{% elsif include.title == "Work Experience" %}{{item.company}}{% else %}{{item.event}}{% endif %}</p>
<p class="dates">{{ item.dates }}</p>
</div>
{% if item.page-name %}
<object type="image/svg+xml" data="./assets/img/launch.svg" class="launch-icon"></object>
{% endif %}
</div>
{% if include.title == "Projects" %}
</a>
Expand Down
27 changes: 12 additions & 15 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
---
layout: default
---

<div class="banner">
<div class="container">
<div class="logo">
<a href="{{ site.url }}">
<img src="{{ site.url }}/assets/img/logo.svg"/>
</a>
</div>
<div class="title">
{{ page.title }}
<body>
{% include navbar.html %}
<div class="banner">
<div class="container">
<div class="title">
{{ page.title }}
</div>
</div>
</div>
</div>

<div class="container page">
{{ content }}
</div>
<div class="container page">
{{ content }}
</div>
</body>
65 changes: 43 additions & 22 deletions _sass/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,30 +31,50 @@
}
}


body {
background-color: #f5f5f9;
margin-bottom: 50px;
background-color: #f5f5f9;
margin-bottom: 50px;
}
h2 {
margin-bottom: 20px;
margin-top: 20px;
font-weight: 700;
text-align: center;
margin-bottom: 20px;
margin-top: 20px;
font-weight: 700;
text-align: center;
}

.card {
display: flex;
flex-direction: row;
align-items: center;
margin: 20px 30px;
background-color: white;
border-radius: .375rem;
padding: 1.5em;
font-size: $card_font_size;
display: flex;
flex-direction: row;
align-items: center;
margin: 20px 30px;
background-color: white;
border-radius: 0.375rem;
padding: 1.5em;
font-size: 1.2em;
font-size: $card_font_size;
position: relative;

.launch-icon {
position: absolute;
right: 14px;
top: 14px;
pointer-events: none;
}
}

.link-card:hover {
color: inherit;
text-decoration: none;
}

.link-card {
.card:hover {
box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}
}

a {

color: inherit;
}

Expand All @@ -79,17 +99,18 @@ a {
font-size: small;
color: inherit;
}

}

.icon {
width: 70px;
height: 70px;
margin-right: 20px;
padding: 10px;
width: 70px;
height: 70px;
margin-right: 20px;
padding: 10px;

img {
width: 100%;
}
img {
width: 100%;
}
}

.darkmode {
Expand Down
14 changes: 11 additions & 3 deletions _sass/navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@
width: 350px;
}

.nav-link {
.nav-links {
position: absolute;
top: 8px;
right: 8px;
display: flex;
flex-direction: row;
}

.nav-link {
color: white;
top: 10px;
right: 10px;
font-weight: 400;
}


.nav-toogle {
position: absolute;
color: white;
Expand All @@ -35,6 +42,7 @@
}

a{

transition: 0.5s;
}

Expand Down
1 change: 1 addition & 0 deletions assets/img/launch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: default
---

<body>
{% include navbar.html %}
<h2>BLOG POSTS</h2>
<div class="card-container">
{% for item in site.data.projects %}
{% if item.page-name %}
<a href="{{ site.url }}/projects/{{ item.page-name }}" class="link-card">
<div class="card">
<div class="info">
<p class="title">{{ item.page-name }}</p>
<p class="dates">{{ item.date }}</p>
</div>
<object type="image/svg+xml" data="./assets/img/launch.svg" class="launch-icon"></object>
</div>
</a>
{% endif %}
{% endfor %}
</body>
File renamed without changes.
20 changes: 20 additions & 0 deletions projects/Sprint2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Sprint 2 Project
layout: page
---

## Inspiration

Cat ipsum dolor sit amet, attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? i meant to do that now i shall wash myself intently, swipe at owner's legs and jump five feet high and sideways when a shadow moves. Pee in human's bed until he cleans the litter box groom forever, stretch tongue and leave it slightly out, blep yet sit in a box for hours scamper, so do i like standing on litter cuz i sits when i have spaces, my cat buddies have no litter i live in luxury cat life.

## What it does

Cat ipsum dolor sit amet, attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? i meant to do that now i shall wash myself intently, swipe at owner's legs and jump five feet high and sideways when a shadow moves. Pee in human's bed until he cleans the litter box groom forever, stretch tongue and leave it slightly out, blep yet sit in a box for hours scamper, so do i like standing on litter cuz i sits when i have spaces, my cat buddies have no litter i live in luxury cat life.

## How we built it

Cat ipsum dolor sit amet, attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? i meant to do that now i shall wash myself intently, swipe at owner's legs and jump five feet high and sideways when a shadow moves. Pee in human's bed until he cleans the litter box groom forever, stretch tongue and leave it slightly out, blep yet sit in a box for hours scamper, so do i like standing on litter cuz i sits when i have spaces, my cat buddies have no litter i live in luxury cat life.

## Challenge we ran into

Cat ipsum dolor sit amet, attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? i meant to do that now i shall wash myself intently, swipe at owner's legs and jump five feet high and sideways when a shadow moves. Pee in human's bed until he cleans the litter box groom forever, stretch tongue and leave it slightly out, blep yet sit in a box for hours scamper, so do i like standing on litter cuz i sits when i have spaces, my cat buddies have no litter i live in luxury cat life.

0 comments on commit 99d1e94

Please sign in to comment.