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

Tailwind Integration (new version 2.0.0) #90

Merged
merged 60 commits into from
Aug 23, 2022
Merged
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
e1d4df9
ADD: TailWindCSS App
farhaduneci Aug 1, 2022
f23c2e1
ADD: Django Compressor
farhaduneci Aug 2, 2022
d2a1ccc
ADD: NavBar TailWind Style
farhaduneci Aug 2, 2022
209416c
ADD Footer TailWind Style
farhaduneci Aug 2, 2022
232496f
UPDATE: Navbar Toggle Button Functionality
farhaduneci Aug 3, 2022
536a058
UPDATE: Thinner logo title, and more navbar padding
farhaduneci Aug 3, 2022
b2194ac
ADD: Particles JS
farhaduneci Aug 3, 2022
28b85df
ADD: Hero Section
farhaduneci Aug 3, 2022
e7097d7
ADD: Stats Section
farhaduneci Aug 4, 2022
86bddb7
UPDATE: New Darkmode Button, Minor bug fixes
farhaduneci Aug 4, 2022
2c8d2e6
ADD: Repo Info Section
farhaduneci Aug 4, 2022
4fd6504
ADD: Collove Icon to footer
farhaduneci Aug 4, 2022
2667792
Update: Collove Icon
farhaduneci Aug 4, 2022
4e859e6
UPDATE: Minor style changes
farhaduneci Aug 5, 2022
d71c596
ADD: Light/Dark mode full integration
farhaduneci Aug 5, 2022
f4fae59
ADD: Snippets template styles
farhaduneci Aug 5, 2022
ceb8cb4
ADD: ParticlesJS inactive for mobile devices
farhaduneci Aug 5, 2022
11ba901
Merge branch 'main' into feature/frontend_refactor
farhaduneci Aug 6, 2022
a8bd442
UPDATE: Removed particlesJS, Darkmode update
farhaduneci Aug 6, 2022
50b887d
ADD: Blog styles
farhaduneci Aug 6, 2022
215f2be
UPDATE: General Style Updates
farhaduneci Aug 6, 2022
c0761b1
ADD: Collove Section
farhaduneci Aug 7, 2022
c8429b4
UPDATE: General Style Updates, Added millify templatetag
farhaduneci Aug 11, 2022
f1058f3
FIX: Removed Tailwind typography code styles, using HJS now
farhaduneci Aug 11, 2022
9c66f03
ADD: Blog posts Tag styles
farhaduneci Aug 11, 2022
8f67387
FIX: Code block wrapping
farhaduneci Aug 11, 2022
3c3595a
UPDATE: Hope page style
farhaduneci Aug 12, 2022
64bd7b6
ADD: 404/500 Octocat images
farhaduneci Aug 12, 2022
d263dcd
ADD: Disclaimer page, Some style updates
farhaduneci Aug 12, 2022
58568d4
FIX: Files formatted via Black
farhaduneci Aug 12, 2022
9f9c46c
UPDATE: General Style Updates
farhaduneci Aug 17, 2022
b2548ea
ADD: Mobile Menu animation
farhaduneci Aug 18, 2022
892add3
UPDATE: General Style Updates
farhaduneci Aug 18, 2022
5e47641
Merge branch 'development' into feature/frontend_refactor
farhaduneci Aug 18, 2022
5add415
UPDATE: Pinned articles styles
farhaduneci Aug 18, 2022
98cf732
ADD: Update Contributors Command
farhaduneci Aug 20, 2022
6f9dd90
UPDATE: Using Cash.js insted of Jquery
farhaduneci Aug 20, 2022
9b65712
UPDATE: Blog features posts tag styles update
farhaduneci Aug 20, 2022
7535828
UPDATE: General Style Updates
farhaduneci Aug 21, 2022
097dfd2
ADD: Copy to clipboard button
farhaduneci Aug 21, 2022
65735d6
ADD: Loading screen
farhaduneci Aug 22, 2022
4e03347
UPDATE: Image assets compression
farhaduneci Aug 22, 2022
3c2c451
UPDATE: General Style Updates
farhaduneci Aug 22, 2022
5a5f8c5
UPDATE: Meta tags
farhaduneci Aug 22, 2022
8f1384c
UPDATE: Hashnode section + local fonts
farhaduneci Aug 22, 2022
c18adcc
UPDATE: Local Asciinema
farhaduneci Aug 22, 2022
fff8894
UPDATE: Populate JS files
farhaduneci Aug 22, 2022
07c35ec
"plus" symbol misplace fixed
lnxpy Aug 22, 2022
0fb9f3c
Merge pull request #87 from Farhaduneci/feature/frontend_refactor
farhaduneci Aug 22, 2022
aa81362
code quality observed
lnxpy Aug 22, 2022
4faa7e3
download_url moved to constants
lnxpy Aug 22, 2022
207aeed
Merge pull request #88 from lnxpy/development
lnxpy Aug 22, 2022
fee2ed3
FIX: Update Contributors command
farhaduneci Aug 22, 2022
87af50f
FIX: JS tags
farhaduneci Aug 22, 2022
54e6540
FIX: Blogs template meta tags
farhaduneci Aug 22, 2022
07ffdc0
static root issue fixed
lnxpy Aug 23, 2022
0410fda
Merge branch 'collove:development' into development
farhaduneci Aug 23, 2022
45af5d0
FIX: Sticky Navbar
farhaduneci Aug 23, 2022
cb8e072
FIX: Local fonts
farhaduneci Aug 23, 2022
97fb571
Merge pull request #89 from Farhaduneci/development
lnxpy Aug 23, 2022
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
Prev Previous commit
Next Next commit
UPDATE: Local Asciinema
farhaduneci committed Aug 22, 2022
commit c18adcc75929fc456ac21579bfe7b10775bcbaf4
2,508 changes: 2,508 additions & 0 deletions snippet/static/css/asciinema-player.css

Large diffs are not rendered by default.

File renamed without changes.
85 changes: 49 additions & 36 deletions snippet/static/js/app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Initialize the AOS library
AOS.init();

$(function () {
// Initialize the AOS library
AOS.init();

// Dark-mode switch functionality
$(".darkmode-switch").on("click", function () {
$("html").toggleClass("dark");
@@ -27,42 +27,55 @@ $(function () {
setTimeout(function () {
$("#loading-msg").hide();
}, 1000);
});

// Confetti animation
var skew = 1;
var duration = 10 * 1000;
var animationEnd = Date.now() + duration;
// Confetti animation
var skew = 1;
var duration = 10 * 1000;
var animationEnd = Date.now() + duration;

var canvas = document.getElementById("banner");
canvas.confetti =
canvas.confetti || confetti.create(canvas, { resize: true });

var canvas = document.getElementById("banner");
canvas.confetti = canvas.confetti || confetti.create(canvas, { resize: true });
function randomInRange(min, max) {
return Math.random() * (max - min) + min;
}

function randomInRange(min, max) {
return Math.random() * (max - min) + min;
}
(function frame() {
var timeLeft = animationEnd - Date.now();
var ticks = Math.max(200, 500 * (timeLeft / duration));
skew = Math.max(0.8, skew - 0.001);

(function frame() {
var timeLeft = animationEnd - Date.now();
var ticks = Math.max(200, 500 * (timeLeft / duration));
skew = Math.max(0.8, skew - 0.001);
canvas.confetti({
particleCount: 1,
startVelocity: 0,
ticks: ticks,
origin: {
x: Math.random(),
// since particles fall down, skew start toward the top
y: Math.random() * skew - 0.2,
},
colors: ["#ff005d"],
shapes: ["circle"],
gravity: randomInRange(0.2, 0.4),
scalar: randomInRange(0.4, 1),
drift: randomInRange(-0.4, 0.4),
});

canvas.confetti({
particleCount: 1,
startVelocity: 0,
ticks: ticks,
origin: {
x: Math.random(),
// since particles fall down, skew start toward the top
y: Math.random() * skew - 0.2,
},
colors: ["#ff005d"],
shapes: ["circle"],
gravity: randomInRange(0.2, 0.4),
scalar: randomInRange(0.4, 1),
drift: randomInRange(-0.4, 0.4),
});
if (timeLeft > 0) {
requestAnimationFrame(frame);
}
})();

if (timeLeft > 0) {
requestAnimationFrame(frame);
}
})();
// Initialize the Asciinema player
AsciinemaPlayer.create(
"/static/file/demo.cast",
document.getElementById("demo"),
{
rows: 18,
preload: true,
autoplay: true,
theme: "asciinema",
}
);
});
1 change: 1 addition & 0 deletions snippet/static/js/asciinema-player.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions snippet/templates/home_sections/hero.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section class="container pt-12 pb-6 flex flex-col lg:flex-row gap-2 md:gap-4 lg:gap-8 text-black dark:text-white">
<div class="flex flex-col flex-1 justify-center lg:pb-8">
<section class="container pt-12 pb-6 flex flex-col xl:flex-row gap-2 md:gap-4 lg:gap-8 text-black dark:text-white">
<div class="flex flex-col flex-1 justify-center lg:pb-8 max-w-screen-sm mx-auto xl:max-w-full xl:mx-0">
<div class="mb-4 text-center md:text-left">
<h1 class="text-3xl md:text-5xl lg:text-4xl font-bold">
<span class="text-pink-600">Modern-looking</span>
@@ -33,7 +33,7 @@ <h1 class="text-3xl md:text-5xl lg:text-4xl font-bold">
</div>
<p class="mt-2 text-neutral-500" id="copy-msg"></p>
</div>
<div class="flex-1 my-auto">
<script src="https://asciinema.org/a/510373.js" id="asciicast-510373" data-theme="asciinema" data-size="big" data-speed="3" data-rows="20"></script>
<div class="flex-1 mx-auto w-[95%] max-w-screen-sm xl:mx-0">
<div id="demo"></div>
</div>
</section>
2 changes: 1 addition & 1 deletion snippet/templates/home_sections/stat.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load millify %}
<section class="py-10 text-black dark:text-white bg-white dark:bg-black transition-colors duration-300 select-none">
<section class="py-6 md:py-10 text-black dark:text-white bg-white dark:bg-black transition-colors duration-300 select-none">
<div class="container flex flex-col gap-8 md:gap-10 items-center justify-center"
data-aos="fade-up"
data-aos-duration="400"
3 changes: 2 additions & 1 deletion templates/base/_css_tags.html
Original file line number Diff line number Diff line change
@@ -6,7 +6,8 @@
{% endcompress %}
{% compress css file styles %}
{% tailwind_css %}
<link rel="stylesheet" href="{% static 'css/extra.css' %}"/>
<link rel="stylesheet" href="{% static 'css/fonts.css' %}"/>
<link rel="stylesheet" href="{% static 'css/extra.css' %}"/>
<link rel="stylesheet" href="{% static 'css/aos.css' %}"/>
<link rel="stylesheet" href="{% static 'css/asciinema-player.css' %}"/>
{% endcompress %}
1 change: 1 addition & 0 deletions templates/base/_js_tags.html
Original file line number Diff line number Diff line change
@@ -4,5 +4,6 @@
<script src="{% static 'js/aos.js' %}"></script>
<script src="{% static 'js/cash.min.js' %}"></script>
<script src="{% static 'js/confetti.min.js' %}"></script>
<script src="{% static 'js/asciinema-player.min.js' %}"></script>
<script src="{% static 'js/app.js' %}"></script>
{% endcompress %}
12 changes: 11 additions & 1 deletion templates/disclaimer.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{% extends 'base/_base.html' %}
<!-- Titles -->
{% block title %}
PasteMe Disclaimer
PasteMe - Disclaimer
{% endblock title %}
{% block meta_title %}
This is a free-to-use service for the general public. The hosting provider is not liable for the content stored on this service. We do not know what is sent to our storage servers and we can't control or filter the data. We also can not give out any details about the author of the paste because we do not log them.
{% endblock meta_title %}
{% block meta_og_title %}
This is a free-to-use service for the general public. The hosting provider is not liable for the content stored on this service. We do not know what is sent to our storage servers and we can't control or filter the data. We also can not give out any details about the author of the paste because we do not log them.
{% endblock meta_og_title %}
{% block meta_tw_title %}
This is a free-to-use service for the general public. The hosting provider is not liable for the content stored on this service. We do not know what is sent to our storage servers and we can't control or filter the data. We also can not give out any details about the author of the paste because we do not log them.
{% endblock meta_tw_title %}
{% block content %}
<div class="md:container h-full flex items-center justify-center">
<div class="py-12 flex flex-col items-center justify-center gap-2">