Note
0.0(0)
Explore Top Notes
Teres Major Syndrome
noteNote
studied byStudied by 8 people
5.0(1)
Classic Literature
noteNote
studied byStudied by 21 people
4.0(1)
Chapter 10: Non-Essential & Essential Clause
noteNote
studied byStudied by 158 people
5.0(1)
Unit 1 Test
noteNote
studied byStudied by 3 people
5.0(1)
week 11
noteNote
studied byStudied by 1 person
5.0(1)
Imperialism Rise in Nationalism • During the French and Industrial Revolution, nationalism continued to inspire nations to increase their political and economic power. • Nationalism became the ideal force in the political, economic, and cultural life in the world, becoming the first universal ideology-organizing all people into a nation state. Nationalism Defined • The strong belief that the interest of a particular nation-state is of primary importance. o Nation-State – a state where the vast majority shares the same culture and is conscious of it. It is an ideal in which cultural boundaries match up with political ones. • As an ideology, it is based on the idea that the individual’s loyalty and devotion to the nation-state surpass other individual/group interests. • Exalting one nation’s belief above all others and placing primary emphasis on promotion of its culture and interests, excluding the interests of others. Changing the World through a Nationalistic Vision • The French Revolution significantly changed the political world and how countries govern. • The Industrial Revolution significantly changed the economic world. • The Age of Imperialism (1870-1914) dramatically changed the political, economic, and social world. What is Imperialism? • Imperialism- The policy of extending the rule of authority of an empire or nation over foreign countries, or of acquiring and holding colonies and dependencies. Power and influence are done through diplomacy or military force. Reasons for Imperialism • There are 5 main motives for empires to seek to expand their rule over other countries or territories: 1. Exploratory • Imperial nations wanted to explore territory unknown to them. • The main purpose for this exploration of new lands was for resource acquisition, medical or scientific research. o Charles Darwin • Other reasons: o Cartography (map making) o Adventure 2. Ethnocentric • Europeans acted on the concept of ethnocentrism o Ethnocentrism- the belief that one race or nation is superior to others. • Ethnocentrism developed out of Charles Darwin’s “survival of the fittest” theory. Philosophers used the theory to explain why there were superior races and inferior races. o This became known as Social Darwinism. • Most imperial nations believed that their cultural values or beliefs were superior to other nations or groups. • Believed imperial conquest would bring successful culture to inferior people. 3. Religious • Imperial expansion promoted a religious movement of people setting out to convert new members of conquered territories. • With the belief that Christianity was superior, missionaries believed it was their duty to spread Christianity to the world. • Christian missionaries established churches, and in doing so, they spread Western culture values as well. • Typically, missionaries spread the imperial nation's language through education and religious interactions. 4. Political • Patriotism and Nationalism helped spur our imperial growth, thus creating competition against other supremacies. • It was a matter of national pride, respect, and security. • Furthermore, European rivalry spurred nations for imperial conquest. Since land equaled power, the more land a country could acquire the more prestige they could wield across the globe. • Empires wanted strategic territory to ensure access for their navies and armies around the world. • The empire believed they must expand, thus they needed to be defended. 5. Economic • With the Industrial Revolution taking place during the same time, governments and private companies contributed to find ways to maximize profits. • Imperialized countries provided European factories and markets with natural resources (old and new) to manufacture products. • Trading posts were strategically placed around imperialized countries to maximize and increase profits. o Such places as the Suez Canal in Egypt which was controlled by the British provided strategic choke hold over many European powers. o Imperial powers competed over the best potential locations for resources, markets, and trade. History of Imperialism • Ancient Imperialism 600 BCE-500 CE o Roman Empire, Ancient China, Greek Empire, Persian Empire, Babylonian Empire. • Middle Age Imperialism (Age of Colonialism-1400-1800s) o Great Britain, Spain, Portugal, France, Netherlands (Dutch), Russia. • Age of Imperialism 1870-1914 o Great Britain, Spain, Portugal, France, Germany, Belgium, Italy, Japan, United States, Ottoman Empire, Russia. • Current Imperialism...? o U.S. Military intervention (i.e. Middle East) o Russia’s Invasion of Ukraine. Imperialism Colonialism • Refers to political or economic control, either legally or illegally. • Refers to where one nation assumes control over the other. • Creating an empire, expanding into neighboring regions and expanding the dominance far outside its borders. • Where a country conquers and rules over other regions for exploiting resources from the conquered country for the conqueror's benefit. • Foreign government controls/governs a territory without significant settlement. • Foreign government controls/governs the territory from within the land being colonized. • Little to no new settlement established on fresh territory. • Movement to settle to fresh territory. Age of Colonialism WHEN? • Started around the late 1400s and ended around the late 1700s/early 1800s. WHY? • Primary Reason: European countries, wished to find a direct trade route to Asia (China & India) and the East Indies. o Quicker and relatively more effective than land routes over Asia. • Secondary Reason: Empire expansion (land power) WHO? • Countries involved: Great Britain, France, Spain, the Dutch & Portugal. • Individuals’ knowns as Mercantilists believed that maintaining imperialized territory and colonizing the region could serve as a source of wealth, while personal motives by rulers, explorers, and missionaries could therefore promote their own agenda. o This agenda being “Glory, God and Gold”. Mercantilism • Mercantilism was a popular and main economic system for many European nations during the 16th to 18th centuries. • The main goal was to increase a nation’s wealth by promoting government rule of a nation’s economy for the purpose of enhancing state power at the expense of rival national power. • It was the economic counterpart of political absolutism. Why did mercantilists want colonies? • Mercantilists believed that a country must have an excess of exports over imports. • By colonizing territory, it provided the nation with indispensable wealth of precious raw materials. • Therefore, the claimed territory served as a market and supplier of raw materials for the mother country. Which, in time, provided an excess of exports for the nation and thus created wealth. o Development of Trading Companies to support this economic system. Hudson Bay Company – (1670). Controlled primarily North America. o Dutch East Indie Trading Company (1682) o East Indian Trading Company (1600) o Royal African Trade Company (1672) WHERE? • European nations begun to colonize the America, India and the East Indies to create a direct trade route. • Great Britain was the leading power in India, Australia and North America, South Africa. • Spain colonized central and South America. • French held Louisiana, coastal land of Africa and French Guinea. • The Dutch built an empire in the East Indies. • The Portuguese was able to take control of present-day Brazil and the southern tip of South America and Japan. Age of Colonialism • As countries started to imperialize these regions, eventually the concept of colonization took hold: • This is what makes the Age of Colonialism extremely different! End of Colonialism • By 1800, colonialism became less popular • Why? o Revolutions (Spain, France & American) o The Napoleonic Wars o Struggle for nationalism and democracy. o Exhausted all money and energy to supervise their colonies. Waiting to wake again • Imperialism would stay quiet for close to 50 years before Great Britain and France’s economies revitalized. • The outbreak of the Industrial Revolution only encouraged and revitalized European nations to begin their conquest for new territory and resources. Age of Imperialism THE SCRAMBLE FOR AFRICA 1870-1914 Conditions Prior to Imperialism of Africa  European interest in exploiting Africa was minimal.  Their economic interests & profit in Africa primarily came through coastal trade that took place during the 1500-1700s.  The slave trade became the main source of European profit.  Furthermore, disease, political instability, lack of transportation and unpredictable climate all discouraged Europeans from seeking territory. Slave Trade & the Trans-Atlantic Slave Voyages  Forced labor was not uncommon during the 13-17th Centuries. Africans and Europeans had been trading goods and people across the Mediteranea for centuries.  This all changed from 1526 to 1867, as a new system of slavery was introduced that became highly “commercialized, racialized and inherited”  By 1690, the America and West Indies saw approximately 30,000 African people shipped from Africa. A century later, that number grew to 85,000 people per year.  By 1867, approximately 12.5 million people (about twice the population of Arizona) left Africa in a slave ship. What Changed? 1. End of the Slave Trade- Left a need for trade between Europe and Africa. 2. Innovation in technology- The steam engine and iron hulled boats allowed Europe 3. Discovery of new raw materials- Explorers located vast raw materials and resources and this only spurred imperialism with Europe in the wake of the Industrial Revolution. 4. Politics- Unification of Germany and Italy left little room to expand in Europe. Germany and Italy both needed raw materials to “catch up” with Britain and France so they looked to Africa. The Scramble for Africa  The scramble started in 1870.  Although some coastal land had previously been acquired before 1870, the need for territory quickly accelerated as European countries looked t get deeper into Africa.  Within 20 years, nearly all continents were placed under imperialistic rule. Who was Involved?  Great Britain  France  Germany  Italy  Portugal  Belgium  Spain (kind) Violent Affairs  Violence broke out multiple times when European nations looked to claim the same territory.  Germ Chancellor. Otto van Bismarck. Attempted to avert the possibility of violence against the European powers.  In 1884, Bismarck organized a conference in Berlin for the European nations. The Berlin Conference (1884-85)  The conference looked to set ground rules for future annexation of African territory by European Nations.  Annexation is the forcible acquisition and assertion of legal title over one state’s territory by another state, usually following military occupation of the territory.  From a distant perspective, it looked like it would reduce tensions among European nations and avert war.  At the heart of the meeting, these European countries negotiated their claims to African territory, made it official and then mapped their regions.  Furthermore, the leaders agreed to allow free trade among imperialized territory and some homework for negotiating future European claims in Africa was established. Further Path  After the conference, european powers continued to expand their claims in Africa so that by 1900. 90% of the African territory had been claimed. A Turn towards Colonization?  Upon the imperialization of African territory, European nations and little interest in African land unless it produced economic wealth.  Therefore, European governments put little effort and expertise into these imperialized regions.  In most cases, this emat a form of indirect rule. Thus, governing the natin without sufficient settlement and government from within the mother country. Some Exceptions  There were some exemptions through in Africa as colonization was a necessary for some regions i n Africa.  Some regions where diamonds and gold were present. Government looked to protectorate the regions and establish rule and settlement in the regions.  Protectorates: A state controlled and protected by another state for defense against aggression and other law violations. Would  Some examples include South Africa, Botswana, Zimbabwe and Congo. Conclusion  Although it may appear that the Berlin Conference averted war amid the African Scramble, imperialism eventually brought the world into worldwide conflict.  With the continued desire to create an empire by European nations. World War 1 would break out which can be linked to this quest at imperialism.
noteNote
studied byStudied by 11 people
4.5(2)

