File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ** /node_modules
Original file line number Diff line number Diff line change 11// import logo from './logo.svg';
2+ import { Fragment } from "react" ;
3+ import { BrowserRouter as Router , Switch , Route } from "react-router-dom" ;
4+ import "semantic-ui-css/semantic.min.css" ;
25import './App.css' ;
6+ // Pages Import
7+ import Mission from "./Components/Mission/mission" ;
38
4- function App ( ) {
9+ const App = ( ) => {
510 return (
6- < >
7- < h1 > App.js</ h1 >
8- </ >
11+ < Fragment >
12+ < div className = "Container" >
13+ < Router >
14+ < Switch >
15+ < Route exact path = "/" component = { Mission } />
16+ </ Switch >
17+ </ Router >
18+ </ div >
19+ </ Fragment >
920 ) ;
10- }
21+ } ;
1122
1223export default App ;
Original file line number Diff line number Diff line change 1+ const arrayCards = [
2+ [
3+ "AWARENESS ABOUT TECH" ,
4+ "Help us reach tier-two and tier-three cities" ,
5+ ] ,
6+ [
7+ "AWARENESS ABOUT TECH" ,
8+ "Help us reach tier-two and tier-three cities" ,
9+ ] ,
10+ [
11+ "AWARENESS ABOUT TECH" ,
12+ "Help us reach tier-two and tier-three cities" ,
13+ ] ,
14+ [
15+ "AWARENESS ABOUT TECH" ,
16+ "Help us reach tier-two and tier-three cities" ,
17+ ] ,
18+ [
19+ "AWARENESS ABOUT TECH" ,
20+ "Help us reach tier-two and tier-three cities" ,
21+ ] ,
22+ [
23+ "AWARENESS ABOUT TECH" ,
24+ "Help us reach tier-two and tier-three cities" ,
25+ ] ,
26+ ] ;
27+ export default arrayCards
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+ import style from "./mission.module.css" ;
3+ import arrayCards from "./dummy" ;
4+
5+ const Mission = ( ) => {
6+ return (
7+ < main >
8+ < div id = { style [ "hero" ] } >
9+ < div id = { style [ "heading" ] } >
10+ < div id = { style [ "title" ] } > MISSION AND VISION</ div >
11+ </ div >
12+ </ div >
13+ < div id = { style [ "all-cards" ] } >
14+ { arrayCards . map ( ( element , i ) => {
15+ return (
16+ < div
17+ className = { `${ style [ "card-item" ] } ${ style [ "card-item2" ] } key={${ i } }` }
18+ >
19+ < div className = { style [ "clickable-card" ] } >
20+ < div className = { style [ "card-title" ] } > < i class = "fas fa-grin-stars" > </ i > { element [ 0 ] } </ div >
21+ < div className = { style [ "card-content" ] } > { element [ 1 ] } </ div >
22+ </ div >
23+ </ div >
24+ ) ;
25+ } ) }
26+ </ div >
27+ </ main >
28+ ) ;
29+ } ;
30+
31+ export default Mission ;
Original file line number Diff line number Diff line change 1+ main {
2+ display : flex;
3+ flex-direction : column;
4+ align-items : center;
5+ }
6+
7+ # hero {
8+ display : flex;
9+ width : 100vw ;
10+ }
11+
12+ # heading {
13+ display : flex;
14+ flex-direction : column;
15+ align-items : center;
16+ width : 100% ;
17+ margin : 4rem 0 2rem 0 ;
18+ text-align : center;
19+ }
20+
21+ # title {
22+ display : flex;
23+ font-size : 3.5rem ;
24+ line-height : 4rem ;
25+ font-weight : bold;
26+ }
27+
28+ # all-cards {
29+ display : flex;
30+ justify-content : center;
31+ flex-wrap : wrap;
32+ width : 95vw ;
33+ margin : 0.5em ;
34+ }
35+
36+ .card-item {
37+ background-color : # 95B9C7 ;
38+ text-align : center;
39+ font-size : 1.5rem ;
40+ border-radius : 1em ;
41+ box-shadow : 0.3em 0.3em 0.4em grey;
42+ height : auto;
43+ width : 15em ;
44+ margin : 1em ;
45+ background-position : left center;
46+ transition : background 0.3s ease-out;
47+ }
48+
49+ .card-item2 {
50+ height : 10em ;
51+ }
52+
53+ .clickable-card {
54+ display : flex;
55+ flex-direction : column;
56+ align-items : center;
57+ padding : 1.6em ;
58+ padding-top : 2.5em ;
59+ color : var (--bs-light );
60+ }
61+
62+ .card-title {
63+ font-size : 1.4rem ;
64+ margin-bottom : 1.5rem ;
65+ line-height : 1.9rem ;
66+ font-weight : bold;
67+ }
68+
69+ .card-content {
70+ font-weight : normal;
71+ text-align : center;
72+ font-size : 1.2rem ;
73+ width : 100% ;
74+ }
75+
76+ .card-item : hover {
77+ background : linear-gradient (
78+ 45deg ,
79+ # f9d976 0% ,
80+ # f39f86 90%
81+ );
82+ }
83+
84+ @media screen and (orientation : portrait) {
85+ # hero {
86+ flex-direction : column;
87+ }
88+
89+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments