Skip to content

Commit

Permalink
Remove social js
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Jan 9, 2025
1 parent d870525 commit 2209b97
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 96 deletions.
27 changes: 0 additions & 27 deletions assets/js/social.ts

This file was deleted.

2 changes: 1 addition & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { solidPlugin } from "esbuild-plugin-solid"
const arg = process.argv[2]

const options = {
entryPoints: ["assets/js/app.ts", "assets/js/social.ts"],
entryPoints: ["assets/js/app.ts"],
bundle: true,
minify: true,
metafile: true,
Expand Down
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
"@totem.org/solid-boring-avatars": "^0.0.2",
"@zootools/email-spell-checker": "^1.12.0",
"add-to-calendar-button": "^2.3.1",
"modern-screenshot": "^4.5.1",
"solid-element": "^1.8.0",
"solid-icons": "^1.1.0",
"solid-js": "^1.8.14",
Expand Down
61 changes: 2 additions & 59 deletions totem/circles/templates/circles/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,70 +8,12 @@
{% block description %}{{ object.content_html|striptags|truncatewords:30 }}{% endblock description %}
{% block meta %}
<meta name="robots" content="noindex" />
{% comment %}Adding Google fonts seems to let the screenshot work{% endcomment %}
{% comment %}
<link
href="http://fonts.googleapis.com/css?family=Montserrat"
name="Montserrat"
rel="stylesheet"
type="text/css" />
{% endcomment %}
{% endblock meta %}
{% block content %}
<script
defer
src="{% static 'js/bundles/social.js' %}"
type="module"></script>
<div class="h-2"></div>

{% comment %}Instagram Square Post{% endcomment %}
<div class="m-auto max-w-5xl px-5 pt-10">
<!-- prettier-ignore-start -->
{% if object.image %}
<style>
.circle-bg-image-{{ object.slug }}{
background-image: linear-gradient(355deg, rgba(1, 1, 1, 0), rgba(0, 0, 0, 0.6)),url({{ object.image.url }});
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
</style>
{% endif %}
<!-- prettier-ignore-end -->
<button data-img class="text-left">
<div
class="{% if object.image %}circle-bg-image-{{ object.slug }}{% else %}no-image{% endif %} relative h-[540px] w-[540px]">
<div class="flex min-h-[400px] flex-col justify-between gap-y-5 p-5">
<div>
{% if event and event.title %}
<h1 class="h1 pb-3 text-white">{{ event.title }}</h1>
<div class="h3 text-white">{{ object.title }}</div>
{% else %}
<h1 class="h1 pb-3 text-white">{{ object.title }}</h1>
<div class="h3 text-white">{{ object.subtitle }}</div>
{% endif %}
<div class="text-white">
with
<a href="{{ object.author.get_keeper_url }}"
>{{ object.author.name }}</a
>
</div>
<div class="pt-2 font-bold text-white">
{{ event.start | date:"F j, Y" }}
</div>
<div class="text-white">{{ start_time_pst }}</div>
<div class="text-white">{{ start_time_est }}</div>
</div>
<div class="absolute bottom-4 right-4 max-w-[200px]">
<a href="{{ object.author.get_keeper_url }}">
{% avatar object.author size=150 classes="m-auto" %}
</a>
</div>
</div>
</div>
</button>
</div>
<div class="m-auto max-w-5xl px-5 pt-10">
<h2>Square Post</h2>
<a
href="{% url 'circles:event_social_img' event_slug=event.slug image_format="square" %}">
<img
Expand All @@ -83,6 +25,7 @@ <h1 class="h1 pb-3 text-white">{{ object.title }}</h1>
</div>

<div class="m-auto max-w-5xl px-5 pt-10">
<h2>2:1 Post</h2>
<a
href="{% url 'circles:event_social_img' event_slug=event.slug image_format="2to1" %}">
<img
Expand Down
2 changes: 1 addition & 1 deletion totem/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class User(AdminURLMixin, SluggedModel, AbstractUser):
check forms.SignupForm and forms.SocialSignupForms accordingly.
"""

objects: UserManager = UserManager()
objects: UserManager = UserManager() # type: ignore
# Related Types
onboard: "OnboardModel"
events_attending: "QuerySet[CircleEvent]"
Expand Down

0 comments on commit 2209b97

Please sign in to comment.