Taking on a Frontend Mentor challenge Responsive Product Preview Card Component

Note: Building a Front End Mentor Project with Kevin

Chapter 1: Introduction

  • Kevin noticed questions on a front end mentor project in his Discord community.

  • He decides to build the project himself and welcomes viewers to join.

  • Kevin's channel focuses on helping viewers appreciate CSS.

  • The project involves making a card responsive from downloading assets to going online.

Main Ideas

  • Kevin downloads the starter files for the project.

    • Extracts the files and opens them in Visual Studio Code.

  • Examines the files received:

    • Index file with attribution and content.

    • Style guide provided by Front End Mentor.

    • Fonts used in the project.

    • Readme template for GitHub.

    • Git ignore file to exclude certain files from GitHub.

    • Images and design files for reference.

  • Kevin plans to upload the project to GitHub and then online using Netlify.

  • He creates a new CSS file named style.css for the project.

Main Ideas from the Transcript

Setting up Styles and Index Page

  • Using Emmet in Visual Studio Code to quickly generate CSS link tags.

    • Emmet autofills the link tag when typing "link:css".

  • Choosing the location for the CSS file based on simplicity.

    • Suggests placing the CSS file in the root folder for simplicity in a basic setup.

Working Environment and Live Server

  • Recommending having a browser open while working on the project.

  • Mentioning the use of live server extension for simplicity and real-time updates.

    • Live server allows for immediate updates without manual refreshing.

HTML Structure and Mobile-First Approach

  • Emphasizing the importance of considering mobile-first design.

  • Starting with the desktop version when writing HTML to understand the layout structure.

  • Introducing the use of the article tag for creating standalone content pieces.

Creating Product Structure in HTML

  • Utilizing the article element for standalone content like a product card.

  • Explaining the choice of using an article tag for self-contained content.

  • Planning to implement two columns for the product layout.

  • Using BEM naming convention for class names to maintain clarity and structure.

Implementing Image and Content Sections

  • Planning to switch from using an image tag to a picture tag for better optimization.

  • Applying BEM naming convention for classes like "my-product-image" and "my-product-content".

  • Structuring the HTML elements within the article tag for the product content.

