module.exports = ({ title, list, Card }) => {
return (
- <div
- className="MusicalInterests"
- id={title.toLowerCase().replace(/\s/g, '-')}
- >
+ <div className="Interest" id={title.toLowerCase().replace(/\s/g, '-')}>
<h2>{title}</h2>
<HorizontalScroller>
{list.map((item, i) => (
box-shadow: 0 0.1em 1em rgba(0, 0, 0, 0.2);
border-radius: 0.5em;
width: 15em;
- margin-right: 2em;
}
.AlbumCard-Art {
padding: 0.6em 0;
}
-.AlbumCard-SongName {
+.AlbumCard-SongName,
+.AlbumCard-ArtistAndAlbum {
display: block;
- padding-bottom: 0.2em;
+ padding: 0 0.2em;
+ text-overflow: ellipsis;
+ overflow: hidden;
}
.AlbumCard-ArtistAndAlbum {
font-weight: 400;
+ margin-top: 0.2em;
+}
+
+@media (max-width: 60em) {
+ .AlbumCard {
+ width: 12em;
+ }
+
+ .AlbumCard-Art {
+ height: 12em;
+ }
}
@media (max-width: 25em) {
header {
- padding: 2em;
+ padding: 2em 1em;
}
header h1 {
width: 0;
}
}
-
-@media (max-width: 20em) {
- header p::first-letter {
- margin-left: -1.3em;
- text-align: right;
- width: 0;
- float: left;
- }
-}
@import url('./horizontalScroller.css');
-@import url('./albumCard.css');
-.MusicalInterests {
+.Interest {
background: #ddd;
padding: 4em 0;
text-align: center;
color: rgba(0, 0, 0, 0.6);
}
-.MusicalInterests h2 {
+.Interest h2 {
font-size: 1.5em;
padding-bottom: 1em;
}
-.MusicalInterests .HorizontalScroller ul {
- padding: 1em 4em;
+.Interest .HorizontalScroller ul {
+ padding: 1em 7.5%;
}
-@media (max-width: 40em) {
- .MusicalInterests .HorizontalScroller ul {
+.Interest .HorizontalScroller li {
+ margin-right: 2em;
+}
+
+.Interest .HorizontalScroller li:last-of-type {
+ margin-right: 0;
+}
+
+@media (max-width: 60em) {
+ .Interest .HorizontalScroller ul {
padding: 1em 2em;
}
}
+
+@media (max-width: 40em) {
+ .Interest .HorizontalScroller li {
+ margin-right: 1em;
+ }
+}
+
+@media (max-width: 30em) {
+ .Interest .HorizontalScroller ul {
+ padding: 1em;
+ }
+}
<Hero
title="Ben Larson"
lines={[
- '\u2318 Software developer by trade',
- '\u2325 Other random things by hobby',
- '\u2606 Living in Nashville, TN',
+ '\u2318 Software dev by trade',
+ '\u2325 Other things by hobby',
+ '\u2606 Living in Nashville',
]}
/>
<Interest
@import url('./components/hero.css');
@import url('./components/menu.css');
@import url('./components/interest.css');
+@import url('./components/albumCard.css');
* {
font-family: inherit;
@media (max-width: 45em) {
body {
- font-size: 1em;
+ font-size: 1.3em;
}
}