ray ☆彡's profile picture

Published by

published
updated

Category: Web, HTML, Tech

letterboxd top 4 code

display example:

FAVORITE FILMS


Spider-Man: Into the Spider-Verse (2018)
Perfect Blue (1997)
The Dark Knight (2008)
Logan (2017)

this is also mobile friendly :) please lmk if there are any bugs and i will fix them ASAP

note: will need to be adjusted to suit your film taste, adjustments to be made will be marked with a squared bracket (remove the square brackets when pasting in data but not the quote marks) as well as a comment

customisable code:

<!-- made by ray (https://spacehey.com/deadonarrival) -->

<section id="top4">
    <p>FAVORITE FILMS</p>
    <hr>

    <div id="films">

        <div class="film">
            <div class="film-cover">
                <a href="[link to films letterboxd page - optional]"> <!-- adjustment needed -->
                    <img src="[image cover of the film]"> <!-- adjustment needed -->
                </a>
            </div>
            <div class="film-title">[film title] ([year])</div> <!-- 2 adjustments needed -->
            <div class="down-arrow"></div>
        </div>

        <div class="film">
            <div class="film-cover">
                <a href="[link to films letterboxd page - optional]"> <!-- adjustment needed -->
                    <img src="[image cover of the film]"> <!-- adjustment needed -->
                </a>
            </div>
            <div class="film-title">[film title] ([year])</div> <!-- 2 adjustments needed -->
            <div class="down-arrow"></div>
        </div>

        <div class="film">
            <div class="film-cover">
                <a href="[link to films letterboxd page - optional]"> <!-- adjustment needed -->
                    <img src="[image cover of the film]"> <!-- adjustment needed -->
                </a>
            </div>
            <div class="film-title">[film title] ([year])</div> <!-- 2 adjustments needed -->
            <div class="down-arrow"></div>
        </div>

        <div class="film">
            <div class="film-cover">
                <a href="[link to films letterboxd page - optional]"> <!-- adjustment needed -->
                    <img src="[image cover of the film]"> <!-- adjustment needed -->
                </a>
            </div>
            <div class="film-title">[film title] ([year])</div> <!-- 2 adjustments needed -->
            <div class="down-arrow"></div>
        </div>

    </div>
</section>

<style>
#top4 {
    background: #171B20;
    border: 1px solid rgb(72, 90, 108);
    border-radius: 3px;
}

#top4 p {
    color: #99a9b9;
    font-family: GraphikWeb, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 0px 10px 0;
}

#top4 hr {
    border: 1px solid rgb(72, 90, 108);
    width: 95%;
}

#films {
    display: flex;
    padding: 4px;
}

.film {
    flex: 1;
    position: relative;
}

.film-cover {
    width: 95%;
    border: 1px solid rgb(72, 90, 108);
    border-radius: 3px;
    margin: 2px;
    transition: border-color .3s;
}

.film-cover:hover {
    border-color: lime;
}

.film-cover img {
    display: block;
    width: 100%!important;
    border-radius: 3px;
}

#top4 a {
    display: block;
}

.film-title {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    background: rgb(72, 90, 108);
    color: #DEF;
    padding: 4px 8px;
    border-radius: 3px;
    font-family: GraphikWeb, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 1001;
}

.down-arrow {
  position: absolute;
  left: 45%;
  bottom: calc(100% + 3px);
  width: 14px;
  height: 14px;
  background: rgb(72, 90, 108);
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 1000;
}

.film:hover .film-title,
.film:hover .down-arrow {
    opacity: 1;
}

.blog-entry .content *, .bulletin .content *, .topic-box .content *, .reply-box .content * {
  max-width: none !important;
}
</style>


22 Kudos

Comments

Displaying 8 of 8 comments ( View all | Add Comment )

Lea

Lea's profile picture

this is so useful for my blog, thank you so much!!


Report Comment

FrancisOnVenus

FrancisOnVenus's profile picture

omg can someone help me use thiz, I'm not familiar with codinggg


Report Comment



ofc!!
1. obvi just copy the code and paste it straight into your profile
2. look for all the comments marked with 'adjustment/s needed' (there are 12, 3 for each movie), the adjustments are indicated with square brackets[] which you will need to remove for the code to work

3. for links one (a href="[link to films letterboxd page - optional]") you just paste in the link to the letterboxd page eg.
a href="https://letterboxd.com/film/spider-man-into-the-spider-verse"

4. for the image one (img src="[image cover of the film]"), you paste in the link using a web png for the movie cover eg.
img src="https://a.ltrbxd.com/resized/film-poster/2/5/1/9/-3/3/251943-spider-man-into-the-spider-verse-0-2000-0-3000-crop.jpg?v=538fe0ada6"

5. for the film title n year (div class="film-title">[film title] ([year])), you just replace [film title] with the name of the movie and [year] with the year it was published eg
div class="film-title">Spider-Man: Into the Spiderverse (2018)

by ray ☆彡; ; Report

LMK if u still need help though idk how well i did at explaining it :sob:

by ray ☆彡; ; Report

♫⃠𝙈𝙖𝙧𝙞𝙣 is Masky??.¹⁶¹

♫⃠𝙈𝙖𝙧𝙞𝙣 is Masky??.¹⁶¹'s profile picture

using, this is so cool, deadass the best thing i've seen in a bit


Report Comment



TY

by ray ☆彡; ; Report

RitaFantasma

RitaFantasma's profile picture

Omg thanks for this!!! :D


Report Comment

كارمن|𝒞armen

كارمن|𝒞armen's profile picture

omg you're a gift from heaven. keep posting please.


Report Comment

sadi ִ𖤐

sadi ִ𖤐's profile picture

USING THIS HOLY PEAK


Report Comment

asher ^_^

asher ^_^'s profile picture

chatgpt generate me PEAK🔮


Report Comment

Arlo

Arlo's profile picture

Oooo this is so cool


Report Comment



ty :D

by ray ☆彡; ; Report