Consideration for Title Tag

  • Discussing the importance of choosing an appropriate title for the content.

  • Mentioning the use of an h1 tag due to the lack of other content on the page.

Chapter 2: A Little Bit

  • Identifying the Title and Subtitles

    • The speaker discusses the importance of correctly identifying the main title and subtitles of a piece of content.

    • Mentions that in the context of a standalone card or article, the main title should represent the product or topic being discussed.

    • Explains the use of heading tags (h1, h2, h3) for structuring content and how they impact the page's structure.

    • Highlights the significance of using proper semantic HTML for heading levels.

  • Styling and Wrapping Content

    • Emphasizes the distinction between using heading levels for structure and not for styling purposes.

    • Demonstrates adding a class (product title) to the main title for styling consistency.

    • Shows how to wrap content quickly using shortcuts like command shift p and Emmet abbreviations.

    • Provides an example of wrapping content with a class (product double underscore original price) for efficient styling.

  • Organizing Content

    • Discusses the use of div elements to group related content that needs to be displayed together.

    • Plans to address accessibility considerations to ensure proper reading of the content.

    • Intends to focus on aligning and organizing elements that need to be displayed adjacent to each other.

Main Ideas:

  • HTML Structure

    • Classes assigned to different elements for styling purposes.

    • Use of flex group class for grouping elements.

    • Adding a class for product category differentiation.

    • Avoiding excessive use of BEM naming conventions for elements that are not unique.

  • CSS Reset

    • Importance of CSS reset for consistent styling across browsers.

    • Recommendation to start with a CSS reset before writing custom styles.

    • Demonstration of using Firefox's responsive mode for testing responsiveness.

    • Introduction to Josh Como's CSS reset and its benefits.

    • Application of the reset to remove margins from elements in the document.

Supporting Details:

  • HTML Structure

    • Assigning classes like flex group and button for styling purposes.

    • Differentiating elements with classes like product_category for specific styling.

    • Not overusing BEM naming conventions for elements that are not unique to the component.

    • Adding an image with alt text within the HTML structure.

  • CSS Reset

    • Importance of CSS reset to ensure consistent styling across different browsers.

    • Starting with a CSS reset before writing custom styles to avoid browser inconsistencies.

    • Using Firefox's responsive mode (control shift m) for testing responsiveness without opening dev tools.

    • Introducing Josh Como's CSS reset as a resource for comprehensive CSS solutions.

    • Applying the CSS reset to remove margins from all elements in the document for a clean starting point for custom styling.

Large Font Size

  • Responsive images prevent overflow by setting display block and max width 100%

  • Box sizing reset and margin of 0 are common practices

    • Some may find setting margin of 0 on everything opinionated

  • Setting font to inherit for input buttons, text areas, and selects prevents text overflows

    • Helps avoid horizontal scrolling on smaller screens

    • Can cause some weird results like breaking words abruptly

  • Custom properties are set at the root selector for easy access and management

  • Primary and secondary colors are defined with specific numbering for consistency

    • Font weight numbering system used for base and variations

  • Neutral colors are named and numbered based on personal preference and HSL lightness

Setting Custom Properties

  • Custom properties are set at the root selector for easy access and management

  • Primary and secondary colors are defined with specific numbering for consistency

  • Neutral colors are named and numbered based on personal preference and HSL lightness

Note: Setting up Typography and Custom Properties

Setting up Numbering System

  • The speaker uses numbers like 900 and 1,000 for different shades of black in their design.

    • They space out the numbers to allow for flexibility in case they need to add more shades or correct any omissions in the design.

Typography Setup

  • Font sizes were only specified for one element at size 14, leaving the speaker to determine other font sizes based on observation.

  • The speaker decides not to download the Figma file and instead works off a JPEG image.

  • Custom properties are not used due to the limited scope of the project.

  • Font weights are set as 500 for regular and 700 for bold, providing flexibility in case bold variations vary between 600 and 900.

  • Two font families, Mosserat and Francis, are selected from Google Fonts and added to the project.

    • The speaker adds the necessary links and CSS rules for the font families in the HTML and CSS files.

General Styling

  • The speaker sets the width of the page to 375 in responsive mode based on the style guide.

  • Starting with generic styling for the body, the speaker sets the font family using custom properties.

  • Using double hyphens and a prefix for font weight, the speaker easily selects the desired font weight value.

  • The speaker chooses a color based on the lighter color used in the design elements.

Chapter 4: Need A Font

  • Color and Contrast Ratio

    • Choosing a color neutral 400 for the design.

    • Concern about the contrast ratio and ensuring readability.

  • Font Size and Type

    • Recommended using rem or m for font sizes instead of pixels.

    • Opting for rem for font sizes in CSS.

    • Emphasizing the importance of not using pixels for font sizes.

  • Background Color and Layout

    • Setting background color using my color and primary secondary 200.

    • Centering content horizontally and vertically on the page.

    • Using display: grid and place-content: center for alignment.

    • Adjusting spacing with margin or padding properties.

  • Styling the Product Card

    • Creating styles for the product card.

    • Setting background color to neutral 100 and border radius.

    • Managing overflow with overflow: hidden.

    • Considering border radius values like 0.5rem.

    • Discussing the common practice of using base 16 for web design measurements.

Font Sizes and Measurements

  • Using rem as a base 16 for font sizes can simplify calculations and make web design easier.

    • Base 16 is preferred over other measurements for web design.

  • Custom properties like locally scoped variables can help in managing layout and design elements efficiently.

    • Locally scoped custom properties like product 5 rem can be used for specific classes or sections.

    • Using custom properties for padding and spacing can centralize control and enhance maintainability.

Product Content Design

  • The product content consists of a picture and content section.

    • The picture is positioned at the top, while the content is placed at the bottom.

  • Applying padding and spacing to the product content can enhance the design and manageability.

    • Using custom properties like content padding and content spacing can streamline design adjustments.

  • Utilizing grid display for layout can help in achieving desired spacing and alignment effortlessly.

    • Setting the display to grid and adjusting the gap can control the layout effectively.

Nitty Gritty Design Details

  • Focusing on specific design elements like font size, text transform, and letter spacing can refine the overall design.

    • Avoid unnecessary declarations and only add styles when needed.

    • Prioritize essential design elements like text transform and letter spacing for a clean and effective design.

