반응형
반응형

어려운 상황을 겪을 때면 나는 마음속으로 이렇게 외친다.
“지금, 여기, 나 자신” 온갖 시련을 겪을 때마다 나는
‘지금, 여기, 나 자신’이라는 가르침에 따라 이렇게 자문한다.
‘지금 하지 않으면 언제 할 것인가?’ ‘여기서 하지 않으면 어디서 할 것인가?’
‘내가 직접 하지 않으면 누가 해결해 주겠는가?’
- 곤도 노부유키 일본 레이저 사장, ‘곤도의 결심’에서


누구도 다른 사람을 바꿀 수 없습니다.
이 세상에 내가 바꿀 수 있는 사람은 오직 나 밖에 없습니다.
그러나 내가 바뀜으로 인해 세상이 바뀝니다.
남 탓 하지 말고, 남이 해주길 기다리지 말고,
남을 바꾸려는 대신 “지금, 여기, 나 자신”이 하겠다고 나서는 순간
세상이 바뀌기 시작합니다.

반응형

'생활의 발견 > 아침편지' 카테고리의 다른 글

신묘막측한 인간의 몸  (0) 2023.09.04
부모와 자식 사이의 대화  (0) 2023.08.31
에너지와 에너지의 화학반응  (0) 2023.08.30
승리 투수가 되는 비결  (0) 2023.08.29
80대 백발의 할머니  (1) 2023.08.28
반응형

진정한 만남이란
얼굴만 마주 보는 게 아니라
마음과 마음이 통하고 에너지와 에너지가
화학반응을 하는 것이라고 합니다.


- 윤태규의 《우리 아이들, 안녕한가요》 중에서 -


* 삶은 다양한 만남의 연속입니다.
그 많은 만남 중에는 도리어 해가 되는 경우도
있습니다. 진정한 만남은 서로에게 도움을 주는
만남입니다. 마음과 마음, 에너지와 에너지가 만나
화학 반응을 일으켜 이전에 상상하지 못했던
좋은 변화를 안겨 주는 것입니다.
아름다운 꿈도 생겨납니다.

반응형

'생활의 발견 > 아침편지' 카테고리의 다른 글

부모와 자식 사이의 대화  (0) 2023.08.31
지금, 여기, 나 자신!  (0) 2023.08.30
승리 투수가 되는 비결  (0) 2023.08.29
80대 백발의 할머니  (1) 2023.08.28
몽골 초원의 밤  (0) 2023.08.26
반응형

YouTube Music은 Android 및 iOS에서 더 많은 사용자에게 실시간 가사를 제공합니다.

 

Apple Music과 Spotify는 이미 유사한 기능을 갖추고 있으므로 YouTube Music이 경쟁사와 보조를 맞추는 모습이 보기 좋습니다.

 

https://www.zdnet.com/article/youtube-music-rolls-out-real-time-lyrics-on-android-and-ios-to-more-users/

 

YouTube Music rolls out real-time lyrics on Android and iOS to more users

Both Apple Music and Spotify already have similar features, so it's nice to see YouTube Music keep pace with its competition.

www.zdnet.com

 

 

반응형
반응형

7 Unnecessary VSCode Extensions You Should Uninstall Now

https://medium.com/coding-beauty/unnecessary-vscode-extensions-e72cb637f1cf

 

7 Unnecessary VSCode Extensions You Should Uninstall Now

These extensions provide functionality VSCode now has built-in. Removing them will speed up your editor and reduce bloat.

medium.com

반응형
반응형

Flutter and Clean Architecture(I)

https://aderibigbejesutoni860.medium.com/flutter-and-clean-architecture-i-be75e13608d4

 

Flutter and Clean Architecture(I)

Writing codes is a skill. You must agree with me that reading codes is another skill. Building an app that is scalable and has clean…

aderibigbejesutoni860.medium.com

 

Flutter and Clean Architecture (II)

https://aderibigbejesutoni860.medium.com/flutter-and-clean-architecture-ii-bf39113df82b

 

Flutter and Clean Architecture (II)

In our last article, we established that clean architecture is a software architectural pattern that provides a structured and modular way…

aderibigbejesutoni860.medium.com

반응형
반응형

https://medium.com/@anirudh.munipalli/10-powerful-css-properties-that-every-web-developer-must-know-e5d7f8f04e10

You probably never heard of them, but you will love them once you know.

CSS.

A language which is responsible for nearly every website in the world.

With so many properties, CSS is pretty huge. Finding good properties among them is like trying to read a binary file by yourself (pls don’t try it).

Which is why I have done that for you (the CSS, not the binary).

Here are 10 properties that you may not use much, or have never heard of, but will love once you know them.

Photo by Markus Spiske on Unsplash

Custom Scrollbars

Let’s change the width and color of the scroll bar. Also, let’s make it a little round as well.

Below are the parts of a scroll bar.

What the different parts of a scroll bar are | Image by Author

We use ::-webkit-scrollbar to change the properties.

/* Set the width of the scroll bar*/
::-webkit-scrollbar{
    width: 10px;
}
/* Change the track to a blue color and give a round border */
::-webkit-scrollbar-track{
    background-color: blue;
    border-radius: 10px;
}
/* Making the thumb (which shows how much you've scrolled) a gray color
  and making it round */
