Skip to content

Commit

Permalink
Fix a bug where the emojis on hero section differ by OSs
Browse files Browse the repository at this point in the history
  • Loading branch information
dongzoolee committed Jan 13, 2024
1 parent 1d6bbeb commit 58dfad4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions pages/index.page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Head from "next/head";
import styled, { css } from "styled-components";

import Layout from "../components/Layout";

const Main = () => {
Expand Down Expand Up @@ -37,8 +38,10 @@ const Main = () => {
<MainWrap className="main-wrap">
<ContentWrap className="fade-in">
<HeroCatchPhrase>
<img src="/res/lightbulb.png" alt="lightbulb-emoji" />
THINK <br />
DIFFERENT
<img src="/res/lightning.png" alt="lightbulb-emoji" />
</HeroCatchPhrase>
<TextSubTitle>
<span
Expand Down Expand Up @@ -285,17 +288,24 @@ const HeroCatchPhrase = styled.span`
color: ${(props) => props.theme.color.primary};
&::before {
position: relative;
img {
position: absolute;
width: 4.2rem;
&:nth-of-type(1) {
transform: translateX(-100%);
}
&:nth-of-type(2) {
right: 0;
transform: translate(100%, -100%);
}
@media ${(props) => props.theme.device.sm_md} {
content: "";
display: none;
}
content: "💡";
position: absolute;
transform: translateX(-100%);
}
&::after {
content: "⚡";
position: absolute;
}
@media ${(props) => props.theme.device.sm} {
Expand Down
Binary file added public/res/lightbulb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/res/lightning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 58dfad4

Please sign in to comment.