Chapter 5: Same Font Size

  • Font Size

    • Adjusting font size to ensure consistency and balance with other elements on the page.

    • Consideration of using pixels or "m" for letter spacing, depending on the design requirements.

    • Changes in font size impact letter spacing, ensuring a harmonious layout.

  • Styling Product Title

    • Setting font size using "rem" units for the product title.

    • Defining font family and color for the title.

    • Utilizing custom properties efficiently in Visual Studio Code for color selection.

    • Addressing line height adjustments for larger font sizes to maintain readability and aesthetics.

  • Fine-tuning Font Sizes

    • Experimenting with different font sizes to achieve the desired look.

    • Making adjustments to line height for improved readability and visual appeal.

    • Balancing font sizes and line heights for a cohesive design.

  • Maintaining Consistency

    • Emphasizing the importance of maintaining consistency in font sizes and line breaks.

    • Acknowledging minor discrepancies in font rendering and line breaks due to web variations.

    • Prioritizing focus on significant design elements rather than minor details.

  • Upcoming Changes

    • Previewing adjustments for the price section and planning HTML modifications for further enhancements.

Setting Font Size and Family

  • Adjusting font size and family for the product price display

    • Consideration for creating utility classes to avoid repetition

    • Mention of setting color and vertical alignment for consistency

Cross Out Original Price

  • Using strikethrough formatting for the original price

    • Consideration for accessibility and screen readers

    • Adding context with semantic tags like span for better understanding

    • Utilizing visually hidden class for screen reader-only text

    • Ensuring content is accessible while visually hidden

Adding Context to Price Display

  • Including current price and original price with proper context

    • Explanation on the importance of context for understanding

    • Utilizing visually hidden class to hide text visually but keep it accessible

    • Maintaining visual appearance while enhancing accessibility

Chapter 6: A Little Bit

  • Styling the button at the bottom with a little icon

    • Using cursor pointer for a hand icon on the button

    • Adding padding of 0.5 on top and bottom, 1.5 on left and right

    • Removing border with border: 0

    • Setting text-decoration: none to cover cases where the button may look like a link

    • Using display: inline-flex for flexibility

    • Centering text with justify-content: center and vertically with align-items: center

    • Adding a gap of 0.5 rem between elements

    • Setting background color to primary and text color to neutral 100

    • Adjusting font weight to bold and font size to 1rem

    • Applying a border radius of 0.5 for a rounded look

  • Defining hover and focus states for the button

    • Grouping styles for hover and focus using hover:focus

    • Explaining the concept of specificity in CSS selectors

Main Ideas:

  • Using HSL to adjust colors in CSS

  • Disabling responsive mode in browsers for better testing

  • Adding a shopping cart icon to a button using data attributes and pseudo elements

Adjusting Colors with HSL:

  • HSL (Hue, Saturation, Lightness) can be used to adjust colors in CSS.

  • To make a color darker, duplicate the color and decrease the lightness value.

    • Lightness controls how light or dark a color is.

  • By tweaking the HSL values, you can achieve the desired color shade.

Disabling Responsive Mode:

  • In Firefox and Chrome, responsive mode can affect testing.

  • Disable responsive mode to ensure proper functionality.

  • Use the tab key to navigate and test elements easily.

Adding a Shopping Cart Icon:

  • To add a shopping cart icon to a button, use a data attribute like data-icon.

  • This approach allows for easy styling and future JavaScript enhancements.

  • Utilizing pseudo elements like ::before for adding icons.

  • Ensure to include content property in pseudo elements for them to render.

  • Check the SVG dimensions (width and height) before incorporating it into the design.

Chapter 7: A Little Bit

  • Setting width and height for an icon in pixels

    • Matching the height from the SVG

    • Being cautious with set widths and heights for icons

  • Using pseudo elements for icons

    • Need for content width, height, positioning, and display type

  • Adding background image for the icon

    • Different ways to set a background image

    • Mention of using URL encoding for SVG background image

  • Adjusting spacing and layout for responsiveness

    • Considering switching to two columns layout at a larger size

    • Implementing media query for a two-column layout at 600 pixels

    • Using grid display for layout adjustment

  • Addressing issues with layout and image display

    • Fixing width overflow issue

    • Noting the incorrect image being displayed

Overall, the focus is on setting dimensions, positioning, and background images for icons, adjusting layout for responsiveness using media queries, and addressing layout issues for a better user experience.

Main Ideas:

  • Using the picture element for art direction and displaying actual images.

  • Utilizing the source set attribute to provide multiple images for different resolutions.

  • Implementing a media attribute to switch images based on screen sizes.

  • Adjusting the max width of images to prevent distortion and maintain spacing.

  • Modifying content padding to ensure consistent spacing within elements.

Using the Picture Element:

  • Picture element allows for art direction and displaying actual images.

  • Alt text can be added to images for accessibility.

  • Source set attribute is used to provide multiple images for different resolutions.

Implementing Media Attribute:

  • Media attribute functions like a media query to switch images based on screen sizes.

  • Setting a breakpoint at 600 pixels to switch between large and small images.

Adjusting Max Width:

  • Setting a max width of 600 pixels to prevent images from becoming too wide.

  • Prevents distortion and maintains the aspect ratio of images.

Modifying Content Padding:

  • Adjusting content padding within the parent selector to maintain consistent spacing.

  • Custom properties are utilized to adjust padding without creating additional selectors.

Chapter 8: Conclusion

  • Adjustments made to the project

    • Height adjustment was needed

    • Happy with the final look

  • Publishing the project online

    • Using Versus Code for source control

    • Need a GitHub account

    • Initializing repository and publishing to GitHub

    • Making repository public or private

  • Fixing mistakes on GitHub

    • Renaming readme template to readme

    • Syncing changes to GitHub

  • Using Netlify to deploy the project

    • Adding a new site on Netlify

    • Importing an existing project from GitHub

    • Deploying the site and monitoring progress

    • Site is live and accessible online

  • Easy process for updating the site

    • Update code, push to GitHub

    • Netlify automatically updates the site within minutes

Key Takeaways

  • Final adjustments were made to the project before publishing it online.

  • GitHub was used for source control and publishing the project.

  • Mistakes on GitHub were fixed by renaming the readme template.

  • Netlify was used to deploy the project online quickly and easily.

  • Updates to the code are automatically reflected on the live site through Netlify.

  • Acknowledgment to supporters and


