Skip to content

Instantly share code, notes, and snippets.

View eddiesigner's full-sized avatar
🤘
~ whoami

Eduardo Gómez eddiesigner

🤘
~ whoami
View GitHub Profile
@eddiesigner
eddiesigner / liebling-light-mode.css
Last active July 7, 2020 08:43
Liebling Ghost theme - Force light mode
:root,
[data-theme="light"],
[data-theme="dark"],
:root:not([data-theme="light"]) {
--background-color: #fff;
--primary-foreground-color: #4a4a4a;
--secondary-foreground-color: #000;
--primary-subtle-color: #04aeee;
--secondary-subtle-color: #f4f8fd;
--titles-color: #333;
@eddiesigner
eddiesigner / Card.js
Created September 1, 2018 16:15
Recreating the Airbnb scaling effect on components with React native
import React, { PureComponent } from 'react';
import { Dimensions, Animated, TouchableWithoutFeedback } from 'react-native';
import styled from 'styled-components';
// I use these values because I have two columns of cards with some space and because
// I want to keep a vertical ratio.
// You can change them for some fixed values or anything else, it depends of your needs
const cardWidth = (Dimensions.get('window').width / 2) - 30;
const cardHeight = cardWidth * 1.4
@eddiesigner
eddiesigner / README.md
Last active July 31, 2022 08:59
Liebling infinite scrolling