File tree Expand file tree Collapse file tree 6 files changed +64
-21
lines changed Expand file tree Collapse file tree 6 files changed +64
-21
lines changed Original file line number Diff line number Diff line change 1
1
/** @type {import('next').NextConfig } */
2
- const nextConfig = { } ;
2
+ const nextConfig = {
3
+ images : {
4
+ remotePatterns : [
5
+ {
6
+ protocol : 'https' ,
7
+ hostname : 'i.giphy.com'
8
+ } ,
9
+ ] ,
10
+ } ,
11
+ } ;
3
12
4
13
export default nextConfig ;
Original file line number Diff line number Diff line change
1
+ import DemoCard from "./DemoCard" ;
2
+
1
3
const Demo = ( ) => {
4
+ const demos = [ ] ;
5
+ const demoCardHeaders = [
6
+ 'Demo 1' ,
7
+ 'Demo 2' ,
8
+ 'Demo 3'
9
+ ] ;
10
+ const demoCardBlurbs = [
11
+ 'Description for what\'s happening in Demo 1. This block of text will contain all the info needed to understand the demo.' ,
12
+ 'Description for what\'s happening in Demo 2. This block of text will contain all the info needed to understand the demo.' ,
13
+ 'Description for what\'s happening in Demo 3. This block of text will contain all the info needed to understand the demo.'
14
+ ] ;
15
+ for ( let i = 0 ; i < 3 ; i ++ ) {
16
+ demos . push (
17
+ < DemoCard
18
+ key = { `demoCard${ i } ` }
19
+ header = { demoCardHeaders [ i ] }
20
+ blurb = { demoCardBlurbs [ i ] }
21
+ />
22
+ ) ;
23
+ }
2
24
return (
3
- < div className = 'demo' >
4
- < div className = 'demoSplit' >
5
- < div > Img 1</ div >
6
- < div > Demo 1</ div >
7
- </ div >
8
- < div className = 'demoSplit' >
9
- < div > Demo 2</ div >
10
- < div > Img 2</ div >
11
- </ div >
12
- < div className = 'demoSplit' >
13
- < div > Img 3</ div >
14
- < div > Demo 3</ div >
15
- </ div >
16
- </ div >
25
+ < div className = 'demo text-black bg-white' > { demos } </ div >
17
26
) ;
18
27
} ;
19
28
Original file line number Diff line number Diff line change
1
+ import Image from "next/image" ;
2
+
3
+ const DemoCard = ( { header, blurb } : {
4
+ key : string ,
5
+ blurb : string ,
6
+ header : string
7
+ } ) => {
8
+ return (
9
+ < div className = 'demoCard gap-5 p-1 mb-2 text-center' >
10
+ < Image
11
+ src = 'https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExaW9tcWttZ3R0YTVpNWxwcGJ4M2YyZ2ExcmxlazN5N3JyenF0ajl4dCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/FqdGGgugkC4Xm/giphy.gif'
12
+ alt = ''
13
+ width = { 700 }
14
+ height = { 475 }
15
+ sizes = "100vw"
16
+ style = { {
17
+ width : "100%" ,
18
+ height : "auto" ,
19
+ } }
20
+ />
21
+ < div className = 'text-2xl' > { header } </ div >
22
+ { blurb }
23
+ </ div >
24
+ ) ;
25
+ } ;
26
+
27
+ export default DemoCard ;
28
+
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const FeatureCard = ({ header, blurb }: {
4
4
header : string
5
5
} ) => {
6
6
return (
7
- < div className = 'featureCard gap-5 p-1 mb-2' >
7
+ < div className = 'featureCard p-1 mb-2' >
8
8
< div className = 'text-2xl' > { header } </ div >
9
9
{ blurb }
10
10
</ div >
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ const Features = () => {
29
29
) ;
30
30
}
31
31
return (
32
- < div className = 'features p-2' >
33
- < div className = 'text-5xl mb-2' > { featureHeader } </ div >
32
+ < div className = 'features p-2 mb-20 text-center text-black bg-white ' >
33
+ < div className = 'text-3xl mb-2' > { featureHeader } </ div >
34
34
< div className = 'mb-2' > { featureLongBlurb } </ div >
35
35
< div className = '' > { cards } </ div >
36
36
</ div >
Original file line number Diff line number Diff line change @@ -154,7 +154,6 @@ body {
154
154
grid-column : 2 / 5 ;
155
155
grid-row : 3 ;
156
156
width : 100% ;
157
- background-color : rgb (176 , 47 , 107 );
158
157
display : grid;
159
158
place-items : center;
160
159
}
@@ -166,14 +165,12 @@ body {
166
165
display : grid;
167
166
grid-template-columns : 100% ;
168
167
grid-template-rows : min-content;
169
- text-align : left;
170
168
}
171
169
172
170
.demo {
173
171
grid-column : 2 / 5 ;
174
172
grid-row : 3 ;
175
173
width : 100% ;
176
- background-color : rgb (47 , 176 , 101 );
177
174
display : grid;
178
175
grid-template-columns : 100% ;
179
176
grid-template-rows : calc (100% / 3 ) calc (100% / 3 ) calc (100% / 3 );
You can’t perform that action at this time.
0 commit comments