Note
0.0(0)
Explore Top Notes
Teres Major Syndrome
noteNote
studied byStudied by 8 people
5.0(1)
Classic Literature
noteNote
studied byStudied by 21 people
4.0(1)
Chapter 10: Non-Essential & Essential Clause
noteNote
studied byStudied by 158 people
5.0(1)
Unit 1 Test
noteNote
studied byStudied by 3 people
5.0(1)
week 11
noteNote
studied byStudied by 1 person
5.0(1)
Imperialism Rise in Nationalism • During the French and Industrial Revolution, nationalism continued to inspire nations to increase their political and economic power. • Nationalism became the ideal force in the political, economic, and cultural life in the world, becoming the first universal ideology-organizing all people into a nation state. Nationalism Defined • The strong belief that the interest of a particular nation-state is of primary importance. o Nation-State – a state where the vast majority shares the same culture and is conscious of it. It is an ideal in which cultural boundaries match up with political ones. • As an ideology, it is based on the idea that the individual’s loyalty and devotion to the nation-state surpass other individual/group interests. • Exalting one nation’s belief above all others and placing primary emphasis on promotion of its culture and interests, excluding the interests of others. Changing the World through a Nationalistic Vision • The French Revolution significantly changed the political world and how countries govern. • The Industrial Revolution significantly changed the economic world. • The Age of Imperialism (1870-1914) dramatically changed the political, economic, and social world. What is Imperialism? • Imperialism- The policy of extending the rule of authority of an empire or nation over foreign countries, or of acquiring and holding colonies and dependencies. Power and influence are done through diplomacy or military force. Reasons for Imperialism • There are 5 main motives for empires to seek to expand their rule over other countries or territories: 1. Exploratory • Imperial nations wanted to explore territory unknown to them. • The main purpose for this exploration of new lands was for resource acquisition, medical or scientific research. o Charles Darwin • Other reasons: o Cartography (map making) o Adventure 2. Ethnocentric • Europeans acted on the concept of ethnocentrism o Ethnocentrism- the belief that one race or nation is superior to others. • Ethnocentrism developed out of Charles Darwin’s “survival of the fittest” theory. Philosophers used the theory to explain why there were superior races and inferior races. o This became known as Social Darwinism. • Most imperial nations believed that their cultural values or beliefs were superior to other nations or groups. • Believed imperial conquest would bring successful culture to inferior people. 3. Religious • Imperial expansion promoted a religious movement of people setting out to convert new members of conquered territories. • With the belief that Christianity was superior, missionaries believed it was their duty to spread Christianity to the world. • Christian missionaries established churches, and in doing so, they spread Western culture values as well. • Typically, missionaries spread the imperial nation's language through education and religious interactions. 4. Political • Patriotism and Nationalism helped spur our imperial growth, thus creating competition against other supremacies. • It was a matter of national pride, respect, and security. • Furthermore, European rivalry spurred nations for imperial conquest. Since land equaled power, the more land a country could acquire the more prestige they could wield across the globe. • Empires wanted strategic territory to ensure access for their navies and armies around the world. • The empire believed they must expand, thus they needed to be defended. 5. Economic • With the Industrial Revolution taking place during the same time, governments and private companies contributed to find ways to maximize profits. • Imperialized countries provided European factories and markets with natural resources (old and new) to manufacture products. • Trading posts were strategically placed around imperialized countries to maximize and increase profits. o Such places as the Suez Canal in Egypt which was controlled by the British provided strategic choke hold over many European powers. o Imperial powers competed over the best potential locations for resources, markets, and trade. History of Imperialism • Ancient Imperialism 600 BCE-500 CE o Roman Empire, Ancient China, Greek Empire, Persian Empire, Babylonian Empire. • Middle Age Imperialism (Age of Colonialism-1400-1800s) o Great Britain, Spain, Portugal, France, Netherlands (Dutch), Russia. • Age of Imperialism 1870-1914 o Great Britain, Spain, Portugal, France, Germany, Belgium, Italy, Japan, United States, Ottoman Empire, Russia. • Current Imperialism...? o U.S. Military intervention (i.e. Middle East) o Russia’s Invasion of Ukraine. Imperialism Colonialism • Refers to political or economic control, either legally or illegally. • Refers to where one nation assumes control over the other. • Creating an empire, expanding into neighboring regions and expanding the dominance far outside its borders. • Where a country conquers and rules over other regions for exploiting resources from the conquered country for the conqueror's benefit. • Foreign government controls/governs a territory without significant settlement. • Foreign government controls/governs the territory from within the land being colonized. • Little to no new settlement established on fresh territory. • Movement to settle to fresh territory. Age of Colonialism WHEN? • Started around the late 1400s and ended around the late 1700s/early 1800s. WHY? • Primary Reason: European countries, wished to find a direct trade route to Asia (China & India) and the East Indies. o Quicker and relatively more effective than land routes over Asia. • Secondary Reason: Empire expansion (land power) WHO? • Countries involved: Great Britain, France, Spain, the Dutch & Portugal. • Individuals’ knowns as Mercantilists believed that maintaining imperialized territory and colonizing the region could serve as a source of wealth, while personal motives by rulers, explorers, and missionaries could therefore promote their own agenda. o This agenda being “Glory, God and Gold”. Mercantilism • Mercantilism was a popular and main economic system for many European nations during the 16th to 18th centuries. • The main goal was to increase a nation’s wealth by promoting government rule of a nation’s economy for the purpose of enhancing state power at the expense of rival national power. • It was the economic counterpart of political absolutism. Why did mercantilists want colonies? • Mercantilists believed that a country must have an excess of exports over imports. • By colonizing territory, it provided the nation with indispensable wealth of precious raw materials. • Therefore, the claimed territory served as a market and supplier of raw materials for the mother country. Which, in time, provided an excess of exports for the nation and thus created wealth. o Development of Trading Companies to support this economic system. Hudson Bay Company – (1670). Controlled primarily North America. o Dutch East Indie Trading Company (1682) o East Indian Trading Company (1600) o Royal African Trade Company (1672) WHERE? • European nations begun to colonize the America, India and the East Indies to create a direct trade route. • Great Britain was the leading power in India, Australia and North America, South Africa. • Spain colonized central and South America. • French held Louisiana, coastal land of Africa and French Guinea. • The Dutch built an empire in the East Indies. • The Portuguese was able to take control of present-day Brazil and the southern tip of South America and Japan. Age of Colonialism • As countries started to imperialize these regions, eventually the concept of colonization took hold: • This is what makes the Age of Colonialism extremely different! End of Colonialism • By 1800, colonialism became less popular • Why? o Revolutions (Spain, France & American) o The Napoleonic Wars o Struggle for nationalism and democracy. o Exhausted all money and energy to supervise their colonies. Waiting to wake again • Imperialism would stay quiet for close to 50 years before Great Britain and France’s economies revitalized. • The outbreak of the Industrial Revolution only encouraged and revitalized European nations to begin their conquest for new territory and resources. Age of Imperialism THE SCRAMBLE FOR AFRICA 1870-1914 Conditions Prior to Imperialism of Africa  European interest in exploiting Africa was minimal.  Their economic interests & profit in Africa primarily came through coastal trade that took place during the 1500-1700s.  The slave trade became the main source of European profit.  Furthermore, disease, political instability, lack of transportation and unpredictable climate all discouraged Europeans from seeking territory. Slave Trade & the Trans-Atlantic Slave Voyages  Forced labor was not uncommon during the 13-17th Centuries. Africans and Europeans had been trading goods and people across the Mediteranea for centuries.  This all changed from 1526 to 1867, as a new system of slavery was introduced that became highly “commercialized, racialized and inherited”  By 1690, the America and West Indies saw approximately 30,000 African people shipped from Africa. A century later, that number grew to 85,000 people per year.  By 1867, approximately 12.5 million people (about twice the population of Arizona) left Africa in a slave ship. What Changed? 1. End of the Slave Trade- Left a need for trade between Europe and Africa. 2. Innovation in technology- The steam engine and iron hulled boats allowed Europe 3. Discovery of new raw materials- Explorers located vast raw materials and resources and this only spurred imperialism with Europe in the wake of the Industrial Revolution. 4. Politics- Unification of Germany and Italy left little room to expand in Europe. Germany and Italy both needed raw materials to “catch up” with Britain and France so they looked to Africa. The Scramble for Africa  The scramble started in 1870.  Although some coastal land had previously been acquired before 1870, the need for territory quickly accelerated as European countries looked t get deeper into Africa.  Within 20 years, nearly all continents were placed under imperialistic rule. Who was Involved?  Great Britain  France  Germany  Italy  Portugal  Belgium  Spain (kind) Violent Affairs  Violence broke out multiple times when European nations looked to claim the same territory.  Germ Chancellor. Otto van Bismarck. Attempted to avert the possibility of violence against the European powers.  In 1884, Bismarck organized a conference in Berlin for the European nations. The Berlin Conference (1884-85)  The conference looked to set ground rules for future annexation of African territory by European Nations.  Annexation is the forcible acquisition and assertion of legal title over one state’s territory by another state, usually following military occupation of the territory.  From a distant perspective, it looked like it would reduce tensions among European nations and avert war.  At the heart of the meeting, these European countries negotiated their claims to African territory, made it official and then mapped their regions.  Furthermore, the leaders agreed to allow free trade among imperialized territory and some homework for negotiating future European claims in Africa was established. Further Path  After the conference, european powers continued to expand their claims in Africa so that by 1900. 90% of the African territory had been claimed. A Turn towards Colonization?  Upon the imperialization of African territory, European nations and little interest in African land unless it produced economic wealth.  Therefore, European governments put little effort and expertise into these imperialized regions.  In most cases, this emat a form of indirect rule. Thus, governing the natin without sufficient settlement and government from within the mother country. Some Exceptions  There were some exemptions through in Africa as colonization was a necessary for some regions i n Africa.  Some regions where diamonds and gold were present. Government looked to protectorate the regions and establish rule and settlement in the regions.  Protectorates: A state controlled and protected by another state for defense against aggression and other law violations. Would  Some examples include South Africa, Botswana, Zimbabwe and Congo. Conclusion  Although it may appear that the Berlin Conference averted war amid the African Scramble, imperialism eventually brought the world into worldwide conflict.  With the continued desire to create an empire by European nations. World War 1 would break out which can be linked to this quest at imperialism.
noteNote
studied byStudied by 11 people
4.5(2)
knowt logo