::-webkit-scrollbar-thumb{
    background: gray;
    border-radius: 10px
}
/* A dark gray color when hovered overn */
::-webkit-scrollbar-thumb:hover{
    background: darkgray;
}

The result of the code | Image by Author

Note: This is a non-standard property, and without -webkit-, it will not work.

Cursors

Change how the cursor looks when you mouse over an element.

/* An element with class 'first' */
.first{
    cursor: not-allowed;
}
/* An element with class 'second' */
.second{
    cursor: zoom-in;
}
/* An element with class 'third' */
.third{
    cursor: crosshair;
}

Result of the above code. The cursor on different elements | Image by Author

Scroll behavior

The scroll behavior can make a smooth scroll, to make transition from one section to another smoother.

Add this simple line and see the effect for yourself.

html{
  scroll-behavior:smooth;
}

Instead of simply snapping the page from one section to another, it scroll up/down to the section. See the effect here.

Accent color

Change the color for user interface, such as form controls and checkboxes.

Accent color demo | Image by Author

See how the color of the check box and radio button is blue, instead of the default (and boring) gray.

input{
  accent-color: blue;
}

That’s all. You can use selectors to make some inputs blue, some red and some green.

And this doesn’t change the color of the text, so you can mess around with the colors and experiment. The UI color is under our control.

Aspect Ratio

When building responsive components, constantly keeping check on the height and width might be a headache, as you have to maintain aspect ratios. Videos, and Images may appear stretched sometimes.

That is why we can use the aspect ratio property. Once you set the aspect ratio value, and then set width, the height is set automatically. Or the other way around.

/* An elment with class example */
.example{
    /* Setting the aspect ratio */
    aspect-ratio: 1 / .25;
    /* Upon setting width, height is automatically set */
    width: 200px;
    /* Border is not required, but it is here just to see the effect. */
    border: solid black 1px;
}

Now that we set the width, we will get the height equal to 125 px automatically, to maintain the aspect ratio. This is very useful for responsive behavior.

The result when the CSS is applied to the HTML | Image by Author

Box Reflect

This allows us to create reflections of an component below it.

For this demo, I used an SVG wave image, that I got using this website.

/* An element with class name 'example */
.example{
    /* The reflection will appear below. Other possible values are above | left | right */
    -webkit-box-reflect: below;
}

This creates a reflection below the SVG.

Box reflection below the image | Image by Author

We can also offset the reflection a bit.

/* An element with class name 'example */
.example{
    /* The reflection will appear below. Other possible values are above | left | right */
    -webkit-box-reflect: below 20px;
}

The reflection with offset | Image by Author

Also, I would like it to fade out a bit. We can use a gradient for that.

/* An element with class name 'example */
.example{
    /* The reflection will appear below. Other possible values are above | left | right */
    -webkit-box-reflect: below 0px linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.5));
}

This gives a nice reflection.

The resulting reflection | Image by author

This is a non-standard property supported by most major browsers (except Firefox).

Check if browser supports a property

How to check if a particular property is supported in CSS.

/* Check if browser supports display: flex */
@supports (display: flex){
    /* If it does, set the display to flex */
    div{
        display: flex
    }
}

While the above example will always be supported by major browsers, non-standard properties (such as custom scroll bars and box-reflections) might not be supported by some.

Remember to put the condition in () parenthesis.

If you put the not keyword, then it will work if the property is not supported.

@supports not (display: flex){/* If not supported *}

Masks

You can use an Image mask in CSS.

/* An object with class example */
.example{
    /* Setting the mask from a URL */
    -webkit-mask: url(YOUR URL);
    mask: url(YOUR URL);
}

In the mask image, the white represents the mask and black is the area to be clipped.

Filter

You can add amazing filters to your images using CSS. Filters are something we see in every photo sharing app, and now, let’s see how easy they are to implement

img{
    filter: /*YOUR VALUE */;
}

There are many filters available. You can blur, brighten and saturate filters. You can make the image grayscale, change it’s opacity, invert the colors, and more.

The normal image (left), blurred image(middle) and high contrast image(right) | Image by Author | Photo of grass by Author

A brightened image (left), a grayscale image (middle) and a hue rotated image (right) | Image by Author | Photo of grass by Author

See this page for more details.

Backdrop effects

You can add a good looking filter to the area behind an image using backdrop-filter.

All the properties of filter are available here. This is in other words just a filter to apply to the background.

<div class="image">
    <div class="effect">
        backdrop-filter: blur(5px);
    </div>
</div>

<style>
.image{
    background-image: url(YOUR URL);
    background-size: cover;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.effect{
    font-size: x-large;
    color: white;
    font-weight: 800;
    background-color: rgba(255, 255, 255, .3);
    backdrop-filter: blur(5px);
    padding: 20px;
}
</style>

This makes an effect like this:

Result of the code | Image by Author

And with that, you now know 10 new properties of CSS. You can make your website look very professional.

If you like this article, show your support by:

  1. Clapping
  2. Following for content about CSS, HTML, JS, Python and AI.
  3. Responding to this article telling your favorite property.
  4. Or do all of the above 3 😃
반응형

+ Recent posts