- 1. cssうんちに魂宿してみた
- 2. 内容に応じてサイズが可変する を素敵に実装する
- 3. Node.jsとSocket.ioで簡易的なチャットを実現させる
- 4. 半々人前のフロントエンドエンジニアが成長するために必要だと感じたこと
- 5. head要素と関連ファイル
- 6. HTMLとCSSでカレーライスを作った
- 7. HTMLのtextarea でインデント、アンインデント
- 8. classの小話 (cssが適用されないエラーについて)
- 9. 【Qiita】記事で使える 続きを読む もっと詳しく
- 10. cssだけでうんち書いてみた
- 11. HTMLでGoogleマップを挿入する(2)
- 12. HTMLでのGoogleマップの挿入の仕方
- 13. Sassのmixinを用いたレスポンシブ化
- 14. 僕のP2HACKS譚
- 15. Bootstrap 4 のcardを使ってWebサイトにオシャレなBOXを加える
- 16. 初心者によるプログラミング学習ログ 184日目
- 17. CSSでベルトスクロールゲームを作った。
- 18. 初めてのJavaScript~ペンの色・太さが変更できるお絵かきアプリを作ったよ~
- 19. サイトに某ほとけ風な何かを呼び出すjQueryプラグイン・hotoke.jsを作った
- 20. mediaを使ってNavigation SideMenuを実現する
cssうんちに魂宿してみた
# ?おさらい?
前回cssでうんちを書いたぞ!
[cssだけでうんち書いてみた](https://qiita.com/petapetapeta/items/b8b8675ef6880bed65a3)
今日はこれをよりうんちらしくするべく、魂を宿してみたい!# ?cssでぷる〜んていうアニメーション?
キーフレームを頑張って打て、scale()を変えればできる!“`css
@keyframes jelly {
0% {
transform: scale(1, 1);
}
8% {
transform: scale(1, 1);
}
10% {
transform: scale(1.1, 0.9);
}
13% {
transform: scale(0.9, 1.1);
}
17.5% {
transform: scale(1, 1);
}
19% {
transform: scale(1, 1);
}
58% {
transform: scale(1, 1);
}
内容に応じてサイズが可変する
## 概要
内容に応じてサイズが可変する `textarea` を、できるだけ手間をかけず、スマートな実装を試みます。
しかも、ネイティブのフォームが持っている利点をそのまま活かして、堅牢でアクセシブルな設計を目指します。## 標準 `textarea` の難点
HTML の `textarea` 要素は基本的に高さが固定されていて使い勝手が悪いです。3行分くらいしか領域がなくて、長い文章を打つのがとにかく苦痛なんていうこともザラです。最近のブラウザ実装では、多少気を利かせてくれているのか、テキストエリアの領域をドラッグで拡大・縮小できます。
![textarea をマウスドラッグでリサイズしているところの動画。](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/43689/c462fd99-cfc8-8272-57b8-ed571a8c8f21.gif)
ただ私は思うのです。めんどくさいし、最初っから、入力するテキスト量に応じて自動的に伸び縮みしてくれればいいのに……と。スクロールバーなんて、1ページ
Node.jsとSocket.ioで簡易的なチャットを実現させる
# 簡易的なWebチャットを実装する
## はじめに
この記事は[SLP KBIT Advent Calender 2019](https://adventar.org/calendars/4214)の16日目の記事である。
Socket.ioを用いた開発をまだやったことがなかったので今回はそういった開発を行っていきたいと思います。
かなり前に作ったので実装過程をちょっと忘れてしまいました…。##環境
・Windows 10(64bit)
・Node.js : v10.15.3##準備
この開発ではNode.js、Socket.ioの他に、ローカルサーバーを簡単に立ち上げれるExpressを使うのでもしインストールしていない人は以下のコマンドでインストールしてみましょう。“`
$ npm install express
“`#実装
##サーバをたてる準備“`js:create.js
var express = require(‘express’);//expressを使用
var app = express();
var http = require(‘htt
半々人前のフロントエンドエンジニアが成長するために必要だと感じたこと
#はじめに
私は今年の4月から初めてMacを使い始めてプログラミングというものに触れ、今日まで約8ヶ月間勉強をしてきました。
今は、フロントエンドの分野で月に約3本のWeb案件に取り組んでいます。(まだ独り立ちはできていませんが…)
今まで勉強してきて、効率的に勉強を進め最も近道に成長をしていくためにはどうしたらいいのか、自分なりの考えをまとめ、初心を忘れないようにするためにも記事にしたいと思います。#今までやってきたこと
– 4~6月前半…pythonチュートリアルを基本1人で学び、わからないところは教えてもらう
– 6月前半~9月中旬…初めての案件に参加(バックエンド)
– 9月中旬~10月中旬…フロントエンドの勉強
– ~現在…フロントエンドの案件でアウトプット&お勉強#できるようになったこと(まだまだ未熟ですが…)
1. Git、Github
2. html、css
3. WordPress
4. Figma
5. インフラ、セキュリティ周り(ほんーの少し)#実践してみてよかったこと
– pythonチュートリアル→なんとなーくプ
head要素と関連ファイル
HTMLのhead要素内の記述と、関連ファイルについて毎回調べるのは手間なのでまとめました。
## 基本
文字コードを指定
“`:html
“`IEで標準モードで表示
“`:html
“`viewportの指定
“`:html
“`ページタイトル
“`:html
任意のタイトル
“`ページの説明を約100文字以内で記述
“`:html
“`クローラーにインデックス拒否(拒否時のみ記述)
“`:html
“`
HTMLとCSSでカレーライスを作った
## カレーライスを作りました
※スマホではバグりますすみません
See the Pen
カレーライス by Thugumi Ishimaru (HTMLのtextarea でインデント、アンインデント# HTMLのtextarea でインデント、アンインデント
HTMLのtextareaでタブを入力すると次のフィールドにフォーカスが移動しますが、そのままタブを入力したい。ついでに複数行選択しているときは、まとめてインデントしたい。更にスペースでのインデント、アンインデントにも対応したい。
ということで、書いてみました。
作ってから IE/Edge で setRangeText がサポートされていない事に気づいたけれど、このまま載せておきます...“`html:indent_sample.html
インデントのサンプル
Sassのmixinを用いたレスポンシブ化
#Sassを導入した
CSSにも慣れてきたが
ベタベタのベタ書きがあまりにもひどくて目も当てられず- どこに何を書いたか分からなくなる
- 同じようなスタイルを繰り返し書いている
- テーマ全体の色味をコントロールしにくい
- とにかく長すぎるある程度セクションごとにわけて書いていたが上記のような問題を早めに解決しておきたいと考えてました。
そこでよく聞く**Sass**はどうやらこれらの問題を解決してくれる**今をときめくCSS**だとか。
Sassには「Sass」と「SCSS」の2種類の記法がありますがSCSSの書き方が一般的との事だったので早速取り入れました。
**今回は1番理解が難しかったレスポンシブ化についてフォーカスして書いてみました。**
#mixinで画面状態を保存して使い回す
SCSSの細かい記法は置いておいて
`@mixinでスタイルをあらかじめ作っておいて`
`@includeで呼び出して使いまわせる`という強力な能力があり
SCSSの入れ子で記述ができるという特徴と組み合わせるとメディアクエリが**簡単かつ可読性の高い作り方ができる**
僕のP2HACKS譚
#はじまり
12月7日~15日に開催される「P2HACKS」に参加してきました!当初に予定していたRailsではなく全く触ったことのない「React」で製作しました。というより、していますのほうが正しいんですが。しかし、全く触ったことのないものでアプリ製作を行って生じる苦労が1つや2つで収まるわけがないんです。とういうわけで、アプリ製作中に僕が学んだことや苦労したことのいくつかを書いていこうと思います。注意:書いてることの正確さは保証しません。
##1index.htmlをいじらない
まずそこからかよって思う人もいると思いますが、そこからなんです。HTMLとCSSは少しわかるがJavaScriptはあんまりわからない、という状況で僕はまず初めに脳死でindex.htmlをいじり始めました。
Reactは基本的にindex.htmlをいじりません。App.js以下をいじっていれば何か変なことをしない限り勝手にindex.htmlを書き換えてくれます。少しだけ具体的に説明します。index.htmlでは「root」という名前のidを読み込むことになっています。下記の画像は
Bootstrap 4 のcardを使ってWebサイトにオシャレなBOXを加える
#オシャレなBOXをBootstrap4の『card』で作る
今回のイメージはこんな感じ。Free、Pro、Enterpriseの3つのBOXのことやね。
これは、料金プランの選択肢を作成するときとかにオシャレですよね。
##Cardの説明
まずcard単体はこんな感じ。
```html:c
初心者によるプログラミング学習ログ 184日目
# 100日チャレンジの184日目
twitterの100日チャレンジ#タグ、#100DaysOfCode実施中です。
すでに100日超えましたが、継続。100日チャレンジは、ぱぺまぺの中ではプログラミングに限らず継続学習のために使っています。
184日目は
おはようございます
184日目webサイトコーディング課題
更新履歴の修正、といいたいところだけどうまくいかなかった#100DaysOfCode CSSでベルトスクロールゲームを作った。この記事は [CSS Advent Calendar 2019](https://qiita.com/advent-calendar/2019/css) 16日目の記事です。
# 概要
CSSで昔懐かしのベルトスクロールゲームを作りました。
PC、画面サイズ大きめで遊んでください>< https://codepen.io/Rin_T_T/pen/MWYjJKv?editors=1100 本記事はあくまで作った物の簡単な説明のため、コード,制作過程を一部省略しています。 # 設計書 必須機能をまとめます。 衝突判定: hoverで判定 ゲーム画面のスクロール: transitionで実装 スタート: hoverで判定 スコア用のアイテムを設置: checkboxで実装 キャラクターの移動: カーソルを画像に置き換える。 早速作っていきます。 ### 最初にスクロールエリアと衝突オブジェクトを作成します。 ```pug:index.pug .gameArea_inner .playArea.-test2 - for(var初めてのJavaScript~ペンの色・太さが変更できるお絵かきアプリを作ったよ~
Webアプリを作りたいなと思いながらなんとなーく先延ばしにしてたところ
初心者向けのJavaScript,HTML,CSSを使ったワークショップを見つけたので参加してみました。
その時作ったお絵かきアプリに機能を追加してペンの太さ・ペンの色の変更・画面の全消しができるようにしてます.
#動作環境
あんまりよくわかってないけどCodeSandboxにsign inしてVanillaを使って作りました笑おそらく…
・CodeSandbox
・Vanilla
・HTML
・JavaScript
・CSS
があればできるんだと思います.
違ってたらすみません.
#やること
###1.HTMLで部品を作ります
今回はお絵かきする部分とボタンを作成しました.```HTML
Parcel Sandbox
関連する記事
OTHERカテゴリの最新記事
-
- 2024.09.19
JavaScript関連のことを調べてみた
-
- 2024.09.19
JAVA関連のことを調べてみた
-
- 2024.09.19
iOS関連のことを調べてみた
-
- 2024.09.19
Rails関連のことを調べてみた
-
- 2024.09.19
Lambda関連のことを調べてみた
-
- 2024.09.19
Python関連のことを調べてみた