Taking on a Frontend Mentor challenge Responsive Product Preview Card Component

Note: Building a Front End Mentor Project with Kevin

Chapter 1: Introduction

  • Kevin noticed questions on a front end mentor project in his Discord community.

  • He decides to build the project himself and welcomes viewers to join.

  • Kevin's channel focuses on helping viewers appreciate CSS.

  • The project involves making a card responsive from downloading assets to going online.

Main Ideas

  • Kevin downloads the starter files for the project.

    • Extracts the files and opens them in Visual Studio Code.

  • Examines the files received:

    • Index file with attribution and content.

    • Style guide provided by Front End Mentor.

    • Fonts used in the project.

    • Readme template for GitHub.

    • Git ignore file to exclude certain files from GitHub.

    • Images and design files for reference.

  • Kevin plans to upload the project to GitHub and then online using Netlify.

  • He creates a new CSS file named style.css for the project.

Main Ideas from the Transcript

Setting up Styles and Index Page

  • Using Emmet in Visual Studio Code to quickly generate CSS link tags.

    • Emmet autofills the link tag when typing "link:css".

  • Choosing the location for the CSS file based on simplicity.

    • Suggests placing the CSS file in the root folder for simplicity in a basic setup.

Working Environment and Live Server

  • Recommending having a browser open while working on the project.

  • Mentioning the use of live server extension for simplicity and real-time updates.

    • Live server allows for immediate updates without manual refreshing.

HTML Structure and Mobile-First Approach

  • Emphasizing the importance of considering mobile-first design.

  • Starting with the desktop version when writing HTML to understand the layout structure.

  • Introducing the use of the article tag for creating standalone content pieces.

Creating Product Structure in HTML

  • Utilizing the article element for standalone content like a product card.

  • Explaining the choice of using an article tag for self-contained content.

  • Planning to implement two columns for the product layout.

  • Using BEM naming convention for class names to maintain clarity and structure.

Implementing Image and Content Sections

  • Planning to switch from using an image tag to a picture tag for better optimization.

  • Applying BEM naming convention for classes like "my-product-image" and "my-product-content".

  • Structuring the HTML elements within the article tag for the product content.

Consideration for Title Tag

  • Discussing the importance of choosing an appropriate title for the content.

  • Mentioning the use of an h1 tag due to the lack of other content on the page.

Chapter 2: A Little Bit

  • Identifying the Title and Subtitles

    • The speaker discusses the importance of correctly identifying the main title and subtitles of a piece of content.

    • Mentions that in the context of a standalone card or article, the main title should represent the product or topic being discussed.

    • Explains the use of heading tags (h1, h2, h3) for structuring content and how they impact the page's structure.

    • Highlights the significance of using proper semantic HTML for heading levels.

  • Styling and Wrapping Content

    • Emphasizes the distinction between using heading levels for structure and not for styling purposes.

    • Demonstrates adding a class (product title) to the main title for styling consistency.

    • Shows how to wrap content quickly using shortcuts like command shift p and Emmet abbreviations.

    • Provides an example of wrapping content with a class (product double underscore original price) for efficient styling.

  • Organizing Content

    • Discusses the use of div elements to group related content that needs to be displayed together.

    • Plans to address accessibility considerations to ensure proper reading of the content.

    • Intends to focus on aligning and organizing elements that need to be displayed adjacent to each other.

Main Ideas:

  • HTML Structure

    • Classes assigned to different elements for styling purposes.

    • Use of flex group class for grouping elements.

    • Adding a class for product category differentiation.

    • Avoiding excessive use of BEM naming conventions for elements that are not unique.

  • CSS Reset

    • Importance of CSS reset for consistent styling across browsers.

    • Recommendation to start with a CSS reset before writing custom styles.

    • Demonstration of using Firefox's responsive mode for testing responsiveness.

    • Introduction to Josh Como's CSS reset and its benefits.

    • Application of the reset to remove margins from elements in the document.

Supporting Details:

  • HTML Structure

    • Assigning classes like flex group and button for styling purposes.

    • Differentiating elements with classes like product_category for specific styling.

    • Not overusing BEM naming conventions for elements that are not unique to the component.

    • Adding an image with alt text within the HTML structure.

  • CSS Reset

    • Importance of CSS reset to ensure consistent styling across different browsers.

    • Starting with a CSS reset before writing custom styles to avoid browser inconsistencies.

    • Using Firefox's responsive mode (control shift m) for testing responsiveness without opening dev tools.

    • Introducing Josh Como's CSS reset as a resource for comprehensive CSS solutions.

    • Applying the CSS reset to remove margins from all elements in the document for a clean starting point for custom styling.

Large Font Size

  • Responsive images prevent overflow by setting display block and max width 100%

  • Box sizing reset and margin of 0 are common practices

    • Some may find setting margin of 0 on everything opinionated

  • Setting font to inherit for input buttons, text areas, and selects prevents text overflows

    • Helps avoid horizontal scrolling on smaller screens

    • Can cause some weird results like breaking words abruptly

  • Custom properties are set at the root selector for easy access and management

  • Primary and secondary colors are defined with specific numbering for consistency

    • Font weight numbering system used for base and variations

  • Neutral colors are named and numbered based on personal preference and HSL lightness

Setting Custom Properties

  • Custom properties are set at the root selector for easy access and management

  • Primary and secondary colors are defined with specific numbering for consistency

  • Neutral colors are named and numbered based on personal preference and HSL lightness

Note: Setting up Typography and Custom Properties

Setting up Numbering System

  • The speaker uses numbers like 900 and 1,000 for different shades of black in their design.

    • They space out the numbers to allow for flexibility in case they need to add more shades or correct any omissions in the design.

Typography Setup

  • Font sizes were only specified for one element at size 14, leaving the speaker to determine other font sizes based on observation.

  • The speaker decides not to download the Figma file and instead works off a JPEG image.

  • Custom properties are not used due to the limited scope of the project.

  • Font weights are set as 500 for regular and 700 for bold, providing flexibility in case bold variations vary between 600 and 900.

  • Two font families, Mosserat and Francis, are selected from Google Fonts and added to the project.

    • The speaker adds the necessary links and CSS rules for the font families in the HTML and CSS files.

General Styling

  • The speaker sets the width of the page to 375 in responsive mode based on the style guide.

  • Starting with generic styling for the body, the speaker sets the font family using custom properties.

  • Using double hyphens and a prefix for font weight, the speaker easily selects the desired font weight value.

  • The speaker chooses a color based on the lighter color used in the design elements.

Chapter 4: Need A Font

  • Color and Contrast Ratio

    • Choosing a color neutral 400 for the design.

    • Concern about the contrast ratio and ensuring readability.

  • Font Size and Type

    • Recommended using rem or m for font sizes instead of pixels.

    • Opting for rem for font sizes in CSS.

    • Emphasizing the importance of not using pixels for font sizes.

  • Background Color and Layout

    • Setting background color using my color and primary secondary 200.

    • Centering content horizontally and vertically on the page.

    • Using display: grid and place-content: center for alignment.

    • Adjusting spacing with margin or padding properties.

  • Styling the Product Card

    • Creating styles for the product card.

    • Setting background color to neutral 100 and border radius.

    • Managing overflow with overflow: hidden.

    • Considering border radius values like 0.5rem.

    • Discussing the common practice of using base 16 for web design measurements.

Font Sizes and Measurements

  • Using rem as a base 16 for font sizes can simplify calculations and make web design easier.

    • Base 16 is preferred over other measurements for web design.

  • Custom properties like locally scoped variables can help in managing layout and design elements efficiently.

    • Locally scoped custom properties like product 5 rem can be used for specific classes or sections.

    • Using custom properties for padding and spacing can centralize control and enhance maintainability.

Product Content Design

  • The product content consists of a picture and content section.

    • The picture is positioned at the top, while the content is placed at the bottom.

  • Applying padding and spacing to the product content can enhance the design and manageability.

    • Using custom properties like content padding and content spacing can streamline design adjustments.

  • Utilizing grid display for layout can help in achieving desired spacing and alignment effortlessly.

    • Setting the display to grid and adjusting the gap can control the layout effectively.

Nitty Gritty Design Details

  • Focusing on specific design elements like font size, text transform, and letter spacing can refine the overall design.

    • Avoid unnecessary declarations and only add styles when needed.

    • Prioritize essential design elements like text transform and letter spacing for a clean and effective design.

Chapter 5: Same Font Size

  • Font Size

    • Adjusting font size to ensure consistency and balance with other elements on the page.

    • Consideration of using pixels or "m" for letter spacing, depending on the design requirements.

    • Changes in font size impact letter spacing, ensuring a harmonious layout.

  • Styling Product Title

    • Setting font size using "rem" units for the product title.

    • Defining font family and color for the title.

    • Utilizing custom properties efficiently in Visual Studio Code for color selection.

    • Addressing line height adjustments for larger font sizes to maintain readability and aesthetics.

  • Fine-tuning Font Sizes

    • Experimenting with different font sizes to achieve the desired look.

    • Making adjustments to line height for improved readability and visual appeal.

    • Balancing font sizes and line heights for a cohesive design.

  • Maintaining Consistency

    • Emphasizing the importance of maintaining consistency in font sizes and line breaks.

    • Acknowledging minor discrepancies in font rendering and line breaks due to web variations.

    • Prioritizing focus on significant design elements rather than minor details.

  • Upcoming Changes

    • Previewing adjustments for the price section and planning HTML modifications for further enhancements.

Setting Font Size and Family

  • Adjusting font size and family for the product price display

    • Consideration for creating utility classes to avoid repetition

    • Mention of setting color and vertical alignment for consistency

Cross Out Original Price

  • Using strikethrough formatting for the original price

    • Consideration for accessibility and screen readers

    • Adding context with semantic tags like span for better understanding

    • Utilizing visually hidden class for screen reader-only text

    • Ensuring content is accessible while visually hidden

Adding Context to Price Display

  • Including current price and original price with proper context

    • Explanation on the importance of context for understanding

    • Utilizing visually hidden class to hide text visually but keep it accessible

    • Maintaining visual appearance while enhancing accessibility

Chapter 6: A Little Bit

  • Styling the button at the bottom with a little icon

    • Using cursor pointer for a hand icon on the button

    • Adding padding of 0.5 on top and bottom, 1.5 on left and right

    • Removing border with border: 0

    • Setting text-decoration: none to cover cases where the button may look like a link

    • Using display: inline-flex for flexibility

    • Centering text with justify-content: center and vertically with align-items: center

    • Adding a gap of 0.5 rem between elements

    • Setting background color to primary and text color to neutral 100

    • Adjusting font weight to bold and font size to 1rem

    • Applying a border radius of 0.5 for a rounded look

  • Defining hover and focus states for the button

    • Grouping styles for hover and focus using hover:focus

    • Explaining the concept of specificity in CSS selectors

Main Ideas:

  • Using HSL to adjust colors in CSS

  • Disabling responsive mode in browsers for better testing

  • Adding a shopping cart icon to a button using data attributes and pseudo elements

Adjusting Colors with HSL:

  • HSL (Hue, Saturation, Lightness) can be used to adjust colors in CSS.

  • To make a color darker, duplicate the color and decrease the lightness value.

    • Lightness controls how light or dark a color is.

  • By tweaking the HSL values, you can achieve the desired color shade.

Disabling Responsive Mode:

  • In Firefox and Chrome, responsive mode can affect testing.

  • Disable responsive mode to ensure proper functionality.

  • Use the tab key to navigate and test elements easily.

Adding a Shopping Cart Icon:

  • To add a shopping cart icon to a button, use a data attribute like data-icon.

  • This approach allows for easy styling and future JavaScript enhancements.

  • Utilizing pseudo elements like ::before for adding icons.

  • Ensure to include content property in pseudo elements for them to render.

  • Check the SVG dimensions (width and height) before incorporating it into the design.

Chapter 7: A Little Bit

  • Setting width and height for an icon in pixels

    • Matching the height from the SVG

    • Being cautious with set widths and heights for icons

  • Using pseudo elements for icons

    • Need for content width, height, positioning, and display type

  • Adding background image for the icon

    • Different ways to set a background image

    • Mention of using URL encoding for SVG background image

  • Adjusting spacing and layout for responsiveness

    • Considering switching to two columns layout at a larger size

    • Implementing media query for a two-column layout at 600 pixels

    • Using grid display for layout adjustment

  • Addressing issues with layout and image display

    • Fixing width overflow issue

    • Noting the incorrect image being displayed

Overall, the focus is on setting dimensions, positioning, and background images for icons, adjusting layout for responsiveness using media queries, and addressing layout issues for a better user experience.

Main Ideas:

  • Using the picture element for art direction and displaying actual images.

  • Utilizing the source set attribute to provide multiple images for different resolutions.

  • Implementing a media attribute to switch images based on screen sizes.

  • Adjusting the max width of images to prevent distortion and maintain spacing.

  • Modifying content padding to ensure consistent spacing within elements.

Using the Picture Element:

  • Picture element allows for art direction and displaying actual images.

  • Alt text can be added to images for accessibility.

  • Source set attribute is used to provide multiple images for different resolutions.

Implementing Media Attribute:

  • Media attribute functions like a media query to switch images based on screen sizes.

  • Setting a breakpoint at 600 pixels to switch between large and small images.

Adjusting Max Width:

  • Setting a max width of 600 pixels to prevent images from becoming too wide.

  • Prevents distortion and maintains the aspect ratio of images.

Modifying Content Padding:

  • Adjusting content padding within the parent selector to maintain consistent spacing.

  • Custom properties are utilized to adjust padding without creating additional selectors.

Chapter 8: Conclusion

  • Adjustments made to the project

    • Height adjustment was needed

    • Happy with the final look

  • Publishing the project online

    • Using Versus Code for source control

    • Need a GitHub account

    • Initializing repository and publishing to GitHub

    • Making repository public or private

  • Fixing mistakes on GitHub

    • Renaming readme template to readme

    • Syncing changes to GitHub

  • Using Netlify to deploy the project

    • Adding a new site on Netlify

    • Importing an existing project from GitHub

    • Deploying the site and monitoring progress

    • Site is live and accessible online

  • Easy process for updating the site

    • Update code, push to GitHub

    • Netlify automatically updates the site within minutes

Key Takeaways

  • Final adjustments were made to the project before publishing it online.

  • GitHub was used for source control and publishing the project.

  • Mistakes on GitHub were fixed by renaming the readme template.

  • Netlify was used to deploy the project online quickly and easily.

  • Updates to the code are automatically reflected on the live site through Netlify.

  • Acknowledgment